This is a two sensor set for the freezer and fridge. The only difference
is the Acurite console comes set with alarm thresholds of 0 F for the
freezer sensor and 40 F for the fridge sensor. The sensors are the same
model.
I should have been clearer in my first post but the regex does not work and
I am not sure why.
PATTERN = re.compile('0x([0-9a-fA-F]+) - 2F: ([\d.]+) C ([\d.]+) F')
#hardcoded to 2F -- trying this to get the regex to work
PATTERN = re.compile('0x([0-9a-fA-F]+) - ([0-9a-fA-F]+): ([\d.]+) C
([\d.]+) F') # this would grab the 1F or 2R to uses as a message type,
then the 986 class will start to look more like the 5in1 class to multiple
message types.
root@chip:/home/weewx# PYTHONPATH=bin python bin/user/sdr.py --debug
--cmd="/usr/local/bin/rtl_433 -U -G" | grep 986
out: ['2016-10-31 15:21:55 Acurite 986 sensor 0x85ed - 1R: 16.7 C 62 F\n']
unparsed: ['2016-10-31 15:21:55 Acurite 986 sensor 0x85ed - 1R: 16.7 C 62
F\n']
out: ['2016-10-31 15:22:28 Acurite 986 sensor 0x2c87 - 2F: 16.7 C 62 F\n']
unparsed: ['2016-10-31 15:22:28 Acurite 986 sensor 0x2c87 - 2F: 16.7 C 62
F\n']
out: ['2016-10-31 15:23:54 Acurite 986 sensor 0x85ed - 1R: 16.7 C 62 F\n']
unparsed: ['2016-10-31 15:23:54 Acurite 986 sensor 0x85ed - 1R: 16.7 C 62
F\n']
out: ['2016-10-31 15:24:29 Acurite 986 sensor 0x2c87 - 2F: 16.7 C 62 F\n']
unparsed: ['2016-10-31 15:24:29 Acurite 986 sensor 0x2c87 - 2F: 16.7 C 62
F\n']
Andy
--
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.