This vt.py can you use to get the vehicle-positions of the NS-trains in a /tmp/data.xml file. It is recieved from a ZMQ-stream.
- You must have an account at NDOVloket.nl, so create them.
- Some lines in this code are commented. Just play with it to adjust your script.
- Uncomment #call(["vt_process.php"])
- Create a PHP-script to read your tmp/data.xml
- Give the vt.py script executable right: chmod +x vt.py
- Run this script: nohup ./vt.py > /dev/null 2>&1 &
- Check if tmp/data.xml is updated.
Have fun!