Future Time Preventing Database Updates

56 views
Skip to first unread message

Ken Waters

unread,
Dec 21, 2019, 12:19:40 AM12/21/19
to weewx-user
Hi,

I finally set up a new Linux box (Ubuntu 18.03) to use as a server for Weewx.  For several years I ran it fine on an old Ubuntu server that finally died.  I use a USB-to-serial interface to connect to my Vantage Pro2 console.

What has been happening is each time I start with a new database (/var/lib/weewx.sdb) and restart the daemon it sets a final time record in the database in the future as seen below in this output from a select dateTime command in sqllite3:

2019-12-19 05:04:00
2019-12-19 05:05:00
2019-12-19 05:06:00
2020-01-01 21:15:00 <<<<< erroneous entry in the future

I used to be able to fix this problem over the years by removing the database (or temporarily) renaming it and then issuing this command:

$ sudo /usr/share/weewx/wee_config_vantage --clear

however it seems that the current version of Weewx (using 3.9.2) no longer has this command.  Instead I found wee_config but that does not seem to have an option to clear the settings as it used to do.

Simply deleting the database and restarting the daemon just repeats the same error.  I have checked the VP2 console to confirm it is showing 2019 as the year with correct month and date.

So, I don't know what is causing this incorrect date to be put in the database and thus locking the database down.  Can someone help me so I can get things going again?  

Thanks much!

Ken Waters
Mesa, AZ


gjr80

unread,
Dec 21, 2019, 4:21:11 AM12/21/19
to weewx-user
Hi,

Looks like changes on both fronts, utility name and command. I think you will find the wee_device utility and the —clear-memory action (http://www.weewx.com/docs/hardware.htm#vantage_clear_console_memory45) will do what you want.

Gary

Ken Waters

unread,
Dec 22, 2019, 6:09:57 PM12/22/19
to weewx...@googlegroups.com
Perfect, that was the missing link that got things straight again.  Thanks Gary!

Ken

--
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/6TRcuuqtLz4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/29133866-d322-4ab8-afe9-a4cf917c607c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages