Difference between revisions of "Sprinkler"

From BITPlan Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:sprinkler2018-08-05.png|400px]]
+
[[File:sprinkler2018-08-05.png|400px|left|link=Sprinkler/Help]]
 
= Project =
 
= Project =
{{OsProject|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}}
+
{{OsProject
 +
|id=com.bitplan.sprinkler
 +
|owner=BITPlan
 +
|title=software for sprinkler control / water irrigation system based on weather and other parameters  
 +
|url=https://github.com/BITPlan/com.bitplan.sprinkler
 +
|version=0.0.1
 +
|date=2018-08-20
 +
|storemode=property}}
  
 
= Manual / Help =
 
= Manual / Help =
Line 67: Line 74:
 
       double lEvaporationPerDay;
 
       double lEvaporationPerDay;
 
     }
 
     }
 +
    class SprinklePeriod {
 +
      Date start;
 +
      Date stop;
 +
      Double mm;
 +
      Double kWh;
 +
      SprinkleSource source;
 +
    }
 +
    class SprinkleHistory {
 +
      String name;
 +
    }
 +
    SprinkleHistory -> "sprinklePeriods n" SprinklePeriod
 
   }
 
   }
 
   package org.openweathermap.weather {
 
   package org.openweathermap.weather {
Line 150: Line 168:
  
 
= Hardware example =
 
= Hardware example =
 +
The system assumes that your sprinkler is controllable via a simple power on/power off mechanism. This is true for quite a few
 +
situations where your sprinkler is operated via a garden pump.
 
== Software controllable power switch ==
 
== Software controllable power switch ==
AVM Fritz DECT 200/210
+
https://avm.de/fileadmin/user_upload/Global/Produkte/FRITZDECT/210/fritzdect_210_left_de_640x600.png
* https://www.amazon.com/AVM-20002572-FRITZ-DECT-200/dp/B00AQ9E77M
+
AVM Fritz DECT 210
 
* https://www.amazon.de/AVM-Intelligente-Steckdose-Spritzwasserschutz-Außenbereich/dp/B01MRZ60F0
 
* https://www.amazon.de/AVM-Intelligente-Steckdose-Spritzwasserschutz-Außenbereich/dp/B01MRZ60F0
 +
 
= Installation =
 
= Installation =
 
Download jar (OS independent) or exe (Windows) file from https://github.com/BITPlan/com.bitplan.sprinkler/tree/master/release
 
Download jar (OS independent) or exe (Windows) file from https://github.com/BITPlan/com.bitplan.sprinkler/tree/master/release
Line 192: Line 213:
 
First you might want to [https://openweathermap.org/appid#get get an appid from openweathermap].
 
First you might want to [https://openweathermap.org/appid#get 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
 
You can find the id of your nearest location with some of the geo calls of the API: https://openweathermap.org/current#geo
 +
== Libraries used ==
 +
* {{Link|target=Com.bitplan.javafx}}
 +
 +
= Icons Attribution =
 +
* [[File:85783.svg|128px]] Icon made by Freepik from www.flaticon.com
 +
* [[File:126391.svg|128px]] Icon made by Gregor Cresnar from www.flaticon.com
 +
* [[File:320127.svg|128px]] Icon made by Smashicons from www.flaticon.com
 +
[[Category:frontend]]

Latest revision as of 10:21, 20 February 2019

Sprinkler2018-08-05.png

Project

OsProject
edit
id  com.bitplan.sprinkler
state  
owner  BITPlan
title  software for sprinkler control / water irrigation system based on weather and other parameters
url  https://github.com/BITPlan/com.bitplan.sprinkler
version  0.0.1
description  
date  2018-08-20
since  
until  

Manual / Help

Please go to the Manual / Help page for more details.

Requirements

See also

  1. The System shall sprinkle if the lawn needs water
  2. The System shall sprinkle in the morning no earlier than configured
  3. The System shall sprinkle in the evening no later than configured
  4. The System shall sprinkle as often per day as configured
  5. The System shall collect rain data from a weather service
    1. The System shall be able to read weather data from the openweathermap api
  6. The System shall operate by simply switching on and off a garden pump at appropriate times
  7. The System shall determine the amount of irrigation needed based on the weather and the configuration data
  8. An Administrator shall be able to configure the system by setting
    1. coordinates of the location where the system is operated lon/lat
    2. l/minute the sprinkler deploys when switched on
    3. earliest time in the morning the system may sprinkle
    4. latest time in the evening the system may sprinkle
    5. number of times per day the system shall sprinkle if needed
    6. size of area to being sprinkled
    7. average l/day beeing evaporated per day by non lawn plants (e.g. trees)
  9. A user shall be able to arm/disarm the system
  10. A user shell be able to see the system operation log
  11. 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
  12. The system shall read a list of weather locations from the openweather api
  13. 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 how often?

German

Hardware example

The system assumes that your sprinkler is controllable via a simple power on/power off mechanism. This is true for quite a few situations where your sprinkler is operated via a garden pump.

Software controllable power switch

fritzdect_210_left_de_640x600.png AVM Fritz DECT 210

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

Rainforecast

java -jar sprinkler.jar -rf
2018-08-06 15:00:00 1.62 mm
2018-08-06 18:00:00 3.66 mm
2018-08-06 21:00:00 2.63 mm
2018-08-07 00:00:00 0.32 mm
2018-08-07 03:00:00 0.0 mm
2018-08-07 06:00:00 0.0 mm
2018-08-07 09:00:00 0.0 mm
2018-08-07 12:00:00 0.0 mm
2018-08-07 15:00:00 1.14 mm
2018-08-07 18:00:00 0.31 mm
2018-08-07 21:00:00 0.0 mm
2018-08-08 00:00:00 0.0 mm
2018-08-08 03:00:00 0.38 mm
2018-08-08 06:00:00 1.52 mm

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

Libraries used

Icons Attribution

  • 85783.svg Icon made by Freepik from www.flaticon.com
  • 126391.svg Icon made by Gregor Cresnar from www.flaticon.com
  • 320127.svg Icon made by Smashicons from www.flaticon.com