Weewx is not finding data!

398 views
Skip to first unread message

Michael Jackson

unread,
May 24, 2021, 8:43:07 PM5/24/21
to weewx-user
I am having trouble getting weewx to do anything with the data from my SDR configured extension (sdr.py).  I have had this running before on my Raspberry PI 4B running Buster Raspbian OS but lost all my data through some errant behaviour of an attempted install of other software.

My weather station is a Digitech XC0434 Wireless, no USB or Ethernet but the sensors transmit on 917MHz.

I re-installed all pre-requisites and installed weewx via python3 ./setup.py build and sudo python3 ./setup.py install as per http://weewx.com/docs/setup.htm.  I installed rtl_433 and the weewx-sdr driver as per https://github.com/matthewwall/weewx-sdr.

Running the rtl_433 -f 917M -M utc -F json command reveals:

{"time" : "2021-05-24 22:52:14", "model" : "Bresser-6in1", "id" : 432013605, "channel" : 0, "battery_ok" : 1, "temperature_C" : 63.400, "humidity" : 89, "sensor_type" : 1, "wind_max_m_s" : 2.600, "wind_avg_m_s" : 2.600, "wind_dir_deg" : 112, "mic" : "CRC"}

running sudo PYTHONPATH=bin python bin/user/sdr.py --cmd="rtl_433 -f 917M -M utc -F json" shows:

out:[u'{"time" : "2021-05-24 22:53:26", "model" : "Bresser-6in1", "id" : 432013605, "channel" : 0, "battery_ok" : 1, "temperature_C" : 63.400, "humidity" : 89, "sensor_type" : 1, "wind_max_m_s" : 5.000, "wind_avg_m_s" : 4.600, "wind_dir_deg" : 112, "mic" : "CRC"}\n']
parsed: {'wind_dir.432013605.Bresser6in1Packet': 112.0, 'gust_speed.432013605.Bresser6in1Packet': 5.0, 'wind_speed.432013605.Bresser6in1Packet': 4.6, 'dateTime': 1621896806, 'temperature.432013605.Bresser6in1Packet': 63.4, 'humidity.432013605.Bresser6in1Packet': 89.0, 'usUnits': 17}

So thus far all seems well.

My sdr.py, syslog and weewx.conf are attached, I do (and have successfully) uploaded to WU and my MySQL database using this configuration before.

In summary running weewx either as a daeomon or via weewxd the result is always as per the syslog despite minor tweaks to the sdp.py for parsing issues or weewx.conf for config settings.

Any pointers to my error would be much appreciated.

weewx.conf
sdr.py
weewx_syslog.txt

Richard Horobin

unread,
Jun 7, 2021, 6:00:18 AM6/7/21
to weewx-user
I have a similar setup, done in May, and I have similar lack of data. It worked from Nov to April, but I wanted to change from a workstation-with-GUI to a Headless-Server, so I started again, and apparently messed it up. (I kept weewx.conf)

 RTl-433 works, generating sensible output like Matthew Wall described. SDR.py runs ok for a while but then it starts writing many lines like this, which I cannot understand. 
err:b’ ‘

Tomorrow I will check my “environment” as I might have put either RTl-433 or RTl-sdr or both directory in the wrong place. How would I know, as I didn’t see any specific instruction. And I don’t know where sdr.py came from, or where it should be. 
Message has been deleted

gjr80

unread,
Jun 7, 2021, 8:31:30 PM6/7/21
to weewx-user
The problem is your sensor map. The sensor map needs to map fields from the parsed output to WeeWX field names; your sensor map is mapping 'field' names from the raw rtf_433 to WeeWX field names. The parsed output (and field names) is shown in the line beginning 'parsed:' in your post, you would also see them in the log if you set log_unmapped_sensors = True under [SDR] in weewx.conf. Try something like (untested):

    [[sensor_map]]
        windGust = gust_speed.*.Bresser-6in1Packet
        windSpeed = wind_speed.*.Bresser-6in1Packet
        windDir = wind_dir.*.Bresser-6in1Packet
        outHumidity = humidity.*.Bresser-6in1Packet
        outTemp = temperature.*.Bresser-6in1Packet
    
Gary
On Tuesday, 25 May 2021 at 10:43:07 UTC+10 mdeja...@gmail.com wrote:

gjr80

unread,
Jun 7, 2021, 8:34:58 PM6/7/21
to weewx-user
Impossible to say without seeing the log, there are many reasons why an SDR driven system gives no data. I suggest you edit weewx.conf, set debug = 1, save weewx.conf and restart WeeWX. Let WeeWX run for a couple of archive intervals and take a log extract showing the full WeeWX startup through until the end of the two archive intervals. Post the log extract here.

Gary
Reply all
Reply to author
Forward
0 new messages