Hi everybody,
i want to add a new sensor to my weewx with the sdr driver.
I am using the sdr driver successfully on two locations with oregon 
scientific sensors, but this new sensor is driving me nuts. 

the rtl_433 can decode the sensor properly:

root@debian3040:/var/lib/weewx# rtl_433 -M utc -F json
rtl_433 version 22.11 (2022-11-19) inputs file rtl_tcp RTL-SDR SoapySDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 191 out of 223 device decoding protocols [ 1-4 8 11-12 15-17 
19-23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 
130-149 151-161 163-168 170-175 177-197 199 201-215 217-223 ]
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
baseband_demod_FM: low pass filter for 250000 Hz at cutoff 25000 Hz, 40.0 us
{"time" : "2025-08-06 08:08:59", "model" : "Oregon-BHTR968", "id" : 150, 
"channel" : 0, "battery_ok" : 1, "temperature_C" : 2.900, "humidity" : 33, 
"pressure_hPa" : 994.000}
{"time" : "2025-08-06 08:08:59", "model" : "Oregon-BHTR968", "id" : 150, 
"channel" : 0, "battery_ok" : 1, "temperature_C" : 2.900, "humidity" : 33, 
"pressure_hPa" : 994.000}
{"time" : "2025-08-06 08:09:07", "model" : "Oregon-THGR968", "id" : 5, 
"channel" : 1, "battery_ok" : 1, "temperature_C" : 18.300, "humidity" : 67}
{"time" : "2025-08-06 08:09:07", "model" : "Oregon-THGR968", "id" : 5, 
"channel" : 1, "battery_ok" : 1, "temperature_C" : 18.300, "humidity" : 67}
{"time" : "2025-08-06 08:09:09", "model" : "Prologue-TH", "subtype" : 5, 
"id" : 171, "channel" : 3, "battery_ok" : 1, "temperature_C" : 21.500, 
"humidity" : 60, "button" : 0}
{"time" : "2025-08-06 08:09:27", "model" : "Oregon-BHTR968", "id" : 166, 
"channel" : 0, "battery_ok" : 1, "temperature_C" : 21.700, "humidity" : 55, 
"pressure_hPa" : 998.000}
{"time" : "2025-08-06 08:09:28", "model" : "Oregon-BHTR968", "id" : 166, 
"channel" : 0, "battery_ok" : 1, "temperature_C" : 21.700, "humidity" : 55, 
"pressure_hPa" : 998.000}
{"time" : "2025-08-06 08:09:28", "model" : "Oregon-RGR968", "id" : 185, 
"channel" : 0, "battery_ok" : 1, "rain_rate_mm_h" : 0.000, "rain_mm" : 
0.000}
{"time" : "2025-08-06 08:09:29", "model" : "Oregon-RGR968", "id" : 185, 
"channel" : 0, "battery_ok" : 1, "rain_rate_mm_h" : 0.000, "rain_mm" : 
0.000}
^CSignal caught, exiting!
Reattached kernel driver
root@debian3040:/var/lib/weewx#

depending on the line 
{"time" : "2025-08-06 08:09:09", "model" : "Prologue-TH", "subtype" : 5, 
"id" : 171, "channel" : 3, "battery_ok" : 1, "temperature_C" : 21.500, 
"humidity" : 60, "button" : 0}

my sensor_map looks like this:

[SDR]
    # This section is for the software-defined radio driver.
    
    # The driver to use
    driver = user.sdr
    cmd = /usr/bin/rtl_433 -M utc -F json 
    ####cmd = /usr/bin/rtl_433 -R 12 -R 03 -M utc -F json
    path = /usr/bin
    [[sensor_map]]
    
        inTemp = temperature.3:171.PrologueTHPacket
        inHumidity = humidity.3:171.PrologueTHPacket
        inTempBatteryStatus = battery.3:171.PrologueTHPacket
outTemp = temperature.1:5.OSTHGR968Packet
        outHumidity = humidity.1:5.OSTHGR968Packet
        outTempBatteryStatus = battery.1:5.OSTHGR968Packet

The oregon sensor is parsed fine by weewx, but the new sensor isn't parsed 
at all:

root@debian3040:/var/www/html/weewx# systemctl status weewx
● weewx.service - WeeWX
     Loaded: loaded (/lib/systemd/system/weewx.service; enabled; preset: 
enabled)
     Active: active (running) since Wed 2025-08-06 11:22:32 CEST; 4min 0s 
ago
       Docs: https://weewx.com/docs
   Main PID: 6237 (python3)
      Tasks: 5 (limit: 2195)
     Memory: 43.9M
        CPU: 23.095s
     CGroup: /system.slice/weewx.service
             ├─6237 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
             └─6241 /usr/bin/rtl_433 -M utc -F json

Aug 06 11:25:44 debian3040 weewxd[6237]: DEBUG weewx.manager: Daily summary 
version is 4.0
Aug 06 11:25:46 debian3040 weewxd[6237]: INFO weewx.imagegenerator: 
Generated 60 images for report SeasonsReport in 2.66 seconds
Aug 06 11:25:46 debian3040 weewxd[6237]: INFO weewx.reportengine: Copied 5 
files to /var/www/html/weewx
Aug 06 11:25:46 debian3040 weewxd[6237]: DEBUG weewx.reportengine: Report 
'SmartphoneReport' not enabled. Skipping.
Aug 06 11:25:46 debian3040 weewxd[6237]: DEBUG weewx.reportengine: Report 
'MobileReport' not enabled. Skipping.
Aug 06 11:25:46 debian3040 weewxd[6237]: DEBUG weewx.reportengine: Report 
'StandardReport' not enabled. Skipping.
Aug 06 11:25:46 debian3040 weewxd[6237]: DEBUG weewx.reportengine: Report 
'FTP' not enabled. Skipping.
Aug 06 11:25:46 debian3040 weewxd[6237]: DEBUG weewx.reportengine: Report 
'RSYNC' not enabled. Skipping.
Aug 06 11:26:19 debian3040 weewxd[6237]: DEBUG user.sdr: packet={'outTemp': 
20.7, 'outHumidity': 54.0, 'outTempBatteryStatus': 0, 'dateTime': 
1754472372, 'usUnits': 16}
Aug 06 11:26:19 debian3040 weewxd[6237]: DEBUG user.sdr: ignoring duplicate 
packet {'outTemp': 20.7, 'outHumidity': 54.0, 'outTempBatteryStatus': 0, 
'dateTime': 1754472372, 'usUnits'>

What am i doing wrong in my sensor_map definition?

Best regards, Chris

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/9a047212-afde-4675-89db-909073502f3an%40googlegroups.com.

Reply via email to