Skip to content

Openspinkler Pi

Firmware

Usage

Weather Adjustments

Weather providers:

Example request:

$ export LOC='12.3456, 98.1234,9.244'
$ curl "http://weather.opensprinkler.com/weather1.py/?loc=$LOC"
&scale=0&tz=56&sunrise=405&sunset=1190&eip=2728279759&rawData={"wp":"DS","h":88.62,"p":0.21,"t":60.5,"raining":1}&errCode=0%

$ curl "http://opensprinklershop.de:3336/weather1.py/?loc=$LOC"
&scale=0&tz=56&sunrise=405&sunset=1190&eip=779266636&rawData={"wp":"OM","h":93.09,"p":0.38,"t":60.6,"raining":1}&errCode=0%

$ curl "http://opensprinklershop.de:3333/weather1.py/?loc=$LOC"
&scale=0&tz=56&sunrise=405&sunset=1190&eip=779266636&rawData={"wp":"DWD","h":85.96,"p":0.27,"t":60.5,"raining":1}&errCode=0%

Opensprinkler API

i.e.:

export API_PW=$(gopass show --password token/opensprinkler.lan/api-pw)

Get controller values:

curl "opensprinkler.lan:8080/jc?pw=$API_PW"

Get all values:

curl "opensprinkler.lan:8080/ja?pw=$API_PW"

Get logs of last 30 days:

curl "opensprinkler.lan:8080/jl?pw=$API_PW&hist=30" | jq .

Upgrading

B. Upgrade a previously installed Unified Firmware

Warning: The firmware update process will set OS back to factory defaults. This includes controller settings, program settings, and device password (which will be set back to the factory default of “opendoor”). Please ensure you back up your current configurations (e.g. Export Configurations) before proceeding with firmware update.

sudo systemctl stop OpenSprinkler.service
cd ~/projects/smart-home/opensprinkler/OpenSprinkler-Firmware
git fetch
git checkout -b '220(2)' '220(2)'
sudo ./build.sh ospi
sudo systemctl start OpenSprinkler.service
  • Login with default pw (opendoor)
  • Re-import backup
  • Reset password

GPIO issues

Container

Android app

Sensors

Soil moisture sensors