Hi Arlen, Running weewx directly seems to be broken. I have to look at that. Please set debug=1 in weewx.conf and run weewx as a daemon. Then send the log file from start till the first error.
Op vrijdag 9 april 2021 om 03:53:36 UTC-3 schreef [email protected]: > Hi Luc, > > Sorry for the thread necromancy but I'm not really sure what the norms are > around starting new threads or opening github issues. I'm having the same > issue as uvedhe, but I believe that I am getting data, it just takes a > while. > > For example, here's what happens when I run rtldavis directly > > pi@wxpi:/ $ $GOPATH/bin/rtldavis -tf US > 23:31:41.484368 rtldavis.go VERSION=0.15 > 23:31:41.485107 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 > actChan=[0] maxChan=1 > 23:31:41.485224 undefined=false verbose=false disableAfc=false > deviceString=0 > 23:31:41.486233 BitRate: 19200 > 23:31:41.486286 SymbolLength: 14 > 23:31:41.486329 SampleRate: 268800 > 23:31:41.486366 Preamble: 1100101110001001 > 23:31:41.486403 PreambleSymbols: 16 > 23:31:41.486439 PreambleLength: 224 > 23:31:41.486479 PacketSymbols: 80 > 23:31:41.486517 PacketLength: 1120 > 23:31:41.486553 BlockSize: 512 > 23:31:41.486589 BufferLength: 2048 > Found Rafael Micro R820T tuner > 23:31:41.926203 Hop: {ChannelIdx:0 ChannelFreq:902419338 FreqError:0 > Transmitter:0} > Exact sample rate is: 268800.001367 Hz > 23:31:42.103009 GetTunerGain: 0 Db > 23:31:42.103037 SetFreqCorrection 0 ppm Successful > Allocating 1 zero-copy buffers > 23:31:42.106932 Init channels: wait max 135 seconds for a message of each > transmitter > 23:32:52.437316 TRANSMITTER 0 SEEN > 23:32:52.437491 Hop: {ChannelIdx:19 ChannelFreq:911952597 FreqError:0 > Transmitter:0} > 23:32:54.999338 600557FFC100B25F 2 0 0 0 0 msg.ID=0 > 23:32:54.999764 Hop: {ChannelIdx:41 ChannelFreq:922991108 FreqError:0 > Transmitter:0} > 23:32:57.561300 80055C206900FA0A 3 0 0 0 0 msg.ID=0 > 23:32:57.561605 Hop: {ChannelIdx:25 ChannelFreq:914963100 FreqError:0 > Transmitter:0} > 23:33:00.124869 E0045C800300563E 4 0 0 0 0 msg.ID=0 > 23:33:00.125445 Hop: {ChannelIdx:8 ChannelFreq:906433342 FreqError:0 > Transmitter:0} > 23:33:02.686749 500359FF73008A63 5 0 0 0 0 msg.ID=0 > 23:33:02.686858 Hop: {ChannelIdx:47 ChannelFreq:926001611 FreqError:0 > Transmitter:0} > 23:33:05.248703 400358FD0100E608 6 0 0 0 0 msg.ID=0 > 23:33:05.248811 Hop: {ChannelIdx:32 ChannelFreq:918475353 FreqError:0 > Transmitter:0} > 23:33:07.812769 800456205B005B07 7 0 0 0 0 msg.ID=0 > 23:33:07.812888 Hop: {ChannelIdx:13 ChannelFreq:908942094 FreqError:0 > Transmitter:0} > 23:33:10.374274 E00362800300BF59 8 0 0 0 0 msg.ID=0 > 23:33:10.374381 Hop: {ChannelIdx:36 ChannelFreq:920482355 FreqError:0 > Transmitter:0} > 23:33:12.936296 500458FF7100FD61 9 0 0 0 0 msg.ID=0 > > As you can see, it takes >60s to start parsing data. When I try to run the > weewx driver, it crashes after ~10s > > 23:19:53.355369 Init channels: wait max 135 seconds for a message of each > transmitter > Traceback (most recent call last): > File "/usr/share/weewx/user/rtldavis.py", line 1407, in <module> > payload = lines[0].strip() > IndexError: list index out of range > > Sometimes rtldavis is faster or slower, but rarely does it start in <10s. > From reading other comments, it sounds like the driver times out after 10s > of no data here. > > Any ideas what might be happening here? The antenna that I have on there > is a cheap set of rabbit ears (dipole), could certainly get a better one, > the station is about 80ft (25m) away on the roof of the next building over. > Hardware is a raspberry pi and and an RTL-SDR blog brand R820T2 RTL2832U > SDR. Pi is running latest raspbian. > > Thank you for all your hard work, I am so close! > On Wednesday, May 8, 2019 at 1:37:45 AM UTC-7 [email protected] wrote: > >> uvedhe wrote on github : >>> >> I will answer this in the weewx-rtldavis topic in the weewx-development >>> forum. >>> Luc >>> >> uvedhe <https://github.com/uvedhe> commented 14 hours ago >>> <https://github.com/lheijst/weewx-rtldavis/issues/1#issue-441358316> >>> >> I can successfully run $GOPATH/bin/rtldavis which returns various >>> entries, like these: >>> >>> 19:10:43.856163 Init channels: wait max 17 seconds for a message of each >>> transmitter >>> 19:11:01.793521 Init channels: wait max 17 seconds for a message of each >>> transmitter >>> 19:11:01.794049 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0} >>> 19:11:19.732536 Init channels: wait max 17 seconds for a message of each >>> transmitter >>> 19:11:19.732580 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0} >>> >>> Hi uvedhe, >> >> The rtldavis log show you didn't receive any data. >> >> The rtldavis program use default the EU-frequencies. You use the EU >> version of the Davis Vantage, right? >> The program runs succesfully on a Raspberry PI, Not sure if it will run >> on OS X 10 too. >> >> You could try to run the rtldavis program with several other ppm settings >> to check if any data will b read like: >> $GOPATH/bin/rtldavis -ppm 3 >> or >> $GOPATH/bin/rtldavis -ppm -3 >> >> Luc >> > -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/93e51a21-294a-4736-982a-83efabc4e03dn%40googlegroups.com.
