Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show train information when connected to train WiFi #78

Open
jheubuch opened this issue Nov 18, 2022 · 7 comments
Open

Show train information when connected to train WiFi #78

jheubuch opened this issue Nov 18, 2022 · 7 comments
Labels
feature Describes a new feature for the app

Comments

@jheubuch
Copy link
Collaborator

When I'm connected to a train's WiFi network and there is data about the journey provided, this could be displayed in the app.
Example data could be:

  • Train number and journey
  • velocity

For this different APIs could be implemented. e.g. the ICEPortal-API or the SBB-Infotainment-API

@jheubuch jheubuch added the feature Describes a new feature for the app label Nov 18, 2022
@jheubuch
Copy link
Collaborator Author

I will collect some API data and provide it here for (possible) implementation

@jheubuch
Copy link
Collaborator Author

ICE-Portal-API example requests and data (Postman collection as .txt because GitHub doesn't support JSON-uploads????)
ice-portal-api.json.txt

@DRSchlaubi
Copy link
Contributor

I can provide TGV data tmr

@DRSchlaubi
Copy link
Contributor

Speed and location can be obtained from: https://wifi.sncf/router/api/train/gps

body
{"success":true,"fix":9,"timestamp":1668857683,"latitude":49.64248,"longitude":8.460343333,"altitude":96.63,"speed":11.524,"heading":345.1}

Train information would be available at https://wifi.sncf/router/api/train/details however that's returning 404 (Train not found) all the time, which also causes the information to be missing in the official UI, so it looks like my train is broken

@DRSchlaubi
Copy link
Contributor

DRSchlaubi commented Nov 29, 2022

ÖBB:
https://railnet.oebb.at/api/speed - integer for speed (km/h)
https://railnet.oebb.at/api/gps - position

{"Latitude":"47.814107","Longitude":"13.046575"}

@RobinLinde
Copy link

For NS I have some example data (and a rough JSON schema) over at https://github.com/RobinLinde/NS-travelinfo-JSON
In short: API does not provide train number and speed but does have full journey information with all stops available

@PinguDEV-original
Copy link

For the ICEPortal: https://codeberg.org/Mini_Pinguin-Projects/ICEPortal-Tool (maybe that helps with implementing?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Describes a new feature for the app
Projects
None yet
Development

No branches or pull requests

4 participants