SDR Driver

114 views
Skip to first unread message

Michael

unread,
Apr 6, 2020, 1:20:57 PM4/6/20
to weewx-user
Hello,


With the command  sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json" it do work, but when I start weex, then I have this fault. What I have forgot?

Thanks for the help.

Best regards Michael

Wes Witt

unread,
Apr 6, 2020, 2:11:46 PM4/6/20
to weewx-user
this looks cool, but i'm ignorant about using an SDR with a weather station. i'm curious about what exactly does this provide?  will if give audio recordings from weather broadcasts?

Michael

unread,
Apr 6, 2020, 3:04:56 PM4/6/20
to weewx-user
Hello Wes Witt,
The sdr is not used to receive radio or TV signals but the program is listening at the frequency 433 MHz. The outdoor sensors of the weather stations usually send on this. I would like to use it to read the rain gauge, wind sensor and outside temperature of my current weather station and use a bme 280 to record the inside temperature and humidity. It works with the rtl_433 program, but when I try to access the program with the driver and weewx and he can't find the program. but I don't know how to correct the mistake.

Best regards Michael

Wes Witt

unread,
Apr 6, 2020, 3:22:31 PM4/6/20
to weewx-user
thanks, makes sense now. i accomplish this with wifi. all my outdoor sensors are connected to a custom PCB that i designed which is in turn connected to an rpi via serial.  the rpi then posts sensor readings to a local mqtt server via wifi. it's extremely reliable and works very well. for my indoor sensors they are again a custom pcb with an esp8266 and a bme280 powered with a rechargable battery (which lasts 6 months).  the indoor sensor just posts to the same mqtt server.  for weewx i wrote a simple driver that reads from mqtt. 

rich T

unread,
Apr 6, 2020, 9:37:48 PM4/6/20
to weewx-user
Michael

In the SDR section of weewx.conf, make sure the path is set.

[SDR]
    # This section is for the software-defined radio driver.
    # The driver to use
    driver = user.sdr
    cmd = rtl_433 -M utc -R 40 -F json
    path = /usr/local/bin/



Michael

unread,
Apr 21, 2020, 3:57:06 AM4/21/20
to weewx-user
Hello, sorry for the late reply. Unfortunately, when I wanted to insert the USB stick for a backup, I shot the SD card.

What did I do wrong on the sensor map? Probably a little thing.

Thanks for your help.
Michael


[SDR]
    # This section is for the software-defined radio driver.
    
    # The driver to use
    driver = user.sdr
    cmd = rtl_433 -M utc -F json
    path=/usr/local/bin/
    log_unknown_sensors = True
    log_unmapped_senrors = True

    [[sensor_map]]
        rain_total = rain_mm.*.AlectoV1-Rain
        extraTemp1 = temperature_C.*.AlectoV1-Temperature
        extraHumid1 = humidity.*.AlectoV1-Temperature
        windSpeed = wind_avg_m_s.*.AlectoV1-Wind
        windDir = wind_dir_deg.*.AlectoV1-Wind
        windGust = wind_max_m_s.*.AlectoV1-Wind
2020-04-21 09_50_50-192.168.1.55 - Remotedesktopverbindung.png
Reply all
Reply to author
Forward
0 new messages