Tried this again today but it doesn't send email. I see the expression true 
in the logs. Has anyone got some idea why the old alarm.py works fine but 
not the "new" alarm_multi.py?
First tried on weewx 3.9.1 and now on 4.0.0 but still the same result.
//Mikael
tisdag 12 mars 2019 kl. 09:06:50 UTC+1 skrev [email protected]:

> 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], [email protected]
>>   from = [email protected]
>>
>>   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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a17bef02-59e7-4429-a38c-064ae7379ea8n%40googlegroups.com.

Reply via email to