cambiato numero di versione, aggiunto informazioni cron_open_in alle chiamate json_status eseguite per l'apertura/chiusura delle zone dal socket server
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
## 0.x.x - xx/xx/2017
|
## 0.3.0 - xx/xx/2017
|
||||||
Add command "open_in" for scheduling on the fly the opens/close a solenoid
|
Add command "open_in" for scheduling on the fly the opens/close a solenoid
|
||||||
Add command "del_cron_open_in" for delete scheduling the fly the opens/close a solenoid
|
Add command "del_cron_open_in" for delete scheduling the fly the opens/close a solenoid
|
||||||
Add api in socket server for command open_in and delete_cron_open_in
|
Add api in socket server for command open_in and delete_cron_open_in
|
||||||
|
|||||||
10
piGarden.sh
10
piGarden.sh
@@ -648,7 +648,7 @@ function cron_del {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
$SED "$START,${END}d" "$TMP_CRON_FILE" | $CRONTAB -
|
$SED "$START,${END}d" "$TMP_CRON_FILE" | $SED '$!N; /^\(.*\)\n\1$/!P; D' | $CRONTAB -
|
||||||
#$CRONTAB "$TMP_CRON_FILE"
|
#$CRONTAB "$TMP_CRON_FILE"
|
||||||
rm "$TMP_CRON_FILE"
|
rm "$TMP_CRON_FILE"
|
||||||
|
|
||||||
@@ -1161,7 +1161,7 @@ function socket_server_command {
|
|||||||
json_error 0 "Alias solenoid not specified"
|
json_error 0 "Alias solenoid not specified"
|
||||||
else
|
else
|
||||||
ev_open $arg2 $arg3 &> /dev/null
|
ev_open $arg2 $arg3 &> /dev/null
|
||||||
json_status
|
json_status "get_cron_open_in"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -1175,7 +1175,7 @@ function socket_server_command {
|
|||||||
json_error 0 "Alias solenoid not specified"
|
json_error 0 "Alias solenoid not specified"
|
||||||
else
|
else
|
||||||
ev_close $arg2 &> /dev/null
|
ev_close $arg2 &> /dev/null
|
||||||
json_status
|
json_status "get_cron_open_in"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -1318,8 +1318,8 @@ function debug2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
VERSION=0
|
VERSION=0
|
||||||
SUB_VERSION=2
|
SUB_VERSION=3
|
||||||
RELEASE_VERSION=3
|
RELEASE_VERSION=0
|
||||||
|
|
||||||
DIR_SCRIPT=`dirname $0`
|
DIR_SCRIPT=`dirname $0`
|
||||||
NAME_SCRIPT=${0##*/}
|
NAME_SCRIPT=${0##*/}
|
||||||
|
|||||||
Reference in New Issue
Block a user