New install rtldavis & weewx 5

468 views
Skip to first unread message

Pierre Decamps

unread,
Apr 1, 2024, 12:36:00 PM4/1/24
to weewx...@googlegroups.com

Hi everybody,

 

I installed a Davis VP2 Pro Plus Wireless last week and made a fresh install of weewx and rtldavis plugin.

 

When I checked status of weewx, I see it :

 

Apr 01 18:21:31 weatherpi weewxd[2247]: INFO weewxd: Starting up weewx version 5.0.2

Apr 01 18:21:31 weatherpi weewxd[2247]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'

Apr 01 18:21:31 weatherpi weewxd[2247]: INFO weewx.manager: Starting backfill of daily summaries

Apr 01 18:21:32 weatherpi weewxd[2247]: INFO weewx.manager: Daily summaries up to date

Apr 01 18:21:32 weatherpi weewxd[2247]: INFO weewx.engine: Starting main packet loop.

Apr 01 18:21:32 weatherpi weewxd[2247]: ERROR user.rtldavis: err: <generator object ProcManager.get_stderr at 0x74618a38>

Apr 01 18:21:32 weatherpi weewxd[2247]: INFO weewx.engine: Main loop exiting. Shutting engine down.

Apr 01 18:21:33 weatherpi weewxd[2247]: INFO user.rtldavis: shutdown process /home/pi/work/bin/rtldavis -fc 50000 -ppm 1 -tf EU -tr 1

Apr 01 18:21:33 weatherpi weewxd[2247]: CRITICAL weewxd: Caught WeeWxIOError: rtldavis process is not running

Apr 01 18:21:33 weatherpi weewxd[2247]: CRITICAL weewxd:     ****  Waiting 60.0 seconds then retrying...

 

If I start /home/weewx/bin/user/rtldavis.py

 

18:25:42.266024 rtldavis.go VERSION=0.15

18:25:42.266426 tr=1 fc=50000 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 actChan=[0] maxChan=1

18:25:42.266448 undefined=false verbose=false disableAfc=false deviceString=0

18:25:42.266690 BitRate: 19200

18:25:42.266708 SymbolLength: 14

18:25:42.266718 SampleRate: 268800

18:25:42.266726 Preamble: 1100101110001001

18:25:42.266734 PreambleSymbols: 16

18:25:42.266742 PreambleLength: 224

18:25:42.266750 PacketSymbols: 80

18:25:42.266758 PacketLength: 1120

18:25:42.266766 BlockSize: 512

18:25:42.266774 BufferLength: 2048

Found Rafael Micro R820T tuner

18:25:42.681319 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}

Exact sample rate is: 268800.001367 Hz

18:25:42.854909 GetTunerGain: 0 Db

18:25:42.854949 SetFreqCorrection 0 ppm Successful

18:25:42.858456 Init channels: wait max 17 seconds for a message of each transmitter

Allocating 1 zero-copy buffers

Traceback (most recent call last):

  File "/etc/weewx/bin/user/./rtldavis.py", line 1366, in <module>

    payload = lines[0].strip()

IndexError: list index out of range

 

 

And if I start the /home/pi/work/bin/rtldavis :

 

Found Rafael Micro R820T tuner

18:28:13.224537 tr=0 ch=0 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]

18:28:13.224608 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}

Exact sample rate is: 268800.001367 Hz

18:28:13.397912 GetTunerGain: 0 Db

18:28:13.397946 SetFreqCorrection 0 ppm Successful

Allocating 1 zero-copy buffers

18:28:13.401414 Init channels: wait max 17 seconds for a message of each transmitter

18:28:16.590622 m1: -0.057257 l: 224 c: 16 x: [-0.11 0.30 -0.13 -0.08 0.29 -0.07 -0.18 -0.16 -0.14 -0.12 -0.09 -0.08 -0.08 -0.09 -0.08 -0.08]

18:28:16.590820 TRANSMITTER 0 SEEN

18:28:16.591143 tr=0 ch=2 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]

18:28:16.591507 Hop: {ChannelIdx:2 ChannelFreq:868317250 FreqError:0 Transmitter:0}

18:28:16.591582 applied freqCorrection=0

18:28:19.152466 m1: -0.053535 l: 224 c: 16 x: [0.23 -0.07 0.34 -0.16 -0.16 -0.04 0.27 -0.12 -0.20 -0.15 -0.10 -0.10 -0.13 -0.15 -0.14 -0.16]

18:28:19.152891 5001CBFF71008375 2 0 0 0 0 msg.ID=0

18:28:19.153198 tr=0 ch=4 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]

18:28:19.153409 Hop: {ChannelIdx:4 ChannelFreq:868557250 FreqError:0 Transmitter:0}

18:28:19.153443 applied freqCorrection=0

18:28:21.714449 m1: -0.033016 l: 224 c: 16 x: [-0.14 0.23 0.31 0.34 -0.19 -0.12 0.30 -0.18 -0.11 -0.16 -0.16 -0.10 -0.09 -0.14 -0.16 -0.15]

18:28:21.714587 9000CB0701591E62 3 0 0 0 0 msg.ID=0

18:28:21.714705 tr=0 ch=1 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]

18:28:21.714798 Hop: {ChannelIdx:1 ChannelFreq:868197250 FreqError:0 Transmitter:0}

18:28:21.714828 applied freqCorrection=0

18:28:24.276257 m1: 0.015400 l: 224 c: 16 x: [0.02 0.37 0.37 0.37 0.33 0.12 -0.19 -0.18 -0.16 -0.12 -0.10 -0.09 -0.09 -0.11 -0.14 -0.16]

18:28:24.276400 8001CB21D900CD83 4 0 0 0 0 msg.ID=0

18:28:24.276507 tr=0 ch=3 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]

18:28:24.276628 Hop: {ChannelIdx:3 ChannelFreq:868437250 FreqError:0 Transmitter:0}

18:28:24.276692 applied freqCorrection=0

18:28:26.840325 m1: -0.004463 l: 224 c: 16 x: [-0.04 0.34 -0.06 0.39 0.35 0.29 -0.20 -0.12 -0.17 -0.16 -0.16 -0.13 -0.11 -0.10 -0.08 -0.11]

18:28:26.840408 E000CB9001006D8B 5 0 0 0 0 msg.ID=0

18:28:26.840537 tr=0 ch=0 freqCorr=222 lastFreqError=2449, freqerrTrChList=[2449 0 0 0 0 0 0 0 0 0]

18:28:26.840618 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:222 Transmitter:0}

18:28:26.840648 applied freqCorrection=222

18:28:29.402215 m1: 0.025469 l: 224 c: 16 x: [0.36 -0.10 0.25 0.32 -0.14 0.33 0.34 -0.07 -0.21 -0.10 -0.09 -0.09 -0.08 -0.10 -0.11 -0.11]

18:28:29.402303 5000CBFF71002924 6 0 0 0 0 msg.ID=0

18:28:29.402372 tr=0 ch=2 freqCorr=208 lastFreqError=2290, freqerrTrChList=[2290 0 0 0 0 0 0 0 0 0]

18:28:29.402447 Hop: {ChannelIdx:2 ChannelFreq:868317250 FreqError:208 Transmitter:0}

18:28:29.402480 applied freqCorrection=208

 

 

What’s wrong ? Help will be appreciated 😊

 

Best regards,

 

Pierre

ON8GE

 

vince

unread,
Apr 1, 2024, 2:40:36 PM4/1/24
to weewx-user
Did you set the full path to the rtldavis binary in your weewx.conf file ?

Mine that worked here (US) is here (link) if you wanted to compare with yours

Pierre Decamps

unread,
Apr 1, 2024, 4:08:06 PM4/1/24
to weewx...@googlegroups.com

Yes complete path was full.

I tried adding sudo before the command in weewx.conf and it works !

 

Now I have two instances of rtldavis running, is it normal ?

 

pi@weatherpi:~/work/bin $ sudo systemctl status weewx

weewx.service - WeeWX

     Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor preset: enabled)

     Active: active (running) since Mon 2024-04-01 22:05:24 CEST; 2s ago

       Docs: https://weewx.com/docs

   Main PID: 7138 (weewxd)

      Tasks: 15 (limit: 1595)

        CPU: 1.130s

     CGroup: /system.slice/weewx.service

             ─7138 /usr/bin/python3 /usr/local/bin/weewxd /etc/weewx/weewx.conf

             ─7141 sudo /home/pi/work/bin/rtldavis -fc 50000 -ppm 1 -tf EU -tr 1

             └─7144 /home/pi/work/bin/rtldavis -fc 50000 -ppm 1 -tf EU -tr 1

 

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.restx: PWSweather: Posting not enabled.

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.restx: CWOP: Posting not enabled.

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.restx: WOW: Posting not enabled.

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.restx: AWEKAS: Posting not enabled.

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewxd: Starting up weewx version 5.0.2

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.manager: Starting backfill of daily summaries

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.manager: Daily summaries up to date

Apr 01 22:05:25 weatherpi weewxd[7138]: INFO weewx.engine: Starting main packet loop.

 

De : <weewx...@googlegroups.com> au nom de vince <vince...@gmail.com>
Répondre à : "weewx...@googlegroups.com" <weewx...@googlegroups.com>
Date : lundi 1 avril 2024 à 20:48
À : weewx-user <weewx...@googlegroups.com>
Objet : [weewx-user] Re: New install rtldavis & weewx 5

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/24146a8e-4472-4300-9d92-0bfccce05283n%40googlegroups.com.

vince

unread,
Apr 1, 2024, 4:56:39 PM4/1/24
to weewx-user
No - I don't think multiple rtldavis processes are normal.  Mine only shows one.

pi@pi5:~ $ sudo systemctl status weewx
● weewx.service - WeeWX weather system
     Loaded: loaded (/etc/systemd/system/weewx.service; enabled; preset: enabled)
     Active: active (running) since Mon 2024-04-01 13:47:45 PDT; 2min 17s ago
       Docs: https://weewx.com/docs
   Main PID: 871 (python3)
      Tasks: 14 (limit: 4388)
        CPU: 5.050s
     CGroup: /system.slice/weewx.service
             ├─871 /home/pi/weewx-venv/bin/python3 /home/pi/weewx-venv/lib/python3.11/site-packages/weewxd.py /home/pi/weewx-data/weewx.conf
             └─911 /home/pi/work/bin/rtldavis -tf US -tr 1

Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: 13:47:45.728787 BlockSize: 512
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: 13:47:45.728790 BufferLength: 2048
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: Detached kernel driver
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: Found Rafael Micro R820T tuner
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: Exact sample rate is: 268800.001367 Hz
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: 13:47:46.323864 GetTunerGain: 0 Db
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: 13:47:46.323879 SetFreqCorrection 0 ppm Successful
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: Allocating 1 zero-copy buffers
Apr 01 13:47:46 pi5 weewxd[871]: DEBUG user.rtldavis: info: 13:47:46.327138 Init channels: wait max 135 seconds for a message of each transmitter
Apr 01 13:49:45 pi5 weewxd[871]: DEBUG user.rtldavis: info: 13:49:45.776726 TRANSMITTER 0 SEEN


I would stop weewx and kill any rtldavis process(es) that still remain.  Sometimes they keep running unless you kill -9 them.

If you needed to use sudo manually then you probably need to add the weewx user to the correct groups to be able to attach to the rtlsdr dongle hardware. This might help if you wanted to give it a try.....

#------- add weewx to all the groups typical 'pi' is in
# which should permit binding to non-privileged ports and typical hardware
for g in adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi
do
  sudo usermod -aG $g weewx
done

Then 'sudo systemctl start weewx' and look at your logs for errors as always..
Reply all
Reply to author
Forward
0 new messages