get live-data from mvg-live.de
Project description
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](http://www.mvg-live.de) 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](http://www.mvg-mobil.de/Tickerrss/CreateRssClass) that is also provided by the MVG. You can find a sample implementation [here](https://github.com/muccc/anzeigr/blob/master/current_nodes/mvgdefas/ticker/getmvgticker.py)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PyMVGLive-1.1.4.tar.gz
.
File metadata
- Download URL: PyMVGLive-1.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c81dc7e306501cd63d88ab57dedf277bf6b778085d1bceeef38d5484eed046a |
|
MD5 | 77491acd3bb980867a267ed513642d8a |
|
BLAKE2b-256 | 01add5bb0c7d6e80de616548d3d8e46f09d5c98517dfff54179421cf3d4446b2 |