Page 1 of 1

Loop error

Posted: Fri Dec 15, 2017 9:51 pm
by jay_hoehn
I have just set up my vantage pro2 to work with weewx when i first started weewx all the archive data downloaded as expected. but then loop errors. Here is what I see
Dec 15 14:38:24 Weather weewx[521]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead
Dec 15 14:38:29 Weather weewx[521]: vantage: LOOP try #2; error: Expected to read 99 chars; got 0 instead
Dec 15 14:38:53 Weather systemd[1]: Time has been changed
Dec 15 14:38:53 Weather systemd[540]: Time has been changed
Dec 15 14:38:53 Weather systemd-timesyncd[306]: Synchronized to time server 129.6.15.29:123 (2.debian.pool.ntp.org).
Dec 15 14:38:53 Weather systemd[1]: apt-daily-upgrade.timer: Adding 3min 22.994817s random time.
Dec 15 14:38:53 Weather systemd[1]: apt-daily.timer: Adding 1h 17min 5.833866s random time.
Dec 15 14:38:56 Weather weewx[521]: vantage: LOOP try #3; error: Expected to read 99 chars; got 1 instead
Dec 15 14:39:12 Weather weewx[521]: vantage: LOOP try #4; error: Expected to read 99 chars; got 0 instead
Dec 15 14:39:12 Weather weewx[521]: vantage: LOOP max tries (4) exceeded.
Dec 15 14:39:12 Weather weewx[521]: engine: Caught WeeWxIOError: Max tries exceeded while getting LOOP data.
Dec 15 14:39:12 Weather weewx[521]: **** Waiting 60 seconds then retrying..
Any help would be appreciated.

Jay

Re: Loop error

Posted: Fri Dec 15, 2017 10:05 pm
by wx_jon
There's obviously a communication error. Someone else could probably figure it out, but a few thoughts I have from things I've experienced before:
  • Is Weather Display still running on the same computer at the same time?
  • Is your VP2 console actively receiving packets (for a wireless model)? When the archive is read, it usually causes the console to lose connection to the wireless instruments, so it has to resume showing the flashing X in the bottom right of the screen before any more loop data is created.

Re: Loop error

Posted: Fri Dec 15, 2017 10:29 pm
by jay_hoehn
Thanks for the post, Jon. The computer is not the same. I am trying to switch to a Raspberry Pi. The X is still showing on the console. Perhaps someone else will have other ideas.
Jay

Re: Loop error

Posted: Fri Dec 15, 2017 11:01 pm
by wx_jon
You could try resetting the logger with

Code: Select all

wee_device /home/weewx/weewx.conf --clear-memory
The documentation for wee_device is here. Otherwise there may also be an issue if a parameter in your weewx.conf does not match the parameter of the logger (like archive interval) or the clock is wrong. It may also be useful to look at the --info and --debug output.

Re: Loop error

Posted: Sat Dec 16, 2017 8:49 pm
by jay_hoehn
Well, not sure how it was fixed but all seems to be working as it should now. MeteoTemplate is being fed by the Raspberry Pi3 without issue Will now get CWOP and the other services set up to take the data. Thanks for the help, Jon. Thanks also to Luc for his help.

Jay