Adattato alla versione 0.3.3 i nomi zone presente nelle schedulazione mostrate nello stato in formato json

This commit is contained in:
lejubila
2019-09-24 16:58:23 +02:00
parent c527702c72
commit dd289f8b31

View File

@@ -620,7 +620,8 @@ function json_status {
for scheduled in `$PIGARDENSCHED_PATH sched` for scheduled in `$PIGARDENSCHED_PATH sched`
do do
local ev=$(echo $scheduled|$CUT -f1 -d";") local ev=$(echo $scheduled|$CUT -f1 -d";")
local al=${!ev} local evcomplete="$ev"_ALIAS
local al=${!evcomplete}
local json_get_schedule="\"$ev\": {\"alias\": \"$al\", \"entry\": \"$scheduled\"}, $json_get_schedule" local json_get_schedule="\"$ev\": {\"alias\": \"$al\", \"entry\": \"$scheduled\"}, $json_get_schedule"
done done
if [[ ! -z $json_get_schedule ]]; then if [[ ! -z $json_get_schedule ]]; then