Weexwx generating web pages, but with old data. Remote Vantage Vue console.

642 views
Skip to first unread message

John Maurer

unread,
Jul 26, 2013, 12:28:50 PM7/26/13
to weewx...@googlegroups.com
All

I'm looking for some advice on how to proceed on getting a remote Vantage Vue and Weewx talking again.   Apparently, the remote location experienced a power outage for longer than the UPS lasted, so my weewx server (raspberry pi) was unceremoniously powered down.  The Vantage Vue console had fresh batteries and continued to function normally.  The Weewx web pages are stuck on July 18th, although the html files have current time stamps.

When the power was restored, the weewx server appeared to get the missing data from the Vue but after that did not like the different time stamps:

Jul 26 10:45:21 raspberrypi weewx[2305]: VantagePro: DMPAFT complete: page timestamp 2013-07-18 19:20:00 CDT (1374193200) less than final timestamp 2013-07-18 22:25:00 CDT (1374204300)
Jul 26 10:50:20 raspberrypi weewx[2305]: VantagePro: DMPAFT complete: page timestamp 2013-07-18 19:20:00 CDT (1374193200) less than final timestamp 2013-07-18 22:25:00 CDT (1374204300)
Jul 26 10:55:21 raspberrypi weewx[2305]: VantagePro: DMPAFT complete: page timestamp 2013-07-18 19:20:00 CDT (1374193200) less than final timestamp 2013-07-18 22:25:00 CDT (1374204300)

I've read the related posts, and have done the following two steps:

wee_config_vantage /home/weewx/weewx.conf --info
wee_config_vantage
/home/weewx/weewx.conf --dump

These two steps worked as they normally would. The next recommended step is:

wee_config_vantage /home/weewx/weewx.conf --clear

"then unplug, take the batteries out, put back together, and restart everything."

My problem is that the Vantage Vue console is 500 miles away on a remote lake in the Boundary Waters, and I can't pull the batteries out.  I've not done the "--clear" step yet.

My question: should I do the "--clear" even though I can't reboot the console?  I have ssh access.  Or do I leave it dead until my next trip, then repeat the "--dump" followed immediately by the "--clear" to minimize my data loss?

My Vantage Vue interface is serial, going directly into the rPi serial port - no USB involved.  During testing, I'm sure I killed the power to the pi many times, and did not happen to see this problem.


Thanks in advance,
John Maurer
Ames, Iowa

WØDP

Thomas Keffer

unread,
Jul 26, 2013, 6:29:44 PM7/26/13
to weewx...@googlegroups.com

Hi, John

This sounds like a classic memory corruption problem. I think you're ok with doing the dump, followed immediately by the clear. It would be nice to remove the batteries as well, but not essential.

Let us know how it turns out.

-tk
Fat-fingered from my Android phone

--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

John Maurer

unread,
Jul 27, 2013, 11:19:19 AM7/27/13
to weewx...@googlegroups.com
Thanks Tom,

I remotely ran the --dump again using SSH and got this:

# ./wee_config_vantage /home/weewx/weewx.conf --dump
Opened existing database 'archive_sqlite'
Starting dump ...
Traceback (most recent call last):2013-07-19 18:30:00 CDT (1374276600)
 
File "./wee_config_vantage", line 367, in <module>
    main
()
 
File "./wee_config_vantage", line 115, in main
    dump_logger
(station, config_dict)
 
File "./wee_config_vantage", line 358, in dump_logger
   
for record in station.genArchiveDump():
 
File "/home/weewx/bin/weewx/VantagePro.py", line 554, in genArchiveDump
    _page
= self.port.get_data_with_crc16(267, prompt=_ack, max_tries=self.max_tries)
 
File "/home/weewx/bin/weewx/VantagePro.py", line 175, in get_data_with_crc16
   
raise weewx.CRCError("Unable to pass CRC16 check while getting data")
weewx
.CRCError: Unable to pass CRC16 check while getting data
root@raspberrypi
:

I don't recall seeing the CRC errors when I did the --dump a few days ago.  At any rate, I went ahead and ran the --clear:

:/home/weewx/bin# ./wee_config_vantage /home/weewx/weewx.conf --clear
Clearing the archive memory ...
Proceeding will erase old archive records.

After restarting weewx, it appears the only data I have starts July 14th and continues until the 18th when the power failed, and now data starting today the 27th.   I'm not sure of the significance of the 14th - there were no events that day that I know of.

At any rate, weewx is generating current updates of the html pages. When I have time, I'll take a look at the sql backup files compared to the current ones.

Just so I'm clear, this is an issue with the VantageVue console, right?  

Thanks again,
John Maurer
Ames, Iowa

Thomas Keffer

unread,
Jul 27, 2013, 12:02:05 PM7/27/13
to weewx...@googlegroups.com

Hi, John

Yes, it's an issue with all of the Davis instruments.

-tk
Fat-fingered from my Android phone

Reply all
Reply to author
Forward
0 new messages