Skip to content

Instantly share code, notes, and snippets.

@xuio
Created October 8, 2020 11:43
Show Gist options
  • Save xuio/2605b1f958c02f0c4399976f7597963f to your computer and use it in GitHub Desktop.
Save xuio/2605b1f958c02f0c4399976f7597963f to your computer and use it in GitHub Desktop.
Plot speed of ICE train
#!/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