alarm.py question

75 views
Skip to first unread message

Roebert Akraks

unread,
Jan 30, 2020, 5:27:43 AM1/30/20
to weewx-user
Hello,

I use the email alarm extention which basically works as it is designed. As soon as a value gets out of range, I get an email. I don't know why, but this week, the usb-serial converter for the station got disconnected (syslog shows ttyUSB0 disconnected, and afterwards showed up as ttyUSB1). Therefore my driver started throwing error messages in the log, but I did not get any email messages.

I guess the problem here is, that no value was out of range, because there simply was no value. The archive records don't contain the values to check, the database shows NONE for most of the values.


Is there an (easy) way to catch a a problem like this and get notified?



-----------------------------------
About my station:
I built the station myself, because I have access to professional temperature measurement equipment and I want to be albe to calibrate the temperature sensor in a dry block calibrator. This is difficult or impossible with the standard (consumer) weatherstation hardware. I wrote a driver to read the (live - no data storage on the station) values with modbus over a RS485 interface. It was running for almost a year without any problems, until the USB converter caused a problem.

Thomas Keffer

unread,
Jan 30, 2020, 7:56:22 AM1/30/20
to weewx-user
The easiest would probably to set up a logwatch. It's a better tool for these kinds of system problems.

-tk

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/64f3d748-f16f-42f6-b572-11c31599b2c4%40googlegroups.com.

Thomas Keffer

unread,
Jan 30, 2020, 7:57:40 AM1/30/20
to weewx-user
Oh, and be sure to set up a udev script to avoid port switching problems. See the section Installing a udev script in the User's Guide. 

Roebert Akraks

unread,
Jan 31, 2020, 5:28:37 AM1/31/20
to weewx-user

Thanks for the input, the udev script should avoid the problem, I implemented that. Besides that, I modified alarm.py to also check the record for missing entries. As it is in the user directory, It should be ok to do that. :D


(and I replaced the USB/Serial converter. When I installed the station, I used just the next one I could find, but it has a chip I never saw before, now I use one with a profilic chip, I have good experience with them also on other applications)
Reply all
Reply to author
Forward
0 new messages