SIP
weather_adj plugin issues - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Plugin questions (https://nosack.com/sipforum/forumdisplay.php?fid=6)
+--- Thread: weather_adj plugin issues (/showthread.php?tid=22)

Pages: 1 2


RE: weather_adj plugin issues - dan - 2016 Feb 04

I think I may have found the problem.

There was a typo in the code that returns an empty Python dictionary if no location data is available. This could cause the plugin to hang.

Testing over that past couple of weeks have not shown a problem.

The updated plugin is now on GitHuB.

Dan


RE: weather_adj plugin issues - DavidCNZ - 2016 Feb 08

Thanks Dan, I've just installed it and will let you know how it goes.

David


RE: weather_adj plugin issues - DavidCNZ - 2016 Feb 19

Hi Dan,

It hasn't skipped a beat since I updated it. Thank you very much for your efforts.

David


RE: weather_adj plugin issues - DavidCNZ - 2016 Mar 04

Hi Dan,

I spoke too soon. I just checked and it stopped on Feb 24th. Saving the plugin settings got it started again.

David


RE: weather_adj plugin issues - dan - 2016 Mar 10

That's interesting. I wonder if the settings file got corrupted.

Let me know if it happens again and how long it ran before stopping.

Dan


RE: weather_adj plugin issues - DavidCNZ - 2016 Mar 24

Hi Dan,

It looks like it stopped again 2 days ago so that means it ran for ~ 19 days. WeatherUnderground doesn't seem to be very reliable though, most calls don't get a result and I'm fairly sure the problem is at their end. Perhaps I need to invest in a rain sensor.

Cheers
David


RE: weather_adj plugin issues - Ryan - 2017 Jul 13

(2016 Mar 24, 05:39 AM)DavidCNZ Wrote: Hi Dan,

It looks like it stopped again 2 days ago so that means it ran for ~ 19 days. WeatherUnderground doesn't seem to be very reliable though, most calls don't get a result and I'm fairly sure the problem is at their end. Perhaps I need to invest in a rain sensor.

Cheers
David

My apologies for bumping this dead thread, but I have the exact same issue described.  I noticed this morning that the irrigation system fired up in the middle of a huge downpour that had been ongoing for hours.  I had enabled logging, so I checked ~/SIP/data/weather_log.txt, and saw that July 10th was the last day the weather was checked.  

I had noticed the issue before and put in a weekly reboot to the crontab to work around this, but that does not seem to be helping.  I looked in the syslog and see that cron logging is not enabled, so I've enabled this to hopefully provide more information.  

I'm running the latest version of the plugins (and SIP) - is there any information I can provide to help troubleshoot?


Thanks!


RE: weather_adj plugin issues - dan - 2017 Jul 13

Hi Ryan,

I'll need to set up an instance of SIP with that plugin installed on my test rig and do some testing to see if I can figure out what is causing it to stop working.

Give me a couple of days and I will report back here with any ideas or fixes. In the mean time, feel free to add any other information you think may be relevant.

Are you using Yahoo weather or weather underground?
Does the file SIP/data/weather_log.txt contain any error info?

Dan


RE: weather_adj plugin issues - Ryan - 2017 Jul 14

(2017 Jul 13, 06:37 PM)dan Wrote: Hi Ryan,

I'll need to set up an instance of SIP with that plugin installed on my test rig and do some testing to see if I can figure out what is causing it to stop working.

Give me a couple of days and I will report back here with any ideas or fixes. In the mean time, feel free to add any other information you think may be relevant.

Are you using Yahoo weather or weather underground?
Does the file SIP/data/weather_log.txt contain any error info?

Dan
Thank you Dan!

I'm using Weather Underground - here is the last few entries from my weather_log.txt file - it appears that even after a reboot yesterday morning, the plugin is not collecting weather data as it should:

...
Sun Jul  9 12:04:16 2017, Clear
Sun Jul  9 13:04:21 2017, Clear
Sun Jul  9 14:04:25 2017, Partly Cloudy
Sun Jul  9 15:04:29 2017, Mostly Cloudy
Sun Jul  9 16:04:33 2017, Mostly Cloudy
Sun Jul  9 17:04:38 2017, Overcast
Sun Jul  9 18:04:42 2017, Partly Cloudy
Sun Jul  9 19:04:46 2017, Partly Cloudy
Sun Jul  9 20:04:51 2017, Clear
Sun Jul  9 21:04:55 2017, Mostly Cloudy
Sun Jul  9 22:04:59 2017, Partly Cloudy
Sun Jul  9 23:05:04 2017, Mostly Cloudy
Mon Jul 10 00:05:08 2017, Clear
Mon Jul 10 01:05:13 2017, Partly Cloudy
Mon Jul 10 02:05:17 2017, Partly Cloudy
Mon Jul 10 03:05:21 2017, Partly Cloudy
Mon Jul 10 04:05:26 2017, Overcast
Mon Jul 10 05:05:30 2017, Overcast
Mon Jul 10 06:05:34 2017, Mostly Cloudy
Mon Jul 10 07:05:39 2017, Mostly Cloudy
Mon Jul 10 08:05:43 2017, Overcast
Mon Jul 10 09:05:47 2017, Overcast
Mon Jul 10 10:05:51 2017, Rain

I'll keep doing poking on my end, thanks again!

-Ryan


RE: weather_adj plugin issues - Ryan - 2017 Jul 14

An update; I updated my Jessie install with apt-get, and also forced a fsck during the reboot.  It looks like a kernel update was issued at the beginning of the month among other things.

As of 10 minutes ago, the weather is being checked again.  I'll see if it stops again anytime soon...