Project developed by two students from Polytech Lyon.
Goal : Create a water scheduling software to pilot a 3-way valve and 3 lights.
The software is running on a Raspberry Pi B and interacts with its environment via the GPIO.It is composed of two parts, that have to be installed in /var/www/html (assuming you have a web server like lttpd or apache).
The script will check the interface file for modifications. It will write on the GPIO if it has to water or/and light the garden.
It's composed of a writing-only part (that generate impulsions to simulate the water counter) and of an intelligent part that follow orders and read the water counter.
Once a task is accomplished, it will notify the website by adding a line in the water history.
The file io/output.json is the interface file. It is composed of light and water orders that are read by the Python script.
The website, developed in HTML5, CSS3, JS, MDBootstrap and Font-Awesome, is the responsive view for the user. He can overview the system and create light or water orders.