Hi there,
I installed emoncms Event module, and it works fine. I'm looking for this event: send me an alert if a given feed (i.e. production) is zero for at least 11 hours. How can I create this type of events?
Thanks!!! :)
Archived Forum |
|
Emoncms event moduleSubmitted by hercules71035 on Thu, 14/05/2015 - 07:16Hi there, I installed emoncms Event module, and it works fine. I'm looking for this event: send me an alert if a given feed (i.e. production) is zero for at least 11 hours. How can I create this type of events? Thanks!!! :) » |
Re: Emoncms event module
How about this: sends an e-mail if variable "indoor temp" = 0 for more than 12 hours
Note that if indoor temp wiggles even once from 0, it will reset the 12 hour timer. If you have an actual sensor connected (whose signal is bound to vary at least a little) you may want to use "less than 1" instead of "equal to 0".
Re: Emoncms event module
Yeah! Great answer! I'll try it!
Re: Emoncms event module
Oh wait... there used to be a feature in Event called "Pre Mute" that confused me. "Pre Mute" is what you want. What I proposed above will fire a message immediatly when the variable equals 0, then wait 12 hours before notifying you again. The 12-hour setting is a "Post Mute".
Does anyone know if "Pre Mute" has re-appeared in the Event module version 8.5.x? I am still on 8.4.0 and don't have it.
Re: Emoncms event module
...is zero...do you mean null??
If it is null (ie a feed which isn't being updated) try https://github.com/emoncms/notify
Paul
Re: Emoncms event module
No paul, I want zero. I'm interested in monitoring if something goes wrong in production (i.e. Inverter is down) not if emontx works properly.
Re: Emoncms event module
Ah, in that case JD's solution appears sound, especially setting <1 instead of 0.
However, emoncms was never designed to be mission critical, so be wary of using it in a commercial environment.
Paul