johnwargo / pi-weather-station

Raspberry Pi Sense HAT, Weather Underground station
MIT License
64 stars 25 forks source link

Issue connecting to Wunder Underground #8

Open thorpup opened 2 years ago

thorpup commented 2 years ago

this is my error message i receive

ERROR Exception type: <class 'list'> 2022-01-28 12:00:00 ERROR Error: <class 'AttributeError'> Traceback (most recent call last): File "/home/pi/pi_weather_station/./weather_station.py", line 239, in processing_loop urllib.request.urlopen('http://weatherstation.wunderground.com/weatherstation/StationData.php?ID=StationID') AttributeError: module 'urllib' has no attribute 'request'

not sure how to fix this.

johnwargo commented 2 years ago

A quick Google search gave me this:

https://stackoverflow.com/questions/37042152/python-3-5-1-urllib-has-no-attribute-request

My code is pretty old, perhaps things changed a bit in the library since I wrote it.

johnwargo commented 2 years ago

@thorpup did that help you? Please respond at least to let me know I can close the issue.