shack doorstatus: get doorstatus on extra line
This commit is contained in:
parent
953f78184f
commit
a8e04485cd
@ -54,7 +54,8 @@ Herr makefu an Kasse 3 bitte, Kasse 3 bitte Herr makefu. Der API Computer ist ma
|
|||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
state=$(curl -fSsk https://api.shackspace.de/v1/space | jq .doorState.open)
|
payload=$(curl -fSsk https://api.shackspace.de/v1/space)
|
||||||
|
state=$(printf '%s' "$payload" | jq .doorState.open)
|
||||||
prevstate=$(cat state ||:)
|
prevstate=$(cat state ||:)
|
||||||
|
|
||||||
if test "$state" == "$(cat state)";then
|
if test "$state" == "$(cat state)";then
|
||||||
|
Loading…
Reference in New Issue
Block a user