Open sandervandegeijn opened 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).
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.
Interesting .. could use this with a idea to calculate how long it would take to heat up the livingroom in the morning during winter.
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.
Could you post some example rule condition you would like to use?
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
They also have different intervals, that would be nice. Something like if forecast5min > 0.2mm then turn sunscreen up
Created a plugin for this: https://github.com/philipkocanda/pimatic-buienradar. Let me know if it works for you!
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.