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 [email protected] wrote:
> 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.
>
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/7ff9d940-08c1-4960-b768-a61ad236e0dcn%40googlegroups.com.