weewx-sdr not storing data packets of WH1080

143 views
Skip to first unread message

Andrea Cecilia

unread,
Sep 30, 2019, 9:38:32 AM9/30/19
to weewx-user
Hi there,
I'm having troubles with weewx-sdr and Fine Offset WH1080. The problem is very simple: It finds the packets coming from the sensors, but weewx is not creating data packets to store in its database. Here is what I see:

Sep 30 15:27:56 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:27:59 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:02 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:05 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:08 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:11 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:14 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:17 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:22 provaSDR weewx[4964]: sdr: MainThread: lines=['{"time" : "2019-09-30 13:28:19", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 243, "battery" : "OK", "temperature_C" : 20.700, "humidity" : 69, "direction_deg" : 248, "speed" : 7.344, "gust" : 11.016, "rain" : 60.900, "mic" : "CRC"}\n']
Sep 30 15:28:25 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:28 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:31 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:34 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:37 provaSDR weewx[4964]: sdr: MainThread: lines=[]
Sep 30 15:28:40 provaSDR weewx[4964]: sdr: MainThread: lines=[]

as you can see, after finding the data packet, it does not create a packet to be stored. What I'm expecting is a string like

packet={'outHumidity': 69.0, 'outTemp': 20.7, ...}

which is not coming out.

my [SDR] section is:

[SDR]

#   This section is for the software-defined radio driver.
   
# The driver to use  
        driver
= user.sdr
        cmd
= rtl_433 -F json -f 868.25M -M utc -G -s 1024k
        path
= /usr/local/bin/
        ld_library_ path
= /usr/local/lib
       
[[sensor_map]]
        windGust
= wind_gust.243.FOWH1080Packet
        outBatteryStatus
= battery.243.FOWH1080Packet
        rain_total
= rain_total.243.FOWH1080Packet
        windSpeed
= wind_speed.243.FOWH1080Packet
        windDir
= wind_dir.243.FOWH1080Packet
        outHumidity
= humidity.243.FOWH1080Packet
        outTemp
= temperature.243.FOWH1080Packet

I think there is something wrong in the sensor map, but I can't find what is.

Can you help me?
Thank you

Andy

unread,
Oct 1, 2019, 10:40:57 AM10/1/19
to weewx-user


[SDR]
    # This section is for the software-defined radio driver.

    driver = user.sdr

    log_unknown_sensors = True
    log_unmapped_sensors = True

    #cmd = rtl_433 -F json -U -q -R 39 -R 40 -R 41
    #DEFAULT_CMD = 'rtl_433 -q -U -F json -G'
    #cmd = rtl_433 -q -U -G
    [[sensor_map]]
        windDir = wind_dir.0A66.Acurite5n1Packet 
        windSpeed = wind_speed.0A66.Acurite5n1Packet 
        #outTemp = temperature.0A66.Acurite5n1Packet 
        #outHumidity = humidity.0A66.Acurite5n1Packet 
        rain_total = rain_total.0A66.Acurite5n1Packet
        windBatteryStatus = battery.0A66.Acurite5n1Packet

        outTemp = temperature.3C47.AcuriteLightningPacket
        outHumidity = humidity.3C47.AcuriteLightningPacket
        outTempBatteryStatus = battery.3C47.AcuriteLightningPacket



The indentation looks off.

Andy  

Rogene T.

unread,
Nov 5, 2019, 7:01:20 PM11/5/19
to weewx-user
I found these lines from the sdr rpi recipe really helpful:

# see how the sensor data from rtl_433 are mapped to fully-qualified names
sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json -G"

# in particular, look at the 'out' and 'parsed' lines like this:
out: ['{"time" : "2019-01-16 11:45:33", "model" : "Acurite tower sensor", "id" : 2453, "sensor_id" : 2453, "channel" : "A", "temperature_C" : 16.700, "humidity" : 31, "battery_low" : 0}\n']
parsed: {'temperature.0995.AcuriteTowerPacket': 16.7, 'dateTime': 1547639133, 'humidity.0995.AcuriteTowerPacket': 31.0, 'status.0995.AcuriteTowerPacket': None, 'battery.0995.AcuriteTowerPacket': 0, 'channel.0995.AcuriteTowerPacket': u'A', 'usUnits': 16}

Can you run the first highlighted command (with the rtl_433 portion reflecting your setup) and see if you get the out: and parsed: lines for the WH1080 device?

-R

mwall

unread,
Dec 2, 2019, 8:48:01 AM12/2/19
to weewx-user
On Monday, September 30, 2019 at 9:38:32 AM UTC-4, Andrea Cecilia wrote:
Can you help me?

your rtl_433 is emitting the format for FOWHx080Packet, not FOWH1080Packet

in your sensor map, change FOWH1080Packet to FOWHx080Packet 

sorry for the confusion - since rtl_433 begain, there have been at least 4 or 5 different formats for the fine offset 1080/2080/3080 data

at some point we should remove the old ones from weewx-sdr, or consolidate them so that they automatically detect the variations

m
Reply all
Reply to author
Forward
0 new messages