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