Openspinkler Pi
- Openspinkler Pi product page
- OSPI v1.52 hardware board
- OSPi v1.5 User manual
- Web Interface
Firmware
Usage
Weather Adjustments
- Using Weather Adjustments
- Forecast / weather metrics are fetched from DarkSky (
https://darksky.net
currently broken)
Weather providers:
- GitHub OpenSprinkler-Weather weather provider service code
- Default provider:
http://weather.opensprinkler.com
- Opensprinklershop.de open-meteo.com provider:
http://opensprinklershop.de:3336
Current configured weather provider - opensprinklershop.de DWD provider:
http://opensprinklershop.de:3333
Also: Instructions how to change weather provider for Opensprinkler
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
- OS API docs
- API password is the md5-hashed system-pw
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