Thanks for all your effort Gary. I guess deleting the imported data would 
be easy for me, using the SQLiteBrowser, I will test that first on an 
outdated backup. The rest of the work is just a few commands and then wait 
a couple of hours while th Pi do the work :)

Thomas

Den fredag 3 februari 2017 kl. 02:50:49 UTC+1 skrev gjr80:
>
> Thanks again for the feedback Thomas, I believe the rain issue you 
> experienced was due to wee_import having some issues with the monthly log 
> file format/structure. Over the years as newer versions of Cumulus came out 
> addtional fields were added to the monthly log file, in particular as of 
> Cumulus v1.9.4 there are no less than 4 separate fields in the monthly log 
> that *could* be used for rainfall. Unfortunately wee_import was using a 
> field from a later version of Cumulus and it appears that your logs were 
> produced by an earlier version of Cumulus (given your logs are from 2010 
> this is not surprising) and didnot include that field. 
>
> In any case, I have fixed the issue, wee_import should gracefully fall 
> back to using a field that is available. Unfortunately for you the solution 
> will involve (1) deleting your previously imported data, (2) re-importing 
> the Cumulus data and (3) rebuilding your daily sumamries. I am mindful of 
> how much effort this will be, especially if you have to rename log files 
> again. If you still have the renamed log files then all we need do is 
> update a couple of the wee_import .py files and you should be able to 
> redo the import fairly quickly. If you don't have the renamed log files any 
> more, let me know and I will sit down and rework the code to accept locale 
> based log files, it should not be too hard. Let me know what you would like 
> to do.
>
> Gary
>
> On Friday, 3 February 2017 03:08:09 UTC+10, Thomas Olausson wrote:
>>
>>
>>
>> Den torsdag 2 februari 2017 kl. 17:54:46 UTC+1 skrev Thomas Olausson:
>>>
>>>
>>>
>>> Den måndag 30 januari 2017 kl. 02:22:00 UTC+1 skrev gjr80:
>>>>
>>>> Thank you for the feedback Thomas, I did not realise that Cumulus used 
>>>> localisation for the month name in the log file file name. I will have a 
>>>> look at adding the use of the locale month names as a future enhancement, 
>>>> I 
>>>> guess fortunately for you you only have 3 months per year to change :)
>>>>
>>>> Gary
>>>>
>>>
>>> No problem changing the filenames. But I discovered another problem 
>>> while studying the monthly and yearly summaries. There is no raindata. I've 
>>> checked the weewx data base and there are lots of data in rainrate but 
>>> nothing in rain except for the last few days which are logged directly from 
>>> the station. Cumulus logs looks alright, rain is accumulated during 24 
>>> hours and reset at midnight. It seems to me that something does wrong 
>>> during import.
>>>
>>  
>>
>>> /Thomas
>>>
>> I just discovered that it was no rain in the log file I sent before, so I 
>> append one from april 2010. Lots of rain there :) /Thomas
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to