That looks like it did it! Watching the log and seems to be updating my 
meteotemplate with the missing data!

Thanks a bunch Gary
Bill

On Friday, September 7, 2018 at 5:16:25 AM UTC-5, gjr80 wrote:
>
> Bill,
>
> Try the attached weewxwd3.py, it's v1.04 (whereas you had v1.03) but 
> should be fully backward compatible. To install:
>
> 1. rename your existing weewxwd3.py:
>
> $ mv /usr/share/weewx/user/weewxwd3.py mv /usr/share/weewx/user/
> weewxwd3_1_03.py
>
> 2. download the attached weewxwd3.py and save it in directory 
> /usr/share/weewx/user
>
> 3. restart WeeWX.
>
> Monitor the log, hopefully that will fix the error that is causing WeeWX 
> to exit.
>
> Gary
>
>
>
> On Friday, 7 September 2018 10:50:03 UTC+10, Bill M wrote:
>>
>> And hers's the error log from the last attempt to start!
>>
>> I'm off to bed shortly so will take another look tomorrow!
>>
>> Bill
>>
>> On Thursday, September 6, 2018 at 7:37:51 PM UTC-5, Bill M wrote:
>>>
>>> Tryed it but no joy
>>>
>>> my changed weewswd3.py attached, in case I did the changes wrong!
>>>
>>> On Thursday, September 6, 2018 at 6:25:12 PM UTC-5, gjr80 wrote:
>>>>
>>>> Ok, you have an old version of weewxwd3.py that is, how shall I say, 
>>>> not quite as robust as it should be. The quick fix is to add a line that 
>>>> will avoid the missing windSpeed error. If you are up for it:
>>>>
>>>> 1. edit /usr/share/weewx/user/weewxwd3.py
>>>> 2. go to about line 172, you should see code like this:
>>>>
>>>>         # has weewx already calculated appTemp?
>>>>         if 'appTemp' not in data_metricwx:
>>>>             # no, so calculate it ourself and add to our WD data
>>>>             wd_data['appTemp'] = 
>>>> weewx.wxformulas.apptempC(data_metricwx['outTemp'],
>>>>                                                           
>>>>  data_metricwx['outHumidity'],
>>>>                                                           
>>>>  data_metricwx['windSpeed'])
>>>>
>>>> You need to add an additional line so it looks like:
>>>>
>>>>         # has weewx already calculated appTemp?
>>>>         if 'appTemp' not in data_metricwx:
>>>>             # no, so calculate it ourself and add to our WD data
>>>>             if 'outTemp' in data_metricwx and 'outHumidity' in 
>>>> data_metricwx and 'windSpeed' in data_metricwx:
>>>>                 wd_data['appTemp'] = 
>>>> weewx.wxformulas.apptempC(data_metricwx['outTemp'],
>>>>                                                               
>>>>  data_metricwx['outHumidity'],
>>>>                                                               
>>>>  data_metricwx['windSpeed'])
>>>>
>>>> 3. Be careful with indenting, use the space bar not the tab key, python 
>>>> is particular with indents. Indents are multiple of 4 spaces, 
>>>> unfortunately 
>>>> posting this on the iPad makes it difficult to format the above code in a 
>>>> mono space font so the indents probably look at bit dodgy.
>>>> 4. Save weewxwd3.py
>>>> 5. Restart WeeWX
>>>>
>>>> Have a look at the log and check that WeeWX is running without error.
>>>>
>>>> Gary
>>>>
>>>> PS. Just saw your post about taking my time. I guess if you do want to 
>>>> reimage your machine go ahead, you should not lose data provided you have 
>>>> a 
>>>> logger with memory connected to your station. Depending on archive 
>>>> interval 
>>>> you should have a good 6 days or more at a 5 minute archive interval. 
>>>> WeeWX 
>>>> will just pick up any missing data when it next starts. Irrespective of 
>>>> whether you reimage or not we should get you onto the latest WeeWX-WD 
>>>> version, it's a bit more robust than the version you are using.
>>>>
>>>>

-- 
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