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/e447e6d1-82c1-4751-819b-aaa75417c483%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.