Exception caused by windspeed

43 views
Skip to first unread message

Ludger Börgerding

unread,
Aug 31, 2019, 5:52:58 AM8/31/19
to weewx-user
Hello,
yesterday and the evening before I had an exception and weewx stopped working.
I am using a Davis Vantage Pro 2 connected by serial bus.
I could not restart weewx anymore. I used the dump function to insert all data into database and after that I could start weewx again.

What happened? My theorie is it must be because there was no wind for more than one hour. It was really calm outside.
Is there any calculation that make a summary for one hour? Maybe a division by 0 or something else? The problem occurs after one packet was transfered from weather station.

Anyone else had this problem before?

Andrew Milner

unread,
Aug 31, 2019, 6:44:31 AM8/31/19
to weewx-user
what did the log have to say - if there were any such errors they would be in the log.  The log is always your friend and should always be the first place to look.  We can only make guesses if we do not have a log to look at!!!!!

Ludger Börgerding

unread,
Aug 31, 2019, 9:52:22 AM8/31/19
to weewx-user
Okay just search for some log and found this. I hope it can help. Weewx version 3.9.2


Aug 30 21:26:15 omv weewx[3097]: vantage: Getting archive packets since 2019-08-30 21:25:00 CEST (1567193100)
Aug 30 21:26:15 omv weewx[3097]: vantage: Gentle wake up of console successful
Aug 30 21:26:15 omv weewx[3097]: vantage: Retrieving 1 page(s); starting index= 1
Aug 30 21:26:15 omv weewx[3097]: engine: Main loop exiting. Shutting engine down.
Aug 30 21:26:15 omv weewx[3097]: engine: Shutting down StdReport thread
Aug 30 21:26:15 omv weewx[3097]: engine: StdReport thread has been terminated
Aug 30 21:26:15 omv weewx[3097]: restx: Shut down AWEKAS thread.
Aug 30 21:26:15 omv weewx[3097]: restx: Shut down CWOP thread.
Aug 30 21:26:15 omv weewx[3097]: restx: Shut down Wunderground-PWS thread.
Aug 30 21:26:15 omv weewx[3097]: engine: Caught unrecoverable exception in engine:
Aug 30 21:26:15 omv weewx[3097]: **** 'windSpeed'
Aug 30 21:26:15 omv weewx[3097]: **** Traceback (most recent call last):
Aug 30 21:26:15 omv weewx[3097]: **** File "/usr/share/weewx/weewx/engine.py", line 894, in main
Aug 30 21:26:15 omv weewx[3097]: **** engine.run()
Aug 30 21:26:15 omv weewx[3097]: **** File "/usr/share/weewx/weewx/engine.py", line 202, in run
Aug 30 21:26:15 omv weewx[3097]: **** self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
Aug 30 21:26:15 omv weewx[3097]: **** File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
Aug 30 21:26:15 omv weewx[3097]: **** callback(event)
Aug 30 21:26:15 omv weewx[3097]: **** File "/usr/share/weewx/weewx/engine.py", line 580, in post_loop
Aug 30 21:26:15 omv weewx[3097]: **** self._catchup(self.engine.console.genArchiveRecords)
Aug 30 21:26:15 omv weewx[3097]: **** File "/usr/share/weewx/weewx/engine.py", line 635, in _catchup
Aug 30 21:26:15 omv weewx[3097]: **** origin='hardware'))
Aug 30 21:26:15 omv weewx[3097]: **** File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
Aug 30 21:26:15 omv weewx[3097]: **** callback(event)
Aug 30 21:26:15 omv weewx[3097]: **** File "/usr/share/weewx/user/weewxwd3.py", line 177, in new_archive_record
Aug 30 21:26:15 omv weewx[3097]: **** data_metricwx['windSpeed'])
Aug 30 21:26:15 omv weewx[3097]: **** KeyError: 'windSpeed'
Aug 30 21:26:15 omv weewx[3097]: **** Exiting.

Andrew Milner

unread,
Aug 31, 2019, 11:34:49 AM8/31/19
to weewx-user
Had you just started weewx at this point - or what is the context of the log.  Usually one needs 10 minutes or more log to work out what might be going on, and as far as I am concerned I would like to know what came before, and why weewx is attempting to retrieve archive data from one minute earlier than the current time!

I think you need to attach a copy of weewx.conf (with sensitive passwords removed) and the log from startup until the time of failure.

What is your archive interval set to - it is normal to use something like 5 minute archive intervals (300 seconds) for a vantage.  The vantage console should be set to 5 minutes also - which csn be set using the wee_device utility (see utilities documentation), and the interval in weewx.conf should correspond.

Let's see what weewx.conf and a fuller log tell us

Ludger Börgerding

unread,
Aug 31, 2019, 11:52:25 AM8/31/19
to weewx-user
That was the end of running weewx after a lot of hours. Just searched for more at this group and found the following topic

https://groups.google.com/forum/m/#!searchin/weewx-user/Weewxwd3/weewx-user/9RCwNMSlr8Q

This sounds like my problem. Will check it later.

Reply all
Reply to author
Forward
0 new messages