SD card issues aside the current wunderfixer will almost certainly not work 
due to WU changes. As you have discovered wunderfixer currently uses a call 
to WXDailyHistory.asp to obtain the days records held by WU and wunderfixer 
uses this to determine which records to re-upload, WU seems to be 
decommissioning WXDailyHistory.asp and consequently a call to 
WXDailyHistory.asp will almost certainly always fail causing wunderfixer to 
fail. There is some work going on to try to update wunderfixer to use the 
new WU API 
<https://groups.google.com/d/topic/weewx-user/dq8xFrqGVMA/discussion>; 
however, the new API has some issues that either need to be fixed by WU or 
some substantial changes made to wunderfixer.

So for the time being it is a case of standby.

Gary

On Wednesday, 12 June 2019 10:37:11 UTC+10, Sean Kirkpatrick wrote:
>
> Argh! I've pretty much confirmed that my SD card is toast. Getting lots 
> and lots of errors trying to run yum update as well as wunderfixer - 
>
> seank@weather:~ $ wunderfixer --verbose
> Traceback (most recent call last):
>   File "/usr/bin/wunderfixer", line 64, in <module>
>     import weecfg
>   File "/usr/share/weewx/weecfg/__init__.py", line 28, in <module>
>     import weewx.defaults
>   File "/usr/share/weewx/weewx/defaults.py", line 227, in <module>
>     defaults = configobj.ConfigObj(StringIO(default_str))
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
> __init__
>     self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
>     raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 112.
>
>
> Rebuilding my Pi...again...sigh!
>
>    Sean
>
> On Friday, June 7, 2019 at 5:23:29 PM UTC-7, Gareth Hunt wrote:
>>
>> Greetings,
>>
>> [Still a newbie user.]
>>
>> I live in rural USA where a landline DSL will probably be available some 
>> time after Hell freezes over.  So I have to rely on a satellite link.  Not 
>> surprisingly, this fails when there are adverse atmospheric conditions.  
>> There were thunderstorms for several hours on June 7.  So wunderfixer to 
>> the rescue!  However, it failed.  Here is the code snippet with my added 
>> print statement in class Wunderstation.
>>
>>         _url = "
>> http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=%s&"\
>>         "month=%d&day=%d&year=%d&format=1" % (self.station, 
>> dayRequested_tt[1], dayRequested_tt[2], dayRequested_tt[0]) 
>>         print _url   # My addition
>>         
>>         try :
>>             # Hit the weather underground site:
>>             _wudata = urllib2.urlopen(_url)
>>         except urllib2.URLError as e :
>>             print >>sys.stderr, "Unable to open Weather Underground 
>> station " + self.station, " or ", e
>>
>> This gave:
>>
>> bin$ ./my.wunderfixer 
>> Using configuration file /home/weewx/weewx.conf.
>> Using database binding 'wx_binding', which is bound to database 
>> 'archive_sqlite'
>>
>> http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KVASCOTT14&month=6&day=7&year=2019&format=1
>> Unable to open Weather Underground station KVASCOTT14  or  HTTP Error 
>> 403: Forbidden
>> Could not get Weather Underground data. Exiting.
>>
>> However, when I copied and pasted the printed http address into my 
>> browser, everything was fine.  I could see all of the reported records with 
>> the expected data gaps.  I did not get HTTP Error 403 (i.e., e).
>>
>> So I have some (hopefully trivial) permission error with my access to 
>> Wunderground.  Can somebody suggest what it is and how I get it fixed?
>>
>> Thanks,
>> Gareth.
>>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c692ef33-1a05-4b0a-92ea-c0f79c5b2dd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to