Page 1 of 1

Alert trigger for not-reporting stations

PostPosted: Mon Feb 13, 2017 3:29 pm
by Monstergerm
I am monitoring several weather stations but from time to time one of them fails and stops reporting for hours to days.

The WU plugin monitors the custom state "Current Observation Time" for each weather station device, which no longer updates if the station is not reporting. This is the only indication I have that the station has troubles (besides going to the WU website).

Could we setup a trigger notification in the plugin that notifies me when a station has not been updated for a certain number of hours?

Re: Alert trigger for not-reporting stations

PostPosted: Mon Feb 13, 2017 3:47 pm
by racarter
I've set up a 20-minute timer. A trigger restarts the timer whenever the observation time changes, and another trigger sends a Pushover message to my phone if the timer ever expires.

Re: Alert trigger for not-reporting stations

PostPosted: Mon Feb 13, 2017 4:55 pm
by DaveL17
This is definitely an issue when monitoring PWS locations. The two that are closest to me are both inconsistent and one of them has been offline since the 20th of January (I'm skeptical that it's coming back). To be honest, I never really thought about a notification option like this. It's a great idea.

I'll think about the best way to implement something, but in the interim, I think @racarter's approach is a good one.

Dave

Re: Alert trigger for not-reporting stations

PostPosted: Tue Feb 14, 2017 8:58 am
by DaveL17
I think I have this knocked. I just want to do some testing and think about whether my approach is the best one.

Screen Shot 2017-02-14 at 8.51.29 AM.png
Screen Shot 2017-02-14 at 8.51.29 AM.png (95.53 KiB) Viewed 2354 times


Stay tuned.
Dave

Re: Alert trigger for not-reporting stations

PostPosted: Thu Feb 16, 2017 1:44 pm
by DaveL17
What I have seems to be working well, but I encountered an issue that I didn't anticipate. When Weather Underground has a non-reporting PWS (for example), it can still send a partially-valid data set which will belie its true "on-line" status. For example, I have a PWS site that's been offline since late January, yet WU sends data that says that the last successful update was minutes ago. The bottom line is that it's going to be a little bit more complicated to tell if a site is actually offline and will involve a bit more complex criteria.

(This all applies to the manner in which the trigger gets fired, not the fundamental operation of the plugin.)