Closed uvedhe closed 3 years ago
Hi,
I have copied your question to the weewx-rtldavis topic in the weewx-development forum. See: https://groups.google.com/forum/#!topic/weewx-development/jhGleLxu-p0%5B201-225%5D
Your will find my answer there.
Luc
uvedhe,
I've experienced this bug this morning and I've checked the code of rtldavis.py. You simply have missed your customizations in your command line when testing the driver.
rtldavis.py : There's a 10s timeout in get Queue() (for stderr). 485 line = self.stderr_queue.get(True, 10).decode('utf-8')
If the rtldavis binary GO program does not recognises any ISS, it will wait for 17 seconds and at line 1337, get_stderr times out after 10s, and lines is "null" -> list index out of range
It works when rtldavis is running well, with your custom parameters, for ex for me :
root@nulinux:/usr/share/weewx# sudo PYTHONPATH=. python user/rtldavis.py --cmd="/root/go/bin/rtldavis -tr=1 -tf="EU" -fc=4750"
I'm trying to read in wind data from my weather station into a Python script, to then be able to do some calculations with the data. I discovered WeeWX and thought this was the way to go. Now I've been trying to get the RTL Davis driver to work. I'm using an RTL-SDR v3 dongle on OS X 10.13. I can successfully run
$GOPATH/bin/rtldavis
which returns various entries, like these:Now I was hoping to actually get some data out, so I thought I needed to install the rtldavis driver. Install all went successfully, but when I run
PYTHONPATH=bin python bin/user/rtldavis.py --cmd="/Users/user/go/bin/rtldavis"
I get the errorIndexError: list index out of range
.Not sure where it's going wrong?
Here's the full output: