[weewx-user] Re: WU import missing rain data

2016-11-07 Thread gjr80
Just to tie this off it was fixed at comit c027bb4 
.
 


The bug will only come into play if you are using wee_import under 2.6.0 or 
2.6.1 *AND* you want to do a WU import *AND* WU natively presents you with 
US Customary/Imperial units (I think this is USA geolocated users only). If 
this is the case any WU imports will ignore any rain data. The workaround 
is to download the current wuimport.py from the weewx master branch on 
GitHub, move the old bin/weeimport/wuimport.py aside and copy the 
downloaded version in its place. Something like the following should do the 
job (paths and permissions aside):

$ wget -P /var/tmp https:
//raw.githubusercontent.com/weewx/weewx/master/bin/weeimport/wuimport.py
$ mv /home/weewx/bin/weeimport/wuimport.py /home/weewx/bin/weeimport/
wuimport_orig.py
$ cp /var/tmp/wuimport.py /home/weewx/bin/weeimport/wuimport.py

If you have already completed a WU import that was affected by the bug then 
the only (practical) remedy is to delete the records concerned, obtain the 
fixed wuimport.py and re-import, unless of course there was no rain during 
the period you imported!

Gary

On Monday, 7 November 2016 22:35:37 UTC+10, gjr80 wrote:
>
> That'll do it, not sure how I missed that, probably something to do with 
> WUs ever consistent approach to life: PressureIn and HourlyPrecipIn but 
> dailyrainin.
>
> Thanks Andrew.
>
> Gary
>
> On Monday, 7 November 2016 22:06:30 UTC+10, Andrew Chilvers wrote:
>>
>> Ok, figured this out, it's a case sensitivity bug in wuimport.py. The 
>> code is trying to map dailyrainIn, with a capital I, and WU is returning 
>> dailyrainin, all lowercase.
>>
>> Maybe one of the devs can update the code.
>>
>> Thanks
>>
>> On Sunday, November 6, 2016 at 4:50:44 PM UTC-5, gjr80 wrote:
>>>
>>> Hi,
>>>
>>> Going to need a little more info.
>>>
>>> You say 'all the rain data is missing', what makes you say this? Have 
>>> you looked in your weewx archive? Are your reports missing data? Are there 
>>> any errors, warnings or other messages in your log from the import session? 
>>> What import config file did you use and what changes did you make to it?
>>>
>>> Gary
>>>
>>>

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


[weewx-user] Re: WU import missing rain data

2016-11-07 Thread gjr80
That'll do it, not sure how I missed that, probably something to do with 
WUs ever consistent approach to life: PressureIn and HourlyPrecipIn but 
dailyrainin.

Thanks Andrew.

Gary

On Monday, 7 November 2016 22:06:30 UTC+10, Andrew Chilvers wrote:
>
> Ok, figured this out, it's a case sensitivity bug in wuimport.py. The code 
> is trying to map dailyrainIn, with a capital I, and WU is returning 
> dailyrainin, all lowercase.
>
> Maybe one of the devs can update the code.
>
> Thanks
>
> On Sunday, November 6, 2016 at 4:50:44 PM UTC-5, gjr80 wrote:
>>
>> Hi,
>>
>> Going to need a little more info.
>>
>> You say 'all the rain data is missing', what makes you say this? Have you 
>> looked in your weewx archive? Are your reports missing data? Are there any 
>> errors, warnings or other messages in your log from the import session? 
>> What import config file did you use and what changes did you make to it?
>>
>> Gary
>>
>>

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


[weewx-user] Re: WU import missing rain data

2016-11-07 Thread Andrew Chilvers
Ok, figured this out, it's a case sensitivity bug in wuimport.py. The code 
is trying to map dailyrainIn, with a capital I, and WU is returning 
dailyrainin, all lowercase.

Maybe one of the devs can update the code.

Thanks

On Sunday, November 6, 2016 at 4:50:44 PM UTC-5, gjr80 wrote:
>
> Hi,
>
> Going to need a little more info.
>
> You say 'all the rain data is missing', what makes you say this? Have you 
> looked in your weewx archive? Are your reports missing data? Are there any 
> errors, warnings or other messages in your log from the import session? 
> What import config file did you use and what changes did you make to it?
>
> Gary
>
>

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


[weewx-user] Re: WU import missing rain data

2016-11-06 Thread Andrew Chilvers
Gary,
Sorry I was a bit vague. Used the wu-example file and edited my station 
name, and adjusted the interval to 1. Importing around 18 mo. data.
No error messages in the log, and browsing the archive data directly in the 
DB, the rain column is blank, and the rainRate column is 0.0 for all 
records. The data is there on WU.

Andrew 

On Sunday, November 6, 2016 at 4:50:44 PM UTC-5, gjr80 wrote:
>
> Hi,
>
> Going to need a little more info.
>
> You say 'all the rain data is missing', what makes you say this? Have you 
> looked in your weewx archive? Are your reports missing data? Are there any 
> errors, warnings or other messages in your log from the import session? 
> What import config file did you use and what changes did you make to it?
>
> Gary
>
>

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