Variato changelog, corretto commenti in alcuni file, variato nome della directory di lock

This commit is contained in:
lejubila
2017-10-12 23:46:07 +02:00
parent 10aed48887
commit ecbef2c94c
6 changed files with 20 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
## 0.5.0 - xx/08/2017
## 0.5.0 - 12/10/2017
- Implemented driver subsystem for interfacing with other board
- Added driver spb16ch for interfacing with "Smart Power Board 16 channel with RTC"
- Added socket server api for close all zones and disable all scheduling

View File

@@ -3,7 +3,7 @@ LOG_FILE="/home/pi/piGarden/log/piGarden.log"
LOG_FILE_MAX_SIZE=1048576 # 1MB
# Log file for driver output
LOG_OUTPUT_DRV_FILE="/tmp/piGarden.drv.log"
#LOG_OUTPUT_DRV_FILE="/tmp/piGarden.drv.log"
# Status directory
STATUS_DIR="/home/pi/piGarden/state"

View File

@@ -1,3 +1,12 @@
#
# Common function for this driver
# Funzioni comuni utilizzate dal driver
#
#
# Funzione di esempio
#
function sample_foo {
echo "bar"
}

View File

@@ -2,3 +2,6 @@
# File di configurazione del driver
#
# Dichiarazione variabile di esempio
declare -g SAMPLE_FOO
SAMPLE_FOO="bar"

View File

@@ -8,3 +8,5 @@ sudo usermod -a -G i2c pi
Oltre a quanto sopra indicato, il raspberry deve avere caricato i moduli di gestione del bus i2c:
sudo raspi-config
Interfacing Options / I2C / Yes
Per maggiori informazioni consulta https://www.lejubila.net/2017/10/pigarden-spb16ch-gestiamo-fino-a-128-zone-nel-nostro-impianto-di-irrigazione/

View File

@@ -12,6 +12,8 @@ function initialize {
log_write "Run initialize"
unlock
# Inizializza i driver gpio
for drv in "${list_drv[@]}"
do
@@ -767,7 +769,7 @@ TCPSERVER_PID_FILE="$TMP_PATH/piGardenTcpServer.pid"
TCPSERVER_PID_SCRIPT=$$
RUN_FROM_TCPSERVER=0
TMP_CRON_FILE="$TMP_PATH/pigarden.user.cron.$$"
LOCK_FILE="$TMP_PATH/piGarden.lock"
LOCK_FILE="$TMP_PATH/piGarden.dir.lock"
if [ -f $CONFIG_ETC ]; then
. $CONFIG_ETC