Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 714 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 714 Bytes

TerminalGV

So I got bored in the train, TerminalGV is a very simple client to display stats about your SNCF TGV/TER train in your terminal.

The "on-train" api (https://wifi.sncf) runs socket.io, you can join the namespace /router/api/pepita and listen for events, this script listen to theses events: gps, connected_devices (Network), internet_link_quality, trainDetails (Stops/Time/Train infos)

Dates are converted to the Europe/Paris timezone edit the ui.py file to change it

SNCF Uses socketio v3 so we need to install python-socketio v4 (I used python-socketio==4.6.1) Screenshot