aggiunto api per eseguire la chiusura di tutte le zone e per la disabilitare tutte le schdulazioni

This commit is contained in:
lejubila
2017-09-10 02:16:01 +02:00
parent fcbfa3cd32
commit 59b27365ed
3 changed files with 84 additions and 0 deletions

View File

@@ -93,6 +93,15 @@ function socket_server_command {
fi
;;
close_all)
if [ "$arg2" == "disable_scheduling" ]; then
cron_disable_all_open_close &> /dev/null
fi
close_all &> /dev/null
message_write "success" "All solenoid closed"
json_status
;;
set_general_cron)
local vret=""
for i in $arg2 $arg3 $arg4 $arg5 $arg6 $arg7