Hi!

Does anyone got this to work on weewx 3.9.1?

I had the original alarm.py working, but this one doesn't send email. I get 
the alarm expression true in the log but it never sends an email.
I double checked the credentials and the smtp settings.

/Mikael

Den onsdag 1 maj 2013 kl. 19:06:00 UTC+2 skrev William Phelps:
>
> I modified the example "alarm.py" to support multiple alarms.  The entries 
> in weewx.conf now look like this:
>
> [Alarm]
>   time_wait = 3600
>   smtp_host = smtp.mymailserver.com
>   smtp_user = myusername
>   smtp_password = mypassword
>   mailto = [email protected] <javascript:>, [email protected] 
> <javascript:>
>   from = [email protected] <javascript:>
>
>   count = 2
>   expression.0 = "outTemp < 40.0"
>   subject.0 = "Alarm message from weewx - Low temperature!"
>   expression.1 = "outTemp > 90.0"
>   subject.1 = "Alarm message from weewx- High temperature!"
>
> I've attached a zip of alarm.py
>
> It's still "static" - to change the alarms, you have to restart weewx 
> after editing weewx.conf.  I thought about having alarm.py re-fetch the 
> config data but that seems like it might be a performance hit since the 
> code is attached to the NEW_ARCHIVE_RECORD event.  Maybe attach another 
> event to re-read the config data?
>
> William
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to