Standing by...

I guess that I didn't search hard enough to find out about the new work 
being done. Thanks Gary and Leon for correcting my course!

    S

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/94d07715-0996-419e-8487-904a2ec5ea39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to