I found these lines from the sdr rpi recipe
<https://github.com/weewx/weewx/wiki/sdr-rpi-recipe> really helpful:
# see how the sensor data from rtl_433 are mapped to fully-qualified namessudo
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
On Monday, September 30, 2019 at 6:38:32 AM UTC-7, Andrea Cecilia wrote:
>
> 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
>
--
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/20f1e537-730e-4c76-b02c-ad7674b5e7ac%40googlegroups.com.