mirror of
https://github.com/liclac/ambient
synced 2024-11-24 20:53:04 +00:00
Update ICE check by trying to parse JSON
This commit is contained in:
parent
98459f0168
commit
39b1fbd944
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ ambient_is_ssid "WIFI@DB" "WIFIonICE"; or exit
|
|||
|
||||
set train_status (curl -s https://iceportal.de/api1/rs/status)
|
||||
|
||||
echo $train_status | grep -i wagonClass; or exit
|
||||
echo $train_status | jq type >/dev/null 2>&1; or exit
|
||||
|
||||
echo $train_status | jq -r '"
|
||||
AMBIENT_DE_ICE_CONNECTION=\(.connection)
|
||||
|
|
Loading…
Reference in a new issue