Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d9ef42679 | ||
|
|
70c4e063f8 | ||
|
|
4d4b35c3cc | ||
|
|
71e91cc861 | ||
|
|
a76c797b22 |
@@ -1,3 +1,7 @@
|
|||||||
|
# 0.5.12 - 13/11/2018
|
||||||
|
- Fixed a bug that prevented the publication of the mqtt topic for each event
|
||||||
|
- Fixed a bug on openweathermap driver which in some cases causes a malformation of the json status and prevented communication with piGardenWeb
|
||||||
|
|
||||||
# 0.5.11 - 11/11/2018
|
# 0.5.11 - 11/11/2018
|
||||||
- Added ability to disable online weather service by defining WEATHER_SERVICE="none" in the configuration file
|
- Added ability to disable online weather service by defining WEATHER_SERVICE="none" in the configuration file
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ MOSQUITTO_PUB="/usr/bin/mosquitto_pub"
|
|||||||
|
|
||||||
|
|
||||||
# Se impostato con il valore 1, indica che il sistema gestisce elettrovalvole monostabili,
|
# Se impostato con il valore 1, indica che il sistema gestisce elettrovalvole monostabili,
|
||||||
# se impostato a 0 il sistema gestirà elettrovalvole bisstabili
|
# se impostato a 0 il sistema gestirà elettrovalvole bistabili
|
||||||
EV_MONOSTABLE=0
|
EV_MONOSTABLE=0
|
||||||
|
|
||||||
# Id gpio usati per simulare il doppio deviatore con cui eseguire l'alimentazione alle elettrovalvole
|
# Id gpio usati per simulare il doppio deviatore con cui eseguire l'alimentazione alle elettrovalvole
|
||||||
@@ -95,7 +95,7 @@ EV_TOTAL=6
|
|||||||
EV1_ALIAS="1" #
|
EV1_ALIAS="1" #
|
||||||
EV1_GPIO=17 # Physical 11 - wPi 0
|
EV1_GPIO=17 # Physical 11 - wPi 0
|
||||||
#EV1_NORAIN=1 # Non interrompe l'irrigazione di questa zona in caso di pioggia
|
#EV1_NORAIN=1 # Non interrompe l'irrigazione di questa zona in caso di pioggia
|
||||||
#EV1_MONOSTAVLE=1 # L'elettrovalvola è monostabile
|
#EV1_MONOSTABLE=1 # L'elettrovalvola è monostabile
|
||||||
|
|
||||||
EV2_ALIAS="2" #
|
EV2_ALIAS="2" #
|
||||||
EV2_GPIO=27 # Physical 13 - wPi 2
|
EV2_GPIO=27 # Physical 13 - wPi 2
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ function drv_openweathermap_rain_online_get {
|
|||||||
"local_epoch": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".dt")",
|
"local_epoch": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".dt")",
|
||||||
"local_tz_long": "$OPENWEATHERMAP_TZ",
|
"local_tz_long": "$OPENWEATHERMAP_TZ",
|
||||||
"weather": "$weather",
|
"weather": "$weather",
|
||||||
"temp_c": $(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.temp"),
|
"temp_c": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.temp")",
|
||||||
"relative_humidity": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.humidity")%",
|
"relative_humidity": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.humidity")%",
|
||||||
"wind_dir": "$(deg2dir $wind_deg)",
|
"wind_dir": "$(deg2dir $wind_deg)",
|
||||||
"wind_degrees": $wind_deg,
|
"wind_degrees": "$wind_deg",
|
||||||
"wind_kph": $wind_speed,
|
"wind_kph": "$wind_speed",
|
||||||
"wind_gust_kph": "--",
|
"wind_gust_kph": "--",
|
||||||
"pressure_mb": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.pressure")",
|
"pressure_mb": "$(cat $TMP_PATH/check_rain_online.openweathermap.json | $JQ -r -M ".main.pressure")",
|
||||||
"dewpoint_c": "--",
|
"dewpoint_c": "--",
|
||||||
|
|||||||
@@ -94,10 +94,12 @@ function trigger_event {
|
|||||||
local ec=$?
|
local ec=$?
|
||||||
#echo "$EVENT ec=$ec" >> /tmp/piGarden.testevent
|
#echo "$EVENT ec=$ec" >> /tmp/piGarden.testevent
|
||||||
|
|
||||||
CURRENT_EVENT="$EVENT"
|
#CURRENT_EVENT="$EVENT"
|
||||||
mqtt_status &
|
#mqtt_status &
|
||||||
|
|
||||||
if [ $ec -ne 0 ]; then
|
if [ $ec -ne 0 ]; then
|
||||||
|
CURRENT_EVENT="$EVENT"
|
||||||
|
mqtt_status &
|
||||||
log_write "Stop events chain for exit code $ec in $current_event_dir/$f"
|
log_write "Stop events chain for exit code $ec in $current_event_dir/$f"
|
||||||
return $ec
|
return $ec
|
||||||
fi
|
fi
|
||||||
@@ -106,6 +108,9 @@ function trigger_event {
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CURRENT_EVENT="$EVENT"
|
||||||
|
mqtt_status &
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -933,7 +933,7 @@ function debug2 {
|
|||||||
|
|
||||||
VERSION=0
|
VERSION=0
|
||||||
SUB_VERSION=5
|
SUB_VERSION=5
|
||||||
RELEASE_VERSION=11
|
RELEASE_VERSION=12
|
||||||
|
|
||||||
DIR_SCRIPT=`dirname $0`
|
DIR_SCRIPT=`dirname $0`
|
||||||
NAME_SCRIPT=${0##*/}
|
NAME_SCRIPT=${0##*/}
|
||||||
|
|||||||
Reference in New Issue
Block a user