lheijst / weewx-rtldavis

weewx driver that captures data from software-defined radio using the rtldavis software.
GNU General Public License v3.0
14 stars 5 forks source link

startup process '/home/pi/work/bin/rtldavis [options] -tf US -tr 1 #10

Closed LloydR closed 3 years ago

LloydR commented 3 years ago

INFO user.rtldavis: startup process '/home/pi/work/bin/rtldavis [options] -tf US -tr 1 The [options] in the command above seems to revert the rtldavis usb receiver to a different frequency than the US Davis frequencies - don't understand why the start command is putting [options] in the string "{ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}" Therefore weeWX always comes up with a "stalled" driver after 150 seconds or there abouts. Waits 60 seconds, restarts and same thing. INFO weewx.engine: Main loop exiting. Shutting engine down. INFO user.rtldavis: shutdown process /home/pi/work/bin/rtldavis [options] -tf US -tr 1 CRITICAL main: Caught WeeWxIOError: rtldavis process stalled

weewx.conf is - only change I made was transceiver_frequency = US rain_bucket_type = 0 debug_rtld = 3 # rtldavis logging: 1=inf; 2=(1)+data+chan; 3=(2)+pkt

##############################################################################

[Rtldavis]

This section is for the rtldavis sdr-rtl USB receiver.

cmd = /home/pi/work/bin/rtldavis [options]
# Options:
# -ppm = frequency correction of rtl dongle in ppm; default = 0
# -gain = tuner gain in tenths of Db; default = 0 means "auto gain"
# -ex = extra loopTime in ms; default = 0
# -fc = frequency correction for all channels; default = 0
# -u  = log undefined signals
#
# The options below will autoamically be set
# -tf = transmitter frequencies, US, NZ or EU
# -tr = transmitters: tr1=1,  tr2=2,  tr3=4,  tr4=8, 
#                     tr5=16, tr6=32, tr7=64, tr8=128

# Radio frequency to use between USB transceiver and console: US, NZ or EU
# US uses 915 MHz, NZ uses 921 MHz and EU uses 868.3 MHz.  Default is EU.
transceiver_frequency = US

# Used channels: 0=not present, 1-8)
# The channel of the Vantage Vue ISS or Vantage Pro or Pro2 ISS
iss_channel = 1
# The values below only apply for Vantage Pro or Pro2
anemometer_channel = 0
leaf_soil_channel = 0
temp_hum_1_channel = 0
temp_hum_2_channel = 0
# rain bucket type (0: 0.01 inch, 1: 0.2 mm)
rain_bucket_type = 0

# Print debug messages
# 0=no logging; 1=minimum logging; 2=normal logging; 3=detailed logging
debug_parse = 0
debug_rain = 0
debug_rtld = 3    # rtldavis logging: 1=inf; 2=(1)+data+chan; 3=(2)+pkt

# The pct_good per transmitter can be saved to the database
# This has only effect with 2 transmitters or more
save_pct_good_per_transmitter = False

# The driver to use:
driver = user.rtldavis

##############################################################################

:

LloydR commented 3 years ago

Removed [options] in weewx.conf and it started working. so have in weewx.conf instead of cmd = /home/pi/work/bin/rtldavis [options] cmd = /home/pi/work/bin/rtldavis And now I am getting data.

LloydR commented 3 years ago

Well it looks like removing the [options] in weew3x.conf fixes my problem