Created
October 8, 2020 11:43
-
-
Save xuio/2605b1f958c02f0c4399976f7597963f to your computer and use it in GitHub Desktop.
Plot speed of ICE train
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# dependencies: ttyplot, jq, curl | |
{while true; do curl 'https://iceportal.de/api1/rs/status' --silent | jq -r '.speed'; sleep 10; done} | ttyplot -u "km/h" -s 300 -t "Train Speed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment