Variato changelog, corretto commenti in alcuni file, variato nome della directory di lock
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
## 0.5.0 - xx/08/2017
|
## 0.5.0 - 12/10/2017
|
||||||
- Implemented driver subsystem for interfacing with other board
|
- Implemented driver subsystem for interfacing with other board
|
||||||
- Added driver spb16ch for interfacing with "Smart Power Board 16 channel with RTC"
|
- 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
|
- Added socket server api for close all zones and disable all scheduling
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ LOG_FILE="/home/pi/piGarden/log/piGarden.log"
|
|||||||
LOG_FILE_MAX_SIZE=1048576 # 1MB
|
LOG_FILE_MAX_SIZE=1048576 # 1MB
|
||||||
|
|
||||||
# Log file for driver output
|
# Log file for driver output
|
||||||
LOG_OUTPUT_DRV_FILE="/tmp/piGarden.drv.log"
|
#LOG_OUTPUT_DRV_FILE="/tmp/piGarden.drv.log"
|
||||||
|
|
||||||
# Status directory
|
# Status directory
|
||||||
STATUS_DIR="/home/pi/piGarden/state"
|
STATUS_DIR="/home/pi/piGarden/state"
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
#
|
#
|
||||||
# Common function for this driver
|
# Funzioni comuni utilizzate dal driver
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Funzione di esempio
|
||||||
|
#
|
||||||
|
function sample_foo {
|
||||||
|
|
||||||
|
echo "bar"
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,3 +2,6 @@
|
|||||||
# File di configurazione del driver
|
# File di configurazione del driver
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Dichiarazione variabile di esempio
|
||||||
|
declare -g SAMPLE_FOO
|
||||||
|
SAMPLE_FOO="bar"
|
||||||
|
|||||||
@@ -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:
|
Oltre a quanto sopra indicato, il raspberry deve avere caricato i moduli di gestione del bus i2c:
|
||||||
sudo raspi-config
|
sudo raspi-config
|
||||||
Interfacing Options / I2C / Yes
|
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/
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ function initialize {
|
|||||||
|
|
||||||
log_write "Run initialize"
|
log_write "Run initialize"
|
||||||
|
|
||||||
|
unlock
|
||||||
|
|
||||||
# Inizializza i driver gpio
|
# Inizializza i driver gpio
|
||||||
for drv in "${list_drv[@]}"
|
for drv in "${list_drv[@]}"
|
||||||
do
|
do
|
||||||
@@ -767,7 +769,7 @@ TCPSERVER_PID_FILE="$TMP_PATH/piGardenTcpServer.pid"
|
|||||||
TCPSERVER_PID_SCRIPT=$$
|
TCPSERVER_PID_SCRIPT=$$
|
||||||
RUN_FROM_TCPSERVER=0
|
RUN_FROM_TCPSERVER=0
|
||||||
TMP_CRON_FILE="$TMP_PATH/pigarden.user.cron.$$"
|
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
|
if [ -f $CONFIG_ETC ]; then
|
||||||
. $CONFIG_ETC
|
. $CONFIG_ETC
|
||||||
|
|||||||
Reference in New Issue
Block a user