I have been playing with displaying realtime data, using the hardware
mentioned in the subject line. That's the CRT service, Interceptor driver,
and an AcuRite multisensor and bridge. Running weewx 3.8.0 on Debian Jessie
32-bit on a netbook.
Everything works, except rain. Other data displays in near-realtime, but
the daily rainfall only updates after weewx recalculates it in each archive
cycle. The sensor map assigns the rain field to the sensor output
rainfall.00002774.* .
I see that the sensor output includes data with the
label rain_total.00002774.* which reports the daily rainfall in real time.
Is there any way to make that data available to the crt service?
>From the syslog, here's a sequence of interceptor data during a recent rain:
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: ServerThread: GET:
dateutc=now&action=updateraw&realtime=1&id=24C86E0AF209&mt=5N1x31&sensor=00002774&windspeedmph=2&winddir=113&rainin=0.03&dailyrainin=0.03&baromin=29.11&battery=normal&rssi=3
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: raw data:
dateutc=now&action=updateraw&realtime=1&id=24C86E0AF209&mt=5N1x31&sensor=00002774&windspeedmph=2&winddir=113&rainin=0.03&dailyrainin=0.03&baromin=29.11&battery=normal&rssi=3
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: ignored
parameter realtime=1
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: ignored
parameter rainin=0.03
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: ignored
parameter action=updateraw
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: raw
packet: {'battery.00002774.24C86E0AF209': 0,
'usUnits.00002774.24C86E0AF209': 1, 'bridge_id.00002774.24C86E0AF209':
'24C86E0AF209', 'dateTime.00002774.24C86E0AF209': 1522375088,
'rain_total.00002774.24C86E0AF209': 0.03, 'dateTime': 1522375088,
'sensor_type.00002774.24C86E0AF209': '5N1x31',
'rssi.00002774.24C86E0AF209': 75.0, 'winddir.00002774.24C86E0AF209': 113.0,
'pressure.00002774.24C86E0AF209': 29.11, 'windspeed.00002774.24C86E0AF209':
2.0, 'sensor_id.00002774.24C86E0AF209': '00002774', 'usUnits': 1,
'rainfall.00002774.24C86E0AF209': 0.009999999999999998}
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: mapped
packet: {'windBatteryStatus': 0, 'rain': 0.009999999999999998, 'dateTime':
1522375088, 'windDir': 113.0, 'pressure': 29.11, 'windSpeed': 2.0,
'usUnits': 1}
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: ServerThread: GET:
dateutc=now&action=updateraw&realtime=1&id=24C86E0AF209&mt=5N1x31&sensor=00002774&windspeedmph=2&winddir=113&rainin=0.03&dailyrainin=0.03&baromin=29.11&battery=normal&rssi=3
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: raw data:
dateutc=now&action=updateraw&realtime=1&id=24C86E0AF209&mt=5N1x31&sensor=00002774&windspeedmph=2&winddir=113&rainin=0.03&dailyrainin=0.03&baromin=29.11&battery=normal&rssi=3
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: ignored
parameter realtime=1
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: ignored
parameter rainin=0.03
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: ignored
parameter action=updateraw
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: raw
packet: {'battery.00002774.24C86E0AF209': 0,
'usUnits.00002774.24C86E0AF209': 1, 'bridge_id.00002774.24C86E0AF209':
'24C86E0AF209', 'dateTime.00002774.24C86E0AF209': 1522375088,
'rain_total.00002774.24C86E0AF209': 0.03, 'dateTime': 1522375088,
'sensor_type.00002774.24C86E0AF209': '5N1x31',
'rssi.00002774.24C86E0AF209': 75.0, 'winddir.00002774.24C86E0AF209': 113.0,
'pressure.00002774.24C86E0AF209': 29.11, 'windspeed.00002774.24C86E0AF209':
2.0, 'sensor_id.00002774.24C86E0AF209': '00002774', 'usUnits': 1,
'rainfall.00002774.24C86E0AF209': 0.0}
Mar 29 21:58:08 Greenwich weewx[14308]: interceptor: MainThread: mapped
packet: {'windBatteryStatus': 0, 'rain': 0.0, 'dateTime': 1522375088,
'windDir': 113.0, 'pressure': 29.11, 'windSpeed': 2.0, 'usUnits': 1}
We can see the values of rainfall, and rain_total, indicating that rain was
falling currently, with a total so far of 0.03 inch.
And here is a sequence of realtime.txt files from about one minute later:
29/03/18 21:59:05 NULL NULL NULL 5.6 NULL NULL 0.12 0.00 NULL --- NULL mph
F in in 45.0 NULL 1.24 9.71 0.00 72.3 54 NULL NULL 77.2 16:05 52.5 07:55
7.8 14:15 14.0 16:10 30.13 09:45 29.92 20:30 3.8.0 0 10.0 NULL NULL NULL
NULL NULL 317 0.00 0 0 0 NW NULL ft NULL 12.5 0.0 0
29/03/18 21:59:20 67.6 68 56.7 5.6 NULL NULL 0.12 0.00 29.99 --- NULL mph F
in in 45.0 0.04 1.24 9.71 0.00 NULL NULL NULL -5.2 77.2 16:05 52.5 07:55
7.8 14:15 14.0 16:10 30.13 09:45 29.92 20:30 3.8.0 0 10.0 67.6 73.3 NULL
NULL NULL 317 0.00 0 0 0 NW 3218 ft NULL 12.5 0.0 0
29/03/18 21:59:20 NULL NULL NULL 5.6 2.0 203 0.12 0.00 NULL SSW 1 mph F in
in 45.0 NULL 1.24 9.71 0.00 NULL NULL NULL NULL 77.2 16:05 52.5 07:55 7.8
14:15 14.0 16:10 30.13 09:45 29.92 20:30 3.8.0 0 10.0 NULL NULL NULL NULL
NULL 317 0.00 0 0 0 NW NULL ft NULL 12.5 0.0 0
29/03/18 21:59:21 NULL NULL NULL 5.6 NULL NULL 0.12 0.00 NULL --- NULL mph
F in in 45.0 NULL 1.24 9.71 0.00 72.3 54 NULL NULL 77.2 16:05 52.5 07:55
7.8 14:15 14.0 16:10 30.13 09:45 29.92 20:30 3.8.0 0 10.0 NULL NULL NULL
NULL NULL 317 0.00 0 0 0 NW NULL ft NULL 12.5 0.0 0
29/03/18 21:59:36 67.6 68 56.7 5.6 NULL NULL 0.12 0.00 29.99 --- NULL mph F
in in 45.0 0.04 1.24 9.71 0.00 NULL NULL NULL -5.2 77.2 16:05 52.5 07:55
7.8 14:15 14.0 16:10 30.13 09:45 29.92 20:30 3.8.0 0 10.0 67.6 73.3 NULL
NULL NULL 317 0.00 0 0 0 NW 3218 ft NULL 12.5 0.0 0
We can see that field 10 (rain today) and 48 (rainfall last hour) still
contain zero. They will be updated in another minute, at the end of the
archive period.
How might I get the current value of rain_total.00002774.* into the
realtime.txt file?
--
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.