issues
search
pyaustine
/
weather-api-wrapper
A Python wrapper for the OpenWeatherMap API, enabling easy access to weather data for any location.
https://pypi.org/project/weather-api-wrapper/
MIT License
1
stars
0
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
Traceback (most recent call last): File "C:\Users\user\test\weather-api-wrapper\main.py", line 11, in <module> historical_data = client.get_historical_weather(city={'lat': 51.51, 'lon': -0.13}, start_date='2024-04-01', end_date='2024-04-07') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\test\weather-api-wrapper\venv\Lib\site-packages\weather_api_wrapper\weather_client.py", line 23, in get_historical_weather response.raise_for_status() File "C:\Users\user\test\weather-api-wrapper\venv\Lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.openweathermap.org/data/2.5/onecall/timemachine?lat=51.51&lon=-0.13&start=2024-04-01&end=2024-04-07&appid=c2ef0364719328ec3c766670ac7417fb&units=metric
#7
pyaustine
opened
7 months ago
1
Error fetching weather alerts: 404 Client Error: Not Found for url: https://api.openweathermap.org/data/2.5/weather/alerts?q=London&appid=c2ef0364719328ec3c766670ac7417fb
#6
pyaustine
opened
7 months ago
0
Error fetching UV index data: string indices must be integers, not 'str'
#5
pyaustine
opened
7 months ago
0
Error fetching air pollution data: string indices must be integers, not 'str'
#4
pyaustine
opened
7 months ago
0
Error fetching historical weather data: string indices must be integers, not 'str'
#3
pyaustine
opened
7 months ago
0
Getting error when using the package
#2
pyaustine
opened
7 months ago
0
Getting error when trying to use the wrapper
#1
pyaustine
closed
7 months ago
1