Sprinkler
Project
OsProject | |
---|---|
id | |
state | |
owner | |
title | software for sprinkler / water irrigation system based on weather and other parameters |
url | https://github.com/BITPlan/com.bitplan.sprinkler |
version | 0.0.1 |
description | |
date | |
since | |
until |
Requirements
See also
- https://gardening.stackexchange.com/questions/41255/calculating-amount-of-water-needed-per-day-based-on-weather-and-other-parameters
- open issues on github
- implemented issues on github
- The System shall sprinkle if the lawn needs water
- The System shall sprinkle in the morning no earlier than configured
- The System shall sprinkle in the evening no later than configured
- The System shall sprinkle as often per day as configured
- The System shall collect rain data from a weather service
- The System shall be able to read weather data from the openweathermap api
- The System shall operate by simply switching on and off a garden pump at appropriate times
- The System shall determine the amount of irrigation needed based on the weather and the configuration data
- An Administrator shall be able to configure the system by setting
- coordinates of the location where the system is operated lon/lat
- l/minute the sprinkler deploys when switched on
- earliest time in the morning the system may sprinkle
- latest time in the evening the system may sprinkle
- number of times per day the system shall sprinkle if needed
- size of area to being sprinkled
- average l/day beeing evaporated per day by non lawn plants (e.g. trees)
- A user shall be able to arm/disarm the system
- A user shell be able to see the system operation log
- The system operation log shall show the amount of water that has been irrigated as an equivalent mm rain / day and the total liters for the area
- The system shall read a list of weather locations from the openweather api
- The system shall (initially) have a simple command line interface
Use cases
configure system
As an administrator I'd like to configure the system.
arm / disarm system
As a user I'd like to arm/disarm the system. When the system is armed it will automatically sprinkle. If the system is disarmed only manual operation of the sprinkler is possible.
System context
Packages and Classes
How much and when ?
German
- https://rollrasen.eu/service/rasenpflege/
- http://www.daserste.de/unterhaltung/quiz-show/wer-weiss-denn-sowas/videos/wer-weiss-denn-sowas-folge-207-rasen-waessern-video-100.html
- https://www.sat1.de/ratgeber/wohnen-garten/gartengestaltung/rasen-bewaessern-wie-oft-und-viel-ihr-gruen-vertraegt
- https://www.mein-schoener-garten.de/gartenpraxis/ziergaerten/rasen-richtig-bewaessern-6651
- https://www.gartenjournal.net/rasen-sprengen
- https://www.viking.at/schoenthaler-richtiges-bewaessern-Rasen-hochsommerliche-temperaturen.aspx
Hardware example
Software controllable power switch
AVM Fritz DECT 200/210
- https://www.amazon.com/AVM-20002572-FRITZ-DECT-200/dp/B00AQ9E77M
- https://www.amazon.de/AVM-Intelligente-Steckdose-Spritzwasserschutz-Außenbereich/dp/B01MRZ60F0
Installation
Download jar (OS independent) or exe (Windows) file from https://github.com/BITPlan/com.bitplan.sprinkler/tree/master/release
Try it out
java -jar sprinkler.jar -h
should show the available command line parameters
Configuration
A minimal configuration file "default.json" looks like this:
{
"appid": "<insert your openweathermap api key here>",
"location": { "id": 2887186 }
}
First you might want to get an appid from openweathermap. You can find the id of your nearest location with some of the geo calls of the API: https://openweathermap.org/current#geo