Tom, Gary

Thank you!  Gary, following your instructions weewx is downloading data 
from the station and publishing to WOW, OWM and WU but something else is 
still not correct:

Dec 14 08:52:53 RPi-Weatherstation weewx[1428]: vantage: LOOP try #3; 
error: Expected to read 99 chars; got 0 instead
Dec 14 08:52:53 RPi-Weatherstation weewx[1428]: vantage: Requesting 200 
LOOP packets.
Dec 14 08:52:54 RPi-Weatherstation weewx[1428]: vantage: Retry  #0 failed
Dec 14 08:52:54 RPi-Weatherstation weewx[1428]: vantage: Rude wake up of 
console successful
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: vantage: LOOP try #4; 
error: Expected to read 99 chars; got 0 instead
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: vantage: LOOP max tries (4) 
exceeded.
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: engine: Main loop exiting. 
Shutting engine down.
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: restx: Shut down OWM thread.
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: restx: Shut down WOW thread.
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: restx: Shut down 
Wunderground-PWS thread.
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: restx: Shut down 
StationRegistry thread.
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]: engine: Caught 
WeeWxIOError: Max tries exceeded while getting LOOP data.
Dec 14 08:52:59 RPi-Weatherstation weewx[1428]:     ****  Waiting 60 
seconds then retrying...

I tried running all historic reports using wee_reports and it did but 
produced this error in the log:

root@RPi-Weatherstation:/home/weewx# ./bin/wee_reports weewx.conf
Using configuration file weewx.conf
Generating for all time
Traceback (most recent call last):
  File "/home/weewx/bin/weewx/reportengine.py", line 239, in run
    obj.start()
  File "/home/weewx/bin/weewx/reportengine.py", line 273, in start
    self.run()
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 158, in run
    ngen = self.generate(gen_dict[section_name], self.gen_ts)
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
    ngen += self.generate(section[subsection], gen_ts)
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
    ngen += self.generate(section[subsection], gen_ts)
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
    default_binding)
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 372, in 
_getSearchList
    searchList += obj.get_extension_list(timespan, db_lookup)
  File "/home/weewx/bin/user/wdSearchX3.py", line 1030, in 
get_extension_list
    avwind120_vh = ValueHelper((avwind120_vt[0][0], avwind120_vt[1], 
avwind120_vt[2]),
IndexError: list index out of range




On Friday, December 14, 2018 at 1:54:53 AM UTC, gjr80 wrote:
>
> Indeed weeWX-WD is not checking the packet before calculating derived obs. 
> The fix is to download and install weewxwd3.py v1.04. I don't have a 
> packaged v1.04 extension yet so you can just update weewxwd3.py as 
> follows:
>
> 1. move the existing weewxwd3.py aside:
>
> $ sudo mv /home/weewx/bin/user/weewxwd3.py /home/weewx/bin/user/
> weewxwd3_1_03.py
>
> 2. download weewxwd3.py v1.04:
>
> $ sudo wget -P /home/weewx/bin/user https://
> raw.githubusercontent.com/gjr80/weewx-weewx-wd/master/bin/user/weewxwd3.py
>
> 3. restart weeWX
>
> 4. monitor the log to ensure there are no further problems.
>
> It's worth noting the issue was nothing to do with your database contents, 
> rather weeWX was running in catchup mode to pull any unarchived records 
> from your console and archive them. These archive records were missing 
> weeWX field outTemp. This is somewhat unusual as Vantage stations include 
> all obs in each archive record and therefore you would normally expect to 
> see outTemp in every archive record. You might want to keep an eye on 
> your station or run weeWX directly 
> <http://weewx.com/docs/usersguide.htm#Running_directly> to ensure 
> everything is working as it should.
>
> Gary
>
> On Friday, 14 December 2018 11:23:29 UTC+10, Thomas Keffer wrote:
>>
>> This appears to be a flaw in the weewx-wd extension. It does not check 
>> for missing values before attempting to calculate humidex.
>>
>> You'll have to check with the author of the extension. 
>>
>> -tk
>>
>> On Thu, Dec 13, 2018 at 9:24 AM Roberto Botero <[email protected]> 
>> wrote:
>>
>>> Well after cleaning columns outTemp, dewpoint, windchill, heatindex in 
>>> the archive table of weewx.sdb, --droping the dailies and rebuilding them, 
>>> I still get the same error message when I restart weewx.  I am going to 
>>> have to wipe out my sdcard and boot from a backup I did last week.  
>>> Fortunately for me the logger in my Vantage Vue has data going back to the 
>>> day before the backup.  What worries me is that the same corrupted data 
>>> will be in the logger.  If I set more stringent stdQC parameters, will the 
>>> import avoid the problems I am having?
>>>
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]: vantage: Retrieving 25 
>>> page(s); starting index= 0
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]: engine: Main loop 
>>> exiting. Shutting engine down.
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]: restx: Shut down OWM 
>>> thread.
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]: restx: Shut down WOW 
>>> thread.
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]: restx: Shut down 
>>> Wunderground-PWS thread.
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]: restx: Shut down 
>>> StationRegistry thread.
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]: engine: Caught 
>>> unrecoverable exception in engine:
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****  'outTemp'
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****  Traceback 
>>> (most recent call last):
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****    File 
>>> "/home/weewx/bin/weewx/engine.py", line 877, in main
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****      
>>> engine.run()
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****    File 
>>> "/home/weewx/bin/weewx/engine.py", line 160, in run
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****      
>>> self.dispatchEvent(weewx.Event(weewx.STARTUP))
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****    File 
>>> "/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****      
>>> callback(event)
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****    File 
>>> "/home/weewx/bin/weewx/engine.py", line 509, in startup
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****      
>>> self._catchup(self.engine.console.genStartupRecords)
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****    File 
>>> "/home/weewx/bin/weewx/engine.py", line 623, in _catchup
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****      
>>> origin='hardware'))
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****    File 
>>> "/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****      
>>> callback(event)
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****    File 
>>> "/home/weewx/bin/user/weewxwd3.py", line 170, in new_archive_record
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****      
>>> wd_data['humidex'] = weewx.wxformulas.humidexC(data_metricwx['outTemp'],
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****  KeyError: 
>>> 'outTemp'
>>> Dec 13 17:19:28 RPi-Weatherstation weewx[20968]:     ****  Exiting.
>>>
>>> -- 
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to