If the condition is being triggered and logged its possible the issue is with the email transport. Any clues will be in the logs. Set debug = 1 in weewx.conf and restart WeeWX then cause one of the conditions to be triggered. Post the WeeWX log. Look in the emails logs for your system, which log will depend on your system but syslog, mail.err, mail.log and mail.info may be good places to look.
Gary On Saturday, 19 September 2020 at 17:57:45 UTC+10 [email protected] wrote: > > 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/d18b915f-cdf0-4c71-bd32-b2ee0d50b21dn%40googlegroups.com.
