Qrome / marquee-scroller

Marquee Scroller Clock News Weather and More
https://www.thingiverse.com/thing:2867294
MIT License
324 stars 159 forks source link

Weather Data Error: HTTP/1.1 401 Unauthorized #269

Closed dirtmover closed 1 year ago

dirtmover commented 1 year ago

I get this error when I set the OpenWeatherMap API Key from the web interface. When I hard code it in Settings.h and do a flash reset, everything is fine.

finnie2006 commented 1 year ago

same

Qrome commented 1 year ago

You must activate and verify the key. This is not a bug.

finnie2006 commented 1 year ago

It is..

Qrome commented 1 year ago

Well, if you are getting a 401 not authorized -- please provide very detailed instructions how this can be replicated. Nothing here from what I can tell is helpful.

dirtmover commented 1 year ago

I told you how in the original issue report but here we go again!.

  1. Build a load with String APIKEY = ""; // Your API Key from http://openweathermap.org/ in Settings.h
  2. Reset the flash and install this load on your ESP
  3. Configure OpenWeatherMap API Key from the web interface using your activated and verified key
  4. You'll get "Weather Data Error: HTTP/1.1 401 Unauthorized"
  5. Build a new load with your API Key in Settings.h i.e. String APIKEY = "YourApiKey";
  6. Reset the flash and install this load
  7. Everything is fine now
Qrome commented 1 year ago

Thanks for the details. I can not replicate it. I have never had to add the api key to the Settings.h file -- ever.