DE_ICE: add comment for the jq type check

This commit is contained in:
embr 2022-10-26 16:24:10 +02:00
parent 027fa3c088
commit fb44a7e32a

View file

@ -4,8 +4,8 @@ ambient_is_ssid "WIFIonICE" "WIFI@DB"; or exit
# We can tell if we're on a train if iceportal.de resolves to a private IP addr.
string match '172.*' (ambient_resolve4 iceportal.de) >/dev/null; or exit
# Also double-check that the API returns valid JSON, also not the case at stations.
set train_status (curl -s https://iceportal.de/api1/rs/status)
echo $train_status | jq type >/dev/null 2>&1; or exit
echo $train_status | jq -r '{