Implementato driver subsistem per il controllo delle condizioni meteo tramite servizio online. Implementato driver 'wunderground' per il controllo meteo tramite il servizio wunderground

This commit is contained in:
lejubila
2018-06-05 16:31:45 +02:00
parent 3239006922
commit 419695b420
7 changed files with 147 additions and 3 deletions

View File

@@ -832,6 +832,11 @@ if [ -z "$EVENT_DIR" ]; then
EVENT_DIR="$DIR_SCRIPT/events"
fi
if [ -z $WEATHER_SERVICE ]; then
WEATHER_SERVICE="drv:wunderground"
else
WEATHER_SERVICE="drv:$WEATHER_SERVICE"
fi
# Elimina il file di lock se più vecchio di 11 secondi
if [ -f "$LOCK_FILE" ]; then