- This topic is empty.
June 24, 2014 at 10:07 pm #22997
Folks, I have an idea for a very simple OSPi plug-in I wanted to get some feedback on.
Summary: Given a location (zip code or lat/long) and a given target percentage, delay watering by a day whenever the NWS projected precipitation forecast percentage exceeds the target.
Example: Assume the target to 70%. Every day at midnight the plugin would pull the current days forecast and if it exceeds 70%, then it would set the equivalent of ‘raindelay = 1 day’ in the OSPi program.
Does that make sense?
Should the software keep doing that day after day regardless of if there was rain or not? Should there be perhaps a limit on ‘max delayed days’ before it just ignores and waters anyway?
Thoughts?June 25, 2014 at 12:12 am #27336
Dan in CAParticipant
This could be useful, especially if it included input from a rain sensor. If it did not actually rain, or if the plugin checked NWS the following day to see how much rain there actually was it could adjust irrigation based on that.
DanJune 29, 2014 at 12:51 am #27337
I too was hoping for this. scottsh has it right. If the weather forecast says it is going to rain, it might. If it says it is not going to rain, it might or, might not. The problem with ZIP code weather is that weather is just so fickle as to which parts of a given ZIP code it actually precipitates upon. Unfair really.
As scottsh says, a real world rain sensor is the only way that the system can be sure but
if it exceeds 70%, then it would set the equivalent of ‘raindelay = 1 day’ in the OSPi program.
Cool stuff.June 30, 2014 at 4:07 pm #27338
It would be even cooler if it worked world wide!
I’m based in Sweden…
Can’t Weather Underground be used for this in any way?
Skickat från min Nexus 7July 6, 2014 at 6:24 pm #27339
I have started coding this and basing it on the rain based delay in my older PHP webapp. I should have a working plugin soon and it will be compatible with my native app once completed.July 7, 2014 at 10:22 pm #27340
That’s awesome – I can’t wait to see it! 🙂July 8, 2014 at 3:05 pm #27341
Oh by the way, I have some code to pull US NWS forecast data in XML via a PHP script if needed. I have attached that. Also, I believe they also have a JSON-formatted data feed.
WU has that data also, however their information is not free. You can sign up for a developer API key for free, but it is limited on how much data you can request per hour and per day.
ScottJuly 8, 2014 at 8:17 pm #27342
Thanks for that! This is what I have so far: https://github.com/salbahra/OSPi
The project got delayed a few days since my laptop is being repaired.July 10, 2014 at 3:29 pm #27343
Looking good! I especially like how you’ve allowed forecast data from either WU or Yahoo.July 10, 2014 at 9:09 pm #27344
I’ll have to wait for a tutorial on how to try this out on my OSPi.
An idea for the future- you could add a feature that compares WU and Yahoo against one another to get more confidence in the chance of rain.July 12, 2014 at 6:42 pm #27345
This plugin is now working (same repo as earlier). I will do some further testing and complete the integration with my mobile app but any feedback at this point would be appreciated.
Update: Dan has kindly merged this plugin into his main branch. Feel free to try it out there too. Mobile app support is now complete pending final testing and release.July 24, 2014 at 4:58 pm #27346
It looks good. It is working for me, although it hasn’t actually kicked off yet – I’m hoping I’ll see it work later today when it rains.
Are you going to add the ability to delay based on a forecasted chance of rain? I think it should also look at the days forecast and if it sees a specified % chance or higher, it should delay that as well.
This way it won’t water at 3am when the forecast for rain in the evening is say greater than 80%. Thoughts?
ScottJuly 24, 2014 at 7:09 pm #27347
I think that’s a great idea! I’ll be honest though, I don’t own an OSPi or even a Raspberry Pi.
I wanted to lay the ground work and also bring the features users had when using the PHP based web app in this plugin.
Basically, I am hoping the community takes over the plugin and contributes to it. If time allows, I can look at coding the forecast check myself. A lot of the grunt work for forecast reading was done by user @charvel and used in my mobile app and likely easily ported to Python for plugin use (both Yahoo and Wunderground).
Thanks!July 25, 2014 at 2:34 pm #27348
Ah consider the community motivated to contribute :). I’ll add that.
- You must be logged in to reply to this topic.