Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sketch
Website
README.md

README.md

irrighino

irrighino is a complete watering system based on Arduino Yun http://www.lucadentella.it/en/2015/08/04/irrighino/

requirements

If you're using a new Arduino Yun Rev.2 or a Yun Shield, follow the steps in the following post to prepare the board for Irrighino: http://www.lucadentella.it/en/2019/02/02/irrighino-e-yun-rev-2/

An Arduino Yun with the latest firmware and the following modules (you can install them using opkg or through the web interface):

  • php5
  • php5-cgi
  • php5-cli
  • php5-mod-curl
  • php5-mod-json
  • php5-mod-pdo
  • php5-mod-pdo-sqlite
  • zoneinfo-core
  • zoneinfo-europe

The Yun webserver (uhttpd) must be configured to execute php scripts, as explained here: http://www.lucadentella.it/en/2013/12/05/yun-utilizzare-php/

installation

Upload the sketch to the Yun. Copy all the files in the "website" folder to the Yun SD card, in a new folder named "irrighino".

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

Create the log folder (/var/log/irrighino/)

If you changed the default Yun password ("arduino"), update the include.php file accordingly.

usage

Connect to http://'yun-ip'/sd/irrighino

customize

Edit the include.php file to change the number of outputs, their names and colors. Edit the config.h file to change the PINs led, switches, outputs are connected to.

You can’t perform that action at this time.