record-tgv-movement
v1.1.0
Published
Record the movement of any TGV using the on-board WiFi.
Downloads
15
Maintainers
Readme
record-tgv-movement
Record the movement of any TGV using the on-board WiFi.
There is more than one kind of WiFi portal in TGV trains, and they have slightly different APIs:
- the SNCF WiFi portal (SSID
_SNCF_WIFI_INOUI
) on inOui TGVs - the OUIFI portal (SSID
OUIFI
) on OuiGo TGVs
record-tgv-movement
tries to detect which portal you're connected to: It tries to connect to each portal using the respective client (see Related), and the first to succeed will be used from then on.
Installation
npm install -g record-tgv-movement
Or just use npx
:
npx record-tgv-movement >file.ndjson
Usage
Usage:
record-tgv-movement >file.ndjson
The JSON format matches record-ice-movement
where possible:
{
"ok": true,
"speed": 36.486,
"latitude": 47.743205,
"longitude": 7.346025,
"heading": 220.3,
"precision": 10,
"serverTime": 1568473509000,
"clientTime": 1568473510187
}
Related
sncf-wifi-portal-client
– Query information from the SNCF WiFi portal in French TGV trains.ouifi-portal-client
– Query information from the OUFI WiFi portal in French OuiGo TGV trains.record-ice-movement
– Record the movement of any ICE using the on-board WiFi.record-flixbus-movement
– Command-line tool to record the movement of a Flixbus coach using the on-board WiFi.record-cd-train-movement
– Record the movement of a České Dráhy (Czech Railways) train using its on-board WiFi.
Contributing
If you have a question or have difficulties using record-tgv-movement
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.