Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.
/ PyMVGLive Public archive

Python-Library to get live-data from mvg-live.de - yet another workaround the official, non-released API....

Notifications You must be signed in to change notification settings

pc-coholic/PyMVGLive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyMVGLive

Python-Library to get live-data from mvg-live.de - yet another workaround the official, non-released API....

MVGLive.getlivedata()

Retrieve the next departures from mvg-live.de

Configuration variables:

  • station (Required): Name of the stop or station. Visit the MVG live web site to find valid names.

  • timeoffset (Optional): Do not display connections departing sooner than this number of minutes (defaults to 0). Useful if you are a couple of minutes away from the stop.

  • entries (Optional): Number of entries to retrieve (defaults to 10).

  • ubahn (Optional): If 'False', do not display U-Bahn (subway) departures

  • tram (Optional): If 'False', do not display tram departures

  • bus (Optional): If 'False', do not display bus departures

  • sbahn (Optional): If 'False', do not display S-Bahn (suburban train) departures

MVGLive.getdisruptiondata()

Retrieve current disruptions/status messages from mvg-live.de. Returns headline and description of disruption.

Please note, that this call will execute another API-request and might cause problems with rate-limits imposed by the webservice.

For a saver way, please use RSS-feed that is also provided by the MVG. You can find a sample implementation here

About

Python-Library to get live-data from mvg-live.de - yet another workaround the official, non-released API....

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages