Thanks, Tom This problem was addressed in issue #351 <https://github.com/weewx/weewx/issues/351>. Try the version of alarm.py in the development branch <https://raw.githubusercontent.com/weewx/weewx/development/examples/alarm.py> and see if it works.
-tk On Sat, Jan 5, 2019 at 3:13 PM <[email protected]> wrote: > As requested. I did not see any errors. Right at start up around line > 132 you can see where the alarm evaluated true. > > > > Tom > > > > *From:* [email protected] <[email protected]> *On > Behalf Of *Thomas Keffer > *Sent:* Saturday, January 5, 2019 4:38 PM > *To:* weewx-user <[email protected]> > *Subject:* Re: [weewx-user] Alarm.py Help > > > > If you did not see a log entry to the effect "alarm: email sent to: XXX", > then an email did not go out. > > > > Try again, this time setting debug=1, then restarting WeeWX. Then post > the log. > > > > -tk > > > > On Sat, Jan 5, 2019 at 10:20 AM <[email protected]> wrote: > > I set up alarm.py per the instructions (I think). I wanted to test an > alarm so I set it for expression= "outTemp > 40". When I run weewx I get > > > > alarm: Alarm set for expression: 'outTemp > 40.0' > > > > alarm: Alarm expression "outTemp > 40.0" evaluated True at 2019-01-05 > 11:15:00 CST (1546708500) > > > > This is what I would expect however nothing else happens. I looked in the > syslog file and there is no mention of the mail being sent or an smtp > error. Also there were no other entries stating the expression was true. > > > > I waited one hour and again got this but no other entries in syslog. > > > > Jan 5 12:16:16 raspberrypi weewx[5473]: alarm: Alarm expression "outTemp > > 40.0" evaluated True at 2019-01-05 12:16:00 CST (1546712160) > > > > > > I am using a Raspberry Pi. > > > > Thanks, > > > > Tom > > > > > > -- > 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 > <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7C%7C3bca1eaba3b04f7d1df308d6735e9274%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636823247344665984&sdata=VqVPMyQtRj42Ak3hVe9Pe0VZAjieGurEzj%2BBwtU%2BD1M%3D&reserved=0> > . > > -- > 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 > <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7C%7C3bca1eaba3b04f7d1df308d6735e9274%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636823247344665984&sdata=VqVPMyQtRj42Ak3hVe9Pe0VZAjieGurEzj%2BBwtU%2BD1M%3D&reserved=0> > . > > -- > 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. > -- 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.
