When my scroller makes a call for Weather API using unchanged code, I get a 401 error despite my key being verified to work, but it will display news headlines, so I don't think it's a connectivity issue. I was looking at the openweathermap 2.5 (free) API documentation, and group query needs to be changed to weather query to get a return, but when I do that, I get this from the serial monitor in the IDE:
Getting Weather Data
GET /data/2.5/weather?id={redacted}&units=imperial&cnt=1&APPID={redacted} HTTP/1.1
Waiting for data
Response Header: HTTP/1.1 200 OK
Updating Time...
s
Getting Time Data for , <--(I did not redact, just no lat/lon data or other weather data)
GET /v2.1/get-time-zone?key={redacted}&format=json&by=position&lat=&lng= HTTP/1.1
Waiting for data
{
"status": "FAILED",
It seems as if the structure of the data output of the newer free query doesn't line up with the output of the old query, so does this mean it's not parsing the JSON output from openweathermap or is it just not receiving any data whatsoever? Do I need to upgrade to onecall 3.0, or are there some things I can change to make the 2.5 current weather API work? Maybe I messed up the install? I know there are more weather error checks that should be getting triggered here, but it's not triggering them. I have spent a few hours trying to fix it, and I think it's time to ask people that know more than I do. I thought I had looked through all of the other issue threads, but nothing really stood out as being the same error, so, sorry in advance if that's not the case or if it's a simple issue and I just messed something up. What's even more frustrating is that I'm not certain on narrowing down what the issue is because I'm on a v4.0 clone board (flashed as a clone), so that might be part of it, I have the timelib redefine warnings like Issue thread #272 has, but the display scrolls fine, shows the incorrect time, incorrect weather data, a custom message, and like I said earlier, it will display news headlines. I am pretty much dead in the water right now, have done five or six fresh recompiles with the same exact results, and maybe a fresh perspective would be for the best. Thanks.
Additional info:
Arduino IDE 2.3.6 on win10
Adafruit GFX Library 1.12.1 with Adafruit BusIO 1.17.1 dependency
json streaming parser by Daniel Eichhorn 1.0.5
Time by Michael Margolis 1.6.1
WiFiManager by tzapu 2.0.17
Max 72xx is installed but doesn't show under library manager
edit: this is a new build, was not previously functioning correctly
When my scroller makes a call for Weather API using unchanged code, I get a 401 error despite my key being verified to work, but it will display news headlines, so I don't think it's a connectivity issue. I was looking at the openweathermap 2.5 (free) API documentation, and group query needs to be changed to weather query to get a return, but when I do that, I get this from the serial monitor in the IDE:
It seems as if the structure of the data output of the newer free query doesn't line up with the output of the old query, so does this mean it's not parsing the JSON output from openweathermap or is it just not receiving any data whatsoever? Do I need to upgrade to onecall 3.0, or are there some things I can change to make the 2.5 current weather API work? Maybe I messed up the install? I know there are more weather error checks that should be getting triggered here, but it's not triggering them. I have spent a few hours trying to fix it, and I think it's time to ask people that know more than I do. I thought I had looked through all of the other issue threads, but nothing really stood out as being the same error, so, sorry in advance if that's not the case or if it's a simple issue and I just messed something up. What's even more frustrating is that I'm not certain on narrowing down what the issue is because I'm on a v4.0 clone board (flashed as a clone), so that might be part of it, I have the timelib redefine warnings like Issue thread #272 has, but the display scrolls fine, shows the incorrect time, incorrect weather data, a custom message, and like I said earlier, it will display news headlines. I am pretty much dead in the water right now, have done five or six fresh recompiles with the same exact results, and maybe a fresh perspective would be for the best. Thanks.
Additional info:
Arduino IDE 2.3.6 on win10
Adafruit GFX Library 1.12.1 with Adafruit BusIO 1.17.1 dependency
json streaming parser by Daniel Eichhorn 1.0.5
Time by Michael Margolis 1.6.1
WiFiManager by tzapu 2.0.17
Max 72xx is installed but doesn't show under library manager
edit: this is a new build, was not previously functioning correctly