This tutorial will cover the steps to install SIP (Simple Irrigation Protocol) irrigation control on nixOS, using the official SIP Github repository at https://dan-in-ca.github.io/SIP/.
Before beginning, ensure that you have:
Before installing SIP irrigation control, ensure that your system is up-to-date with the latest updates and security patches. To do this, run the following command in your terminal:
sudo nixos-rebuild switch
SIP irrigation control requires the following dependencies to run correctly:
To install the required dependencies, run the following command:
sudo nix-env -i python3 pip git
Next, clone the SIP repository to your local machine using the following command:
git clone https://github.com/dan-in-ca/SIP.git
Once you have cloned the SIP repository, navigate to the "config" folder and edit the "config.json" file to suit your irrigation needs.
cd SIP/config
nano config.json
In this file, you can configure the following settings:
zones
: A list of zones to be irrigated, along with the length of time to irrigate each zone, measured in seconds.sensors
: A list of sensors to be used during irrigation, such as soil moisture sensors or rain sensors.weather
: A boolean indicating whether to use weather data when deciding whether to irrigate.pumps
: A list of pumps to be used during irrigation.Edit the file to suit your needs, save it, and exit.
Finally, start the SIP server by running the following command:
cd ../server
python3 sip.py
This will start the SIP server on your machine. You can now connect to it using a web browser by navigating to http://localhost:8080
Congratulations! You have successfully installed SIP irrigation control on nixOS Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!