Irrighino è stato uno dei miei progetti più apprezzati: si tratta di una centralina per l’irrigazione automatica basata su Arduino Yun e controllata via web, anche da smartphone.
Dopo la pubblicazione sul mio blog, il progetto è stato ripreso da Open Electronics ed è stato realizzato anche uno shield, in vendita su Futurashop:
Con l’uscita del nuovo Arduino Yun (chiamato Rev.2) e dello Yun Shield, è stata aggiornata anche la distribuzione Linux installata sulla scheda, OpenWrt. In particolare è stato aggiornato un componente chiave per il funzionamento di Irrighino, ovvero l’interprete php.
I comandi da eseguire su Yun per installare tutti i componenti necessari ad Irrighino sono ora:
installazione php con cgi e cli
opkg install php7 php7-cgi php7-cli
installazione moduli curl, json e sqlite
opkg install php7-mod-curl php7-mod-json php7-mod-pdo php7-mod-pdo-sqlite
installazione zoneinfo
opkg install zoneinfo-core zoneinfo-europe
(sostituite zoneinfo-europe con quello relativo alla vostra zona geografica)
Infine configuriamo il webserver uhttpd per eseguire l’interprete php.
Modifichiamo il file /etc/config/uhttpd aggiungendo la riga seguente (attenzione alla posizione!):
quindi riavviamo il webserver con:
Ora lo Yun è pronto per Irrighino!
Ciao Luca,
complimenti per il progetto!
Premetto che sono nuovo nel mondo di Arduino, ma sarebbe possibile aumentare il numero di elettrovalvole comandate da 4 a 8?
Grazie
Ciao Andrea, si mettendo mano al codice è fattibile… so che altri utenti lo hanno personalizzato per aggiungere anche più elettrovalvole (diventa forse un po’ scomoda la pagina per schedulare i tempi con tante colonne ma si può fare)
Hello Luca! sorry to interrupt your day with an old topic but after few years of using it in my garden i now get this error: Unable to change output status: Unable to call Arduino to manually turn ON output 0, error code: KO_MANUAL
Also have you noticed that there seam to be a bug in your updated github sketch ? This bug makes it impossible to compile the sketch unless quoting out the related error lines: ‘switch4Position’ was not declared in this scope.
Hi! Regarding the “KO_MANUAL” error, it means that the physical switch is turned off… Thanks for the comment about the error in the sketch, I’m fixing it.
hi Luca, my fun rev2 concert but in the web slider when pulse on / off the warning is Unable to call irrighino? where is the problem? thaksssss
Hi Alberto: is the sketch running on Yun? Did you change the default password?
hi Luca, thank for your work, a question please, where is the file for Add the following 3 lines to the crontab (“crontab -e” or through the web interface):
* * * * * /usr/bin/php-cli /www/sd/irrighino/php/irrighinoTask.php
05 00 * * * /usr/bin/php-cli /www/sd/irrighino/php/purgeOldEvents.php
10 00 * * * /usr/bin/php-cli /www/sd/irrighino/php/purgeOldLogs.php
thanks
sorry, now i locate the file, but now the error is Warning unable to connect irrihino, i change the default password but too in the file include.php
thanksss
Hi Luca I still have the problem of warning unable to connect irrighino, I want to use irrighuino only via the web without the physical buttons or the rain sensor, to override the switches in the config.h file “#define USE_SWITCHES false” is correct? and to disable the rain sensor ??? Thank you so much for everything
sorry the warning is unable to call irrighino, thanks
Ciao Luca,
Ho irrighino da tre anni in giardino e quest’anno ha tirato le cuoia (probabilmente non era perfettamente impermeabilizzato). Volevo ricomprare Yun ma ormai è introvabile.. hai pensato ad una alternativa con altre schede? Grazie ancora per il tuo lavoro
Ciao Giuseppe, I got you covered 😉 https://github.com/lucadentella/irrighino-pi A breve anche un articolo/tutorial