Issue using Pi4 and Davis Vantage2?

219 views
Skip to first unread message

GordonT

unread,
May 24, 2025, 2:15:29 PM5/24/25
to weewx-user
Firstly when l installed it the vantage showed up as /dev/ttyUSB0 but now its /dev/vantage, has something changed ?

I also had an issue where after a period it would stop downloading any data from the vantage, normally after a boot of the pi. I noticed when the pi was booted, connected to the Internet but no rtc, the pi time would be the same as when it was shutdown until it got the current time from the Internet. In this period the vantage would show the time from the pi, which could be from the previous day. Could this be the issue ?

I have now fitted an rtc to the Pi and so far so good, but will see how it goes.

Tom Keffer

unread,
May 24, 2025, 2:33:45 PM5/24/25
to weewx...@googlegroups.com
1. If the Vantage is showing up as /dev/vantage, you added a udev rule. Perhaps you forgot about it? See Installing a udev script

2. If you did not have an RTC, then the Pi uses the last recorded time, which as you noted, could be the previous day. See the Time section in the article about RPis. 

If you have any additional problems, be sure to include a log.

-tk

--
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 visit https://groups.google.com/d/msgid/weewx-user/7e203cc8-6e23-4f48-b793-112d785a3a02n%40googlegroups.com.

GordonT

unread,
May 25, 2025, 5:24:56 AM5/25/25
to weewx-user
Thanks for the help.

1) l found a udev rule, 60-weewx.rules. l didn't write it so assume the installation did. I don't know why it didn't show up as /dev/vantage earlier but working now.

2) The Pi having incorrect time and date at boot seems to be the issue, l have seen no issues so far after installing an rtc.
It appears to corrupt the vantage pro2 logger which l can only solve by clearing the memory, which results in lost data.

Where do l find the log ? I found a reference to /var/log/syslog but can't find any relevant log. I have set debug=1 in the conf.

Overall l find weewx very good and hopefully can get rid of my old PC with weatherlink.

Thanks

Tom Keffer

unread,
May 25, 2025, 7:49:56 AM5/25/25
to weewx...@googlegroups.com
Totally forgot that package installs include a udev rule.

For how to read the log, see section Log messages in the documentation.

GordonT

unread,
May 27, 2025, 5:17:50 AM5/27/25
to weewx-user
Just a note to say the system has been performing perfectly since adding the rtc to the Pi.

I have struggled to get any logs working 

vince

unread,
May 27, 2025, 11:52:40 AM5/27/25
to weewx-user
What in particular are you struggling with?

Gordon Train

unread,
May 27, 2025, 12:04:35 PM5/27/25
to weewx...@googlegroups.com
I installed using pip, and l am using a venv environment.

I have tried following the instructions https://github.com/weewx/weewx/wiki/logging but l can't work out how to get it to write logs.

Gordon 

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/ITmmDT1Q0Xs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/8c8cb5a2-8e51-4866-b350-723d2d4e2d03n%40googlegroups.com.

vince

unread,
May 27, 2025, 12:55:05 PM5/27/25
to weewx-user
Kinda hard to magically divine what you can't work out specifically,  but here's how I do it FWIW

# this assumes your weewx-data is under /home/pi/weewx-data
sudo apt install rsyslog
sudo cp /home/pi/weewx-data/util/rsyslog.d/weewx.conf /etc/rsyslog.d/weewx.conf
sudo systemctl restart rsyslog

The result is the logs will be under the directory /var/log/weewx - doesn't get much simpler than that :-)

Lastly - if you used a packaged installation of weewx the rsyslog.d config file to copy into place would be /etc/weewx/rsyslog.d/weewx.conf

The wiki page is perhaps a bit dated in my opinion.  The simple steps above are plenty good enough these days...

Gordon Train

unread,
May 27, 2025, 2:16:18 PM5/27/25
to weewx...@googlegroups.com
Excellent,  thankyou.

Yes that worked. I don't remember seeing that sequence in the documentation.

Gordon

Reply all
Reply to author
Forward
0 new messages