/rusty-irrigation-system

Primary LanguageRustGNU General Public License v3.0GPL-3.0

rusty-irrigation-system

An irrigation system written in rust. For now, runs only on Raspberry-Pie (tested with zero 2 w), more platforms are welcome Allow you to open a single valve (more features to come, multi-valve, etc')

How to use

Download latest release. Copy it to your Raspberry-Pie. Create a file in the same directory called config.yaml

valve_type: RaspberryPie
gpio_pins: 4
version: 1
watering_clock:
  start_time: 05:00:00
  duration: 30
  interval: 24

make the rusty-irrigation-system executable:

chmod a+x rusty_irrigation_system

Run the executable:

./rusty_irrigation_system

Dev

In order to compile the code, needs a different target: First add cross Best to follow this guide which worked for me Afterwards, we can run commands:

cross test --target armv7-unknown-linux-musleabihf