#Need help in normal discord chatbot for my assignment

8 messages · Page 1 of 1 (latest)

craggy frigate
#

I don't think the the WEATHER_API_URL is correct. If I understand correctly, that would be the URL for the API key management page, not the actual API's base URL.

Perhaps, try https://api.openweathermap.org/data/2.5 instead?

craggy frigate
# rancid relic ok

Also, I'm not sure, but I don't think the format of the URL in the get_environment_data function is correct. (Could be me misreading the documentation or using a different API version).

As far as I know, to use a city name (I'm presuming), I think it should be
{WEATHER_API_URL}/weather?q={location}. Note, this is deprecated

craggy frigate