pi-irrigation
A Raspberry pi automatic irrigation project
This project works scheduling 2 periods for irrigation using the schedule library.
The program must be added to crontab to run at every raspberry pi reboot. To do this run the command:
crontab -e
Type:
@reboot sudo python /home/pi/pi-irrigation/pi_irrigation.py
Open pi_irrigation.py file and choose which Raspberry pi GPIO pin your relay board is pluged on relay_pin variable. The program is configured to use the GPIO physical location.
Type what hour you desire to activate the solenoid on first_hour and second_hour variables. It was choosen watering 2 times at day.
And finally for how many seconds the solenoid must stay open on watering_time variable.
On the folder /project_images there is a project schema made in fritzing app.