Talk:Sprinkler
Jump to navigation
Jump to search
Weather API alternatives
- http://www.programmieren-optimieren.de/php/google-wetter-api-eingestellt-die-alternativen/
- https://stackoverflow.com/questions/12461730/find-weather-using-java
- https://api.meteomatics.com/GettingStarted.html
Open Weather Api
City list: http://bulk.openweathermap.org/sample/city.list.json.gz
Example city Willich
{
"id": 2808559,
"name": "Willich",
"country": "DE",
"coord": {
"lon": 6.55,
"lat": 51.26667
}
},
Example weather
https://api.openweathermap.org/data/2.5/weather?q=Willich,DE&appid=0123456789abcdef...&units=metric
{
"coord":{"lon":6.54,"lat":51.26},
"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations",
"main":{"temp":28.84,"pressure":1020,"humidity":37,"temp_min":27,"temp_max":30},"visibility":10000,
"wind":{"speed":1.5},
"clouds":{"all":0},"dt":1533138900,
"sys":{"type":1,"id":4909,"message":0.0046,"country":"DE","sunrise":1533095958,"sunset":1533151198},
"id":2808559,
"name":"Willich",
"cod":200
}
Java Code
DWD Data
Precipitation data:
- https://www.dwd.de/DE/leistungen/radolan/radolan.html
- Adjusted 1h total precipitation [mm/h] (Radolan), 1km x 1km, Runlength format raa01-rw_10000-[yyMMddhhmm]-dwd---bin
- https://www.dwd.de/EN/ourservices/surface_weather_observations/surface_weather_observations.html
- https://maps.dwd.de/geoserver/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities
<FeatureType>
<Name>dwd:RBSN_RR</Name>
<Title>Niederschlag an RBSN Stationen</Title>
<Abstract>Messwerte des Niederschlags an den DWD Stationen im Regional Basic Synoptic Network (RBSN) der WMO. Erweitert um weitere Stationen der Grundversorgung.</Abstract>
<ows:Keywords>
<ows:Keyword>Beobachtungssystem</ows:Keyword>
<ows:Keyword>Bodenniveau</ows:Keyword>
<ows:Keyword>Geographischer Ort</ows:Keyword>
<ows:Keyword>Meteorologie</ows:Keyword>
<ows:Keyword>Niederschlag</ows:Keyword>
<ows:Keyword>SYNOP</ows:Keyword>
</ows:Keywords>
<DefaultCRS>urn:ogc:def:crs:EPSG::4326</DefaultCRS>
<ows:WGS84BoundingBox>
<ows:LowerCorner>6.02439799999999 47.398578</ows:LowerCorner>
<ows:UpperCorner>14.950565 55.010987</ows:UpperCorner>
</ows:WGS84BoundingBox>
</FeatureType>
- https://github.com/geosolutions-it/geoserver-manager
- https://maps.dwd.de/geoserver/dwd/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=dwd:RBSN_RR&outputFormat=application%2Fjson
How to read Radolan data
- http://www.crahi.upc.edu/ERAD2006/material/orals/ERAD2006-A-00217.pdf
- https://www.hs-rm.de/de/fachbereiche/architektur-und-bauingenieurwesen/forschungsprofil/arbeitsgruppe-starkregen-und-sturzfluten/projekt-klimprax-ap1/radar-software/
- https://moc.online.uni-marburg.de/doku.php?id=courses:bsc:project-thesis-geoei:lecture-notes:bdh:pt-ge-ln-bdh-01-9000
https://opendata.dwd.de/weather/radar/radolan/
- rw (stündlich)
- ry
- sf (täglich)
meto-ubonn radolan
Ubuntu 16.04 LTS
sudo apt-get install shapelib
sudo apt-get install cmake
sudo apt-get install libhdf5-dev
sudo apt-get install libnetcdf-dev
sudo apt-get install libnetcdf-c++4-dev
sudo apt-get install h5utils
git clone https://github.com/meteo-ubonn/radolan.git
cd radolan
cmake .
apt-get source hdf5
sudo apt-get build-dep hdf5
wf@capri:/usr/include$ dpkg -L libhdf5-cpp-11 | grep hl_
/usr/lib/x86_64-linux-gnu/libhdf5_hl_cpp.so.11.0.0
/usr/lib/x86_64-linux-gnu/libhdf5_hl_cpp.so.11
cmake . -DWITH_HDF5=/home/wf/source/cpp/hdf5-1.8.16+docs/hdf5
sudo ln -s /usr/lib/x86_64-linux-gnu/ lib64
sudo apt list --installed | grep netcdf
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libnetcdf-c++4/xenial,now 4.2-4 amd64 [installed]
libnetcdf-cxx-legacy-dev/xenial,now 4.2-4 amd64 [installed]
libnetcdf11/xenial,now 1:4.4.0-2 amd64 [installed]
libnetcdff-dev/xenial,now 4.4.3-1 amd64 [installed]
libnetcdff6/xenial,now 4.4.3-1 amd64 [installed,automatic]
https://github.com/meteo-ubonn/radolan/issues/12
MacOS / macports
sudo port install cmake
sudo port install hdf5
sudo port install netcdf
sudo port install netcdf-cxx
sudo port install shapelib
Warning: port definitions are more than two we
hdf5 has the following notes:
Mac users may need to set the environment variable "HDF5_USE_FILE_LOCKING" to the five-character string "FALSE" when accessing
network mounted files. This is an application run-time setting, not a configure or build setting. Otherwise errors such as
"unable to open file" or "HDF5 error" may be encountered.
git clone https://github.com/meteo-ubonn/radolan.git
cd radolan
cmake .
neso:lib wf$ sudo ln -s libnetcdf_c++.4.dylib libnetcdf_c++4.dylib
neso:lib wf$ ls -l libnetcdf*
-rwxr-xr-x 1 root admin 1047456 25 Nov 2017 libnetcdf.11.4.0.dylib
lrwxr-xr-x 1 root admin 22 25 Nov 2017 libnetcdf.11.dylib -> libnetcdf.11.4.0.dylib
lrwxr-xr-x 1 root admin 18 25 Nov 2017 libnetcdf.dylib -> libnetcdf.11.dylib
-rw-r--r-- 1 root admin 856 25 Nov 2017 libnetcdf.settings
-rwxr-xr-x 1 root admin 114000 25 Nov 2017 libnetcdf_c++.4.dylib
-rw-r--r-- 1 root admin 146768 25 Nov 2017 libnetcdf_c++.a
lrwxr-xr-x 1 root admin 21 25 Nov 2017 libnetcdf_c++.dylib -> libnetcdf_c++.4.dylib
lrwxr-xr-x 1 root wheel 21 13 Aug 17:27 libnetcdf_c++4.dylib -> libnetcdf_c++.4.dylib
Hdf5
<!-- https://mvnrepository.com/artifact/org.hdfgroup/hdf-java -->
<dependency>
<groupId>org.hdfgroup</groupId>
<artifactId>hdf-java</artifactId>
<version>2.6.1</version>
</dependency>
Wetter Online
METAR
https://en.wikipedia.org/wiki/METAR Example: Mönchengladbach
Sensor Alternatives
- https://www.gearbest.com/lcd-led-display-module/pp_1604163.html?wid=1433363¤cy=EUR&vip=2639982&gclid=Cj0KCQjwtb_bBRCFARIsAO5fVvH5NqwbUmECIfoZaKlAmDLcDDrteKGQUiHvQvfuc5IT7nJc4Fwg48kaAoaaEALw_wcB
- https://www.banggood.com/CJMCU-Plant-Watering-Alarm-Humidity-Moisture-Sensor-For-Arduino-p-1098912.html?gmcCountry=DE¤cy=EUR&createTmp=1&utm_source=googleshopping&utm_medium=cpc_elc&utm_content=2zou&utm_campaign=pla-all2-de-en-pc&gclid=Cj0KCQjwtb_bBRCFARIsAO5fVvE4wZKzdq-B1f8jFkw2LTyyW0e6AeoVmjDUreJb_ukqQusaAwwphGcaAvbgEALw_wcB&cur_warehouse=CN
Rain gauge
https://en.wikipedia.org/wiki/Rain_gauge
- https://www.amazon.de/Royal-Gardineer-Zubehör-Bewässerungs-Steuergerät-Bewässerungs-Anschlussverteiler/dp/B013WWOALW
- https://www.amazon.de/Regenmesser-Funk-für-Netatmo-Wetterstation/dp/B00J5OHDGG
- https://www.ecotech-bonn.de/de/produkte/meterologie/sensoren1/niederschlag/niederschlagskippwaage_ku/
- https://www.rainwise.com/products/detail.php?ID=6697