37 Commits
v0.1 ... v0.4.4

Author SHA1 Message Date
lejubila
9cb7d6ce9d Variato numero di versione 2017-06-17 15:31:11 +02:00
lejubila
ce062f30ca Rimosso lock/unlock nella funzione init per risolvere problema di inizializzazione 2017-06-17 15:23:09 +02:00
lejubila
164169e375 corretto path di sed nella funzione lock 2017-06-17 12:40:40 +02:00
lejubila
37a6c58b5a Corretto path dei comandi usati per genereare l'id di installazione, venvia generato un identificativo errato 2017-06-16 23:06:07 +02:00
lejubila
a34c1cd856 Modificato changelog per versione 0.4.1 2017-06-14 17:40:31 +02:00
lejubila
02cde84392 Corretto problema sull'invio identificativo installazione per uso statistico 2017-06-14 17:38:47 +02:00
lejubila
f58b2ba7fb Variato changelog per la versione 0.4.0 2017-06-14 01:19:43 +02:00
lejubila
2b13ba0cf0 aggiunto redirect standard error della chiamata per collezionare le statistiche di utilizzo 2017-06-13 01:00:06 +02:00
lejubila
e288244803 aggiunto unlock in caso timeout della funzione lock 2017-06-10 23:51:28 +02:00
lejubila
5a28d129f5 aggiunto sistema di invio identificativo installazione per uso statistico 2017-06-09 01:59:04 +02:00
lejubila
ced5ba83e8 aggiunto tempo di attesa random su funzione lock per impedire sovrapposizioni concorrenti 2017-05-30 23:51:39 +02:00
lejubila
44529c661f aggiunto supporto per l'inserimento di un cron disabiltato di schedulazione apertura/chiusura zona via api socket server 2017-05-28 16:42:13 +02:00
lejubila
357b976765 Aggiunto possibiltà di inserire una schedulazione di apertura/chiusura in modalità disabilitata 2017-05-23 23:34:43 +02:00
lejubila
3aad235dda aggiunto supporto per autenticazione su socket server 2017-05-21 12:42:26 +02:00
lejubila
6447ec5326 Aggiunto gestione lock/unnlock per prevenire chiamate concorrenti su apertura/chiusura delle elettrovalvole 2017-05-19 23:52:36 +02:00
lejubila
e5bfe3e8ca Corretto numero di versione 2017-05-14 10:51:00 +02:00
lejubila
9743198315 Aggiunto supporto sperimentale per elettrovalcole mono-stabili 2017-05-13 12:14:02 +02:00
lejubila
2889758b28 aggiunto data al changelog 2017-05-07 18:19:36 +02:00
lejubila
477f2b15a0 cambiato numero di versione, aggiunto informazioni cron_open_in alle chiamate json_status eseguite per l'apertura/chiusura delle zone dal socket server 2017-05-07 17:08:05 +02:00
lejubila
973bcf0b3d Aggiunto funzioni command 'open_in' e 'del_cron_open_in' per la gestione degli avvii ritardati. Aggiunto api al socket server per i comandi 'open_in' e 'delete_cron_open_in'. Per alcuni file temporanei cambiato path su /var/shm (tmpfs) per prevenire deterioramento della scheda sd. 2017-05-07 02:47:27 +02:00
lejubila
95199d2bb1 Add function open_in 2017-04-27 18:49:05 +02:00
lejubila
2fc1c04f3d Corretto problema che faceva chiudere le elttrovalvole in caso di pioggia anche se erano state aperte in modalità 'force' 2017-04-25 01:43:18 +02:00
David Bigagli
ff608dc8d9 Add note for version 0.2.1 2017-04-22 18:53:27 +02:00
David Bigagli
8b55f1526a Aggiunto istruzioni per installazione 2017-04-22 18:20:22 +02:00
lejubila
6bcdea07e2 Variato per changelog per rilascio release 2017-04-17 00:41:05 +02:00
lejubila
73364decda Aggiunto informazioni della versione in json_status 2017-04-09 17:12:00 +02:00
lejubila
50489dc61a aggiunto opzione 'force' su comando start_socket_server 2017-03-30 17:20:30 +02:00
lejubila
285cda3caf aggiunto responde json su chiamate socket per gestione schedulazioni cron 2017-03-29 00:38:07 +02:00
lejubila
6100686f5b corretto output json status 2016-12-10 00:04:52 +01:00
lejubila
7c7c565a0b aggiunto informazioni cron in json_status 2016-12-04 16:31:58 +01:00
lejubila
e5ec446a0d corretto problema su get_cron_open 2016-10-30 16:34:29 +01:00
lejubila
e113af429b corretto problema con wildchar * nel set dei crontab 2016-10-30 16:29:14 +01:00
lejubila
3b45d068a8 modifiche per automazione inserimento cron da script 2016-10-07 18:55:31 +02:00
lejubila
750ca9c66e Iniziato automazione inserimento cron da script 2016-10-02 11:07:46 +02:00
lejubila
a58fe0b3e7 Implementato socket server per gestire la comunicazione piGardenWeb. Iniziato feature per gestire la configurazione del crontab da script. 2016-09-07 23:51:28 +02:00
lejubila
3001d705f9 Aggiunto altre condizioni temporali oltre alla pioggia su check_rain_online 2016-06-12 12:26:26 +02:00
lejubila
0d646c3fec Fix error for 'av_status' parameter 2015-12-24 01:21:51 +01:00
4 changed files with 1422 additions and 49 deletions

View File

@@ -1,2 +1,49 @@
## 0.4.4 - 17/06/2017
Remove lock/unlock from init function for resove bug
## 0.4.3 - 17/06/2017
Fix path of sed in lock function
## 0.4.2 - 16/06/2017
Fix another problem on generate installation identifier to sendo for statistic
## 0.4.1 - 14/06/2017
Fix problem on send identifier installation for statistic
## 0.4.0 - 14/06/2017
Add credentials support to socket server (define TCPSERVER_USER and TCPSERVER_PWD in your config file)
Add management lock/unlock for prevent concurrente call to open/close solenoid
Added the ability to enter an open / close schedule in disabled mode
Add send statistic information to remote server
During the initialization function, information on the last rain is no longer removed
## 0.3.1 - 13/05/2017
Add experimental support for monostable solenoid valve:
- define in your config file the variable EV_MONOSTABLE and assign value 1
- if the solenoid valves close instead of opening and vice versa, reverse the values of the RELE_GPIO_CLOSE and RELE_GPIO_OPEN variables in your configuration file
## 0.3.0 - 07/05/2017
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 api in socket server for command open_in and delete_cron_open_in
Fix minor bug on command "open"
Changed the path of some temporary files to prevent sd card faults
## 0.2.2 - 25/04/2017
Fix bug: if it's reining, the solenoid valves were also closed even if they were pushed open in "force" mode
## 0.2.1 - 22/04/2017
Add installation instructions in README.md file
## 0.2 (Easter egg) - 17/04/2017
Implementation of socket server for communicate with piGardenWeb
Implementation of messages (error, warning, success) passed to piGardenWeb
Added many information in json status to be passed to piGardenWeb
Added management cron for scheduling open and closed solenoid, for initialize control unit, for rain control
## 0.1.1 - 24/12/2015 - BugFix
Fix the problem for 'av_status' parameter
## 0.1 - 18/12/2015 - First release
First release to piGarden

View File

@@ -1,4 +1,4 @@
## piGarden
# piGarden
Bash script to manage an irrigation system built with a Raspberry Pi
@@ -9,3 +9,62 @@ Documentation of piGarden and build system irrigation with Raspberry Pi can be f
## License
This script is open-sourced software under GNU GENERAL PUBLIC LICENSE Version 2
## Installation
1) Installs the necessary packages on your terminal:
``` bash
sudo apt-get install git curl gzip grep sed ucspi-tcp
```
2) Compile and install Jq (commandline JSON processor):
``` bash
cd
sudo apt-get install flex -y
sudo apt-get install bison -y
sudo apt-get install gcc -y
sudo apt-get install make -y
sudo apt-get install autotools -y
sudo apt-get install dh-autoreconf -y
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
tar xfvz jq-1.5.tar.gz
cd jq-1.5
autoreconf -i
./configure --disable-maintainer-mode
make
sudo make install
```
3) Compile and install gpio program from WiringPi package:
``` bash
cd
git clone git://git.drogon.net/wiringPi
cd wiringPi
git pull origin
./build
```
4) Download and install piGarden in your home
``` bash
cd
git clone https://github.com/lejubila/piGarden.git
```
## Configuration
Copy configuration file in /etc
```bash
cd
sudo cp piGarden/conf/piGarden.conf.example /etc/piGarden.conf
```
Customize the configuration file.
For more information see
[www.lejubila.net/2015/12/impianto-di-irrigazione-con-raspberry-pi-pigarden-lo-script-di-gestione-quinta-parte/](https://www.lejubila.net/2015/12/impianto-di-irrigazione-con-raspberry-pi-pigarden-lo-script-di-gestione-quinta-parte/)
and
[www.lejubila.net/2017/04/pigarden-0-2-easter-egg/](https://www.lejubila.net/2017/04/pigarden-0-2-easter-egg/)

View File

@@ -14,15 +14,43 @@ JQ="/usr/local/bin/jq"
# Percorso curl
CURL="/usr/bin/curl"
# Percors wc
# Percorso wc
WC="/usr/bin/wc"
# Percorso gzip
GZIP="/bin/gzip"
# Percors mv
# Percorso mv
MV="/bin/mv"
# Percorso di tr
TR="/usr/bin/tr"
# Percorso di cut
CUT="/usr/bin/cut"
# Percorso tcpserver
TCPSERVER="/usr/bin/tcpserver"
# Percorso cron
CRONTAB="/usr/bin/crontab"
# Percorso grep
GREP="/bin/grep"
# Percorsp sed
SED="/bin/sed"
# Percorso readlink
READLINK="/bin/readlink"
# Percorso stat
STAT="/usr/bin/stat"
# Se impostato con il valore 1, indica che il sistema gestisce elettrovalvole monostabili,
# se impostato a 0 il sistema gestirà elettrovalvole bisstabili
EV_MONOSTABLE=0
# Id gpio usati per simulare il doppio deviatore con cui eseguire l'alimentazione alle elettrovalvole
SUPPLY_GPIO_1=2
SUPPLY_GPIO_2=3
@@ -82,3 +110,14 @@ NOT_IRRIGATE_IF_RAIN_ONLINE=86400
# Il parametro è simile a quello precedente, il controllo però anziché essere fatto attingendo a wunderground, viene eseguito direttamente sul sensore se installato. Inserendo il valore zero non viene eseguito nessun controllo.
NOT_IRRIGATE_IF_RAIN_SENSOR=86400
# Indirizzo ip e porta di ascolto del socket server
TCPSERVER_IP="127.0.0.1"
TCPSERVER_PORT="8084"
# Utente e password che i clients devono utilizzare per stabilire una connessione tramite socket server
TCPSERVER_USER=""
TCPSERVER_PWD=""
# Con impostato il valore 1 non invia l'identificativi per statistiche di utilizzo
NO_SEND_IDENTIFIER=0

File diff suppressed because it is too large Load Diff