Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
set -l data_status (curl -s
set -l data_trip (curl -s
# next stop
echo  (echo $data_trip | jq -r '([ .trip.stops[] | select(.info.passed==false) ]
| first)')
# train number
echo  (echo $data_trip | jq -r '"\(.trip.trainType)-\(.trip.vzn)"')
# speed
echo speed (echo $data_status | jq -r '"\(.speed) km/h"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment