I just did a clean installation of v3.7.1 on a Raspberry Pi 2 running jessie. I am getting basic data from the weather station (outdoor temp., barometer, wind, etc.) I have extra temperature sensors on the system and am trying to get an alarm email when one of them exceeds a certain temperature. It would be nice to be able to set two alarms--one when the temperature goes up and one when it returns below a point.
I found postings to this group regarding several issues.
I found this one regarding multiple alarms:
https://groups.google.com/forum/#!msg/weewx-user/-IGQC3CpXAE/0dlEB2SRAAAJ;context-place=forum/weewx-userAnd I found this one regarding changes to the WMR200 driver to pick-up data for additional temperature sensors:
https://raw.githubusercontent.com/weewx/weewx/master/bin/weewx/drivers/wmr200.pyI need to get the alarm for one of the extraTempx entries but can't get the alarm to work. I've tried testing for extraTemp3, temperature_4 to no avail. I'd be happy to just get an email alarm when the temperature exceeds my value. When I check the syslog it shows the alarm as set but I never get the alarm to trigger, no matter what temperature level I set.
Any suggestions on what I may be doing incorrectly? Any new documentation on alarms and the WMR200?
Here are some of the settings I've tried in weewx.conf:
report_services = weewx.engine.StdPrint, weewx.engine.StdReport, user.alarm.MyAlarm
[Alarm]
expression = temperature_3 > 51.0
subject = "Alarm message from weewx--temperature_3"
time_wait = 3600
expression = locals().has_key('extraTemp2') and extraTemp2 > 51.0
expression.0 = locals().has_key('extraTemp2') and extraTemp2 > 51.0
Bill S.