general design, code and firmware for an expandable IoT irrigation system
- ssh into pi
sudo systemctl stop collector
./scripts/up.sh
- Manually update env vars in systemctl file and reload
/lib/systemd/system/$SERVICE_NAME.service
andsudo systemctl daemon-reload
sudo systemctl start collector
sudo systemctl status collector
- Send test curl to ensure everything is working. Use 22 as the id.
curl $PI_IP:8080/data -d '{"sensor_id":22, "temp": 498.0}'