Multi "time_wait" for alarm_multi.py

25 views
Skip to first unread message

Remy Lavabre

unread,
Jan 26, 2021, 3:21:06 AM1/26/21
to weewx-user
Alarm.py is an excellent little Python program which allows you to be informed by email when a condition is verified (temperature> 40 ° F or rainfall rate> 0, etc. etc.) -> https://github.com/weewx/weewx/blob/master/examples/alarm.py

This software has been modernized and has been renamed alarm_multi.py https://raw.githubusercontent.com/gjr80/weewx_utilities/master/services/alarm_multi.py

From now on it is possible to indicate several alarms at the same time: if temperature> 0 or if rain rate> 0, or if temperature <40 etc. etc.
This is a big improvement but the problem is that the delay between two alarms is only specified once in the weewx.conf ( time_wait = 3600 ).

However, it would be interesting to have an alarm delay specific to each type of alarm (eg time_wait1 = 10800 for expression.1 = "outTemp> 90.0", time_wait2 = 3600 for expression.2 = "rainrate> 0.0" etc. . etc.).

Not being a Python specialist, would anyone know how to modify this arlarm_multi.py file to take into account these varying delays depending on each type of alarm set by the user ...?

Thank you !
Reply all
Reply to author
Forward
0 new messages