I'm running version 0.7 of the SDR driver with an Acurite 2032c outdoor 
sensor. When I run the driver stand-alone, I see the rainfall amount, 
although it is not being parsed. Here is the output of the driver running 
directly:

out: ['wind speed: 1 kph, wind direction: 135.0\xc2\xb0, rain gauge: 0.00 
in.\n']
unparsed: ['wind speed: 1 kph, wind direction: 135.0\xc2\xb0, rain gauge: 
0.00 in.\n']
out: ['2016-09-26 14:47:54 Acurite 5n1 sensor 0x062C Ch A, Msg 31, Wind 1 
kmph / 0.6 mph 135.0\xc2\xb0 SE (9), rain gauge 0.00 in.\n']
parsed: {'wind_speed.062C.Acurite5n1Packet': 1.0, 
'wind_speed_mph.062C.Acurite5n1Packet': 0.6, 
'wind_dir.062C.Acurite5n1Packet': 135.0, 'usUnits': 16, 'dateTime': 
1474901274}
out: ['2016-09-26 14:47:54 Acurite 5n1 sensor 0x062C Ch A, Msg 31, Wind 1 
kmph / 0.6 mph 135.0\xc2\xb0 SE (9), rain gauge 0.00 in.\n']
parsed: {'wind_speed.062C.Acurite5n1Packet': 1.0, 
'wind_speed_mph.062C.Acurite5n1Packet': 0.6, 
'wind_dir.062C.Acurite5n1Packet': 135.0, 'usUnits': 16, 'dateTime': 
1474901274}
out: ['2016-09-26 14:47:54 Acurite 5n1 sensor 0x062C Ch A, Msg 31, Wind 1 
kmph / 0.6 mph 135.0\xc2\xb0 SE (9), rain gauge 0.00 in.\n']
parsed: {'wind_speed.062C.Acurite5n1Packet': 1.0, 
'wind_speed_mph.062C.Acurite5n1Packet': 0.6, 
'wind_dir.062C.Acurite5n1Packet': 135.0, 'usUnits': 16, 'dateTime': 
1474901274}
out: []
unparsed: []
out: []
unparsed: []
out: []
unparsed: []
out: []
unparsed: []
out: []
unparsed: []
out: ['wind speed: 2 kph, temp: 64.6\xc2\xb0 F, humidity: 81% RH\n']
unparsed: ['wind speed: 2 kph, temp: 64.6\xc2\xb0 F, humidity: 81% RH\n']
out: ['2016-09-26 14:48:12 Acurite 5n1 sensor 0x062C Ch A, Msg 38, Wind 2 
kmph / 1.2 mph, 18.1 C 64.6 F 81 % RH\n']
parsed: {'wind_speed_mph.062C.Acurite5n1Packet': 1.2, 
'wind_speed.062C.Acurite5n1Packet': 2.0, 'dateTime': 1474901292, 
'temperature_F.062C.Acurite5n1Packet': 64.6, 
'humidity.062C.Acurite5n1Packet': 81.0, 
'temperature.062C.Acurite5n1Packet': 18.1, 'usUnits': 16}
out: ['2016-09-26 14:48:12 Acurite 5n1 sensor 0x062C Ch A, Msg 38, Wind 2 
kmph / 1.2 mph, 18.1 C 64.6 F 81 % RH\n']
parsed: {'wind_speed_mph.062C.Acurite5n1Packet': 1.2, 
'wind_speed.062C.Acurite5n1Packet': 2.0, 'dateTime': 1474901292, 
'temperature_F.062C.Acurite5n1Packet': 64.6, 
'humidity.062C.Acurite5n1Packet': 81.0, 
'temperature.062C.Acurite5n1Packet': 18.1, 'usUnits': 16}
out: ['2016-09-26 14:48:12 Acurite 5n1 sensor 0x062C Ch A, Msg 38, Wind 2 
kmph / 1.2 mph, 18.1 C 64.6 F 81 % RH\n']
parsed: {'wind_speed_mph.062C.Acurite5n1Packet': 1.2, 
'wind_speed.062C.Acurite5n1Packet': 2.0, 'dateTime': 1474901292, 
'temperature_F.062C.Acurite5n1Packet': 64.6, 
'humidity.062C.Acurite5n1Packet': 81.0, 
'temperature.062C.Acurite5n1Packet': 18.1, 'usUnits': 16}
^CTraceback (most recent call last):
  File "/home/weewx/bin/user/sdr.py", line 665, in <module>
    for lines in mgr.get_stdout():
  File "/home/weewx/bin/user/sdr.py", line 174, in get_stdout
    line = self.stdout_queue.get(True, 3)
  File "/usr/lib/python2.7/Queue.py", line 177, in get
    self.not_empty.wait(remaining)
  File "/usr/lib/python2.7/threading.py", line 359, in wait
    _sleep(delay)
KeyboardInterrupt

One thing to note is that is has not rained since I changed the batteries 
in my outdoor unit, so the rain total being reported is 0.0. It is supposed 
to rain tonight and I'd like to capture that rainfall. Is the fact that it 
is 0 relevant, and it will start working once there is some rain, or is 
there another issue?

I feel like it might be another issue, and maybe it's the output of my 
version of RTL_433.

The code in line 321 of the SDR driver is:  

else: 
m = Acurite5n1Packet.RAIN.search(payload) 
if m: 
pkt['rain_total'] = float(m.group(1)) 
pkt = Packet.add_identifiers( 
pkt, sensor_id, Acurite5n1Packet.__name__) 
else:

And RAIN is defined in line 280 as:

RAIN = re.compile('Total rain fall since last reset: ([\d.]+)')

Should the string in RAIN be appearing in the RTL_433 output? The output 
from mine is:

Tuned to 433920000 Hz.
wind speed: 4 kph, wind direction: 225.0°, rain gauge: 0.00 in.
2016-09-26 11:05:47 Acurite 5n1 sensor 0x062C Ch A, Msg 31, Wind 4 kmph / 
2.5 mph 225.0° SW (5), rain gauge 0.00 in.
2016-09-26 11:05:47 Acurite 5n1 sensor 0x062C Ch A, Msg 31, Wind 4 kmph / 
2.5 mph 225.0° SW (5), rain gauge 0.00 in.
2016-09-26 11:05:47 Acurite 5n1 sensor 0x062C Ch A, Msg 31, Wind 4 kmph / 
2.5 mph 225.0° SW (5), rain gauge 0.00 in.
wind speed: 2 kph, temp: 64.8° F, humidity: 80% RH
2016-09-26 11:06:05 Acurite 5n1 sensor 0x062C Ch A, Msg 38, Wind 2 kmph / 
1.2 mph, 18.2 C 64.8 F 80 % RH
2016-09-26 11:06:05 Acurite 5n1 sensor 0x062C Ch A, Msg 38, Wind 2 kmph / 
1.2 mph, 18.2 C 64.8 F 80 % RH
2016-09-26 11:06:05 Acurite 5n1 sensor 0x062C Ch A, Msg 38, Wind 2 kmph / 
1.2 mph, 18.2 C 64.8 F 80 % RH
^CSignal caught, exiting!


Any insight would be appreciated.

Thanks,

Dan

-- 
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.

Reply via email to