pimatic / pimatic

A home automation server and framework for the raspberry pi running on node.js
http://pimatic.org
GNU General Public License v2.0
598 stars 144 forks source link

Predicates for rain fall infos from Buienradar.nl #160

Open sandervandegeijn opened 10 years ago

sandervandegeijn commented 10 years ago

Buienradar.nl has a nice simple way to know if it's going to rain on your GPS location:

http://gratisweerdata.buienradar.nl/ -> http://gps.buienradar.nl/getrr.php?lat=52&lon=4

We could expose this data in pimatic as forecast to know when it's going to rain. The plugin could expose multiple sensors like rain-in-5min, rain-in-10min, rain-in-15min, rain-in-30min, etc. This makes it possible to retract your sunscreen for example.

I'd like to build this myself, but I don't have experience with coffeescript, so that could take a while.

betonishard commented 10 years ago

Just to add this at the right location.

I have buienradar info's on my pimatic. I receive a signal if it's going to rain 15 minutes from now. Very basic explanation. I use python to initiate a perl script (why, because I don't have the correct skills to make a translation). This perl scripts evaluates data from the url above (api). If above a certain number -- rain expected -- and send a pilight-send command to a shell switch (could be another switch if you like, like suncreens) if no rain is expected it sends an off signal to the shell switch. Every 5 minutes I initiate this python script and once per hour I fetch the data from buienradar. For now I use a pushover notification to receive information if it's going to rain (pretty useless, however hope to find something that could be cool).

sweetpi commented 10 years ago

Discovered that buienrada.nl has very interesting data:

http://www.buienradar.nl/Json/GetTwentyFourHourForecast?geolocationid=2892794 http://www.buienradar.nl/Json/GetDailyForecast?geolocationid=2892794

I think I will create a predicate provider for it.

koffienl commented 10 years ago

Interesting .. could use this with a idea to calculate how long it would take to heat up the livingroom in the morning during winter.

incmve commented 10 years ago

The mobile app works really accurate with weather prediction, I see potential to control a sunscreen if rain is expected or when it's sunny and the room is heating up.

sweetpi commented 10 years ago

Could you post some example rule condition you would like to use?

incmve commented 10 years ago

I'm not sure how pimatic would get his data. My rule would be something like this:

 IF precipationmm is > 0.5 THEN turn sunscreen up
sandervandegeijn commented 9 years ago

They also have different intervals, that would be nice. Something like if forecast5min > 0.2mm then turn sunscreen up

philipkocanda commented 7 years ago

Created a plugin for this: https://github.com/philipkocanda/pimatic-buienradar. Let me know if it works for you!