OK. I got it working by changing my server to one requiring SSL. I was using a non-SSL server and the latest version you sent still would not work. I also tried Gmail SMTP and it works. The “issue” seems to be with non-SSL servers. I usually find it the other way around.
I tried the original example alarm.py using an SSL server and it works so I think this confirms my ”issue” is with non-SSL servers. Sorry for all the trouble. I am happy to use the SSL server. Many thanks. Tom From: weewx-user@googlegroups.com <weewx-user@googlegroups.com> On Behalf Of Thomas Keffer Sent: Saturday, January 5, 2019 8:22 PM To: weewx-user <weewx-user@googlegroups.com> Subject: Re: [weewx-user] Re: Alarm.py Help Looks like your smtp server hangs if you try to connect to it using SSL. Try this version. -tk On Sat, Jan 5, 2019 at 5:23 PM <nineb...@gmail.com <mailto:nineb...@gmail.com> > wrote: As requested. Thanks for helping. Tom From: weewx-user@googlegroups.com <mailto:weewx-user@googlegroups.com> <weewx-user@googlegroups.com <mailto:weewx-user@googlegroups.com> > On Behalf Of Thomas Keffer Sent: Saturday, January 5, 2019 6:58 PM To: weewx-user <weewx-user@googlegroups.com <mailto:weewx-user@googlegroups.com> > Subject: Re: [weewx-user] Re: Alarm.py Help Hmmm. Try this version. It has been heavily instrumented. Again, run with debug=1. Make sure you restart WeeWX. -tk On Sat, Jan 5, 2019 at 4:46 PM <nineb...@gmail.com <mailto:nineb...@gmail.com> > wrote: I used the alarm.py version that you sent the link to. I attached it along with the syslog. I am not using an SSL connection. Still nothing. I did notice an error when I quit weewx this time. On Saturday, January 5, 2019 at 12:20:32 PM UTC-6, nine...@gmail.com <mailto:nine...@gmail.com> 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 weewx-user+unsubscr...@googlegroups.com <mailto:weewx-user+unsubscr...@googlegroups.com> . For more options, visit https://groups.google.com/d/optout <https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7C%7C92b12f8c8e4645bb4fe208d6737de1b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636823381818955987&sdata=hmR9ch09sTJBiJFQH3NhZVCWdk%2FT2ZKafNAxVScGe90%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 weewx-user+unsubscr...@googlegroups.com <mailto:weewx-user+unsubscr...@googlegroups.com> . For more options, visit https://groups.google.com/d/optout <https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7C%7C92b12f8c8e4645bb4fe208d6737de1b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636823381818955987&sdata=hmR9ch09sTJBiJFQH3NhZVCWdk%2FT2ZKafNAxVScGe90%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 weewx-user+unsubscr...@googlegroups.com <mailto:weewx-user+unsubscr...@googlegroups.com> . For more options, visit https://groups.google.com/d/optout <https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7C%7C92b12f8c8e4645bb4fe208d6737de1b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636823381818955987&sdata=hmR9ch09sTJBiJFQH3NhZVCWdk%2FT2ZKafNAxVScGe90%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 weewx-user+unsubscr...@googlegroups.com <mailto:weewx-user+unsubscr...@googlegroups.com> . For more options, visit https://groups.google.com/d/optout <https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7C%7C92b12f8c8e4645bb4fe208d6737de1b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636823381818955987&sdata=hmR9ch09sTJBiJFQH3NhZVCWdk%2FT2ZKafNAxVScGe90%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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.