Inkplate-Arduino-library
Inkplate-Arduino-library copied to clipboard
Hourly_Weather_Station_Example: Print message on serial for HTTP 401
As the activation of API keys can take a while it is a common situation to try this with a not-yet-activated API key, which results in a HTTP 401. While many other messages are printed to the serial interface, this one is not.
The API keys of the account that I registered never worked for the one call 2.5 API (both the example code and with curl). After registering for one call 3.0 and changing the url in the code I was able to run the example.
I do think it is worthwhile to change the URL, however after registering for one call 3.0 I was actually able to use the 2.5 link once the API key eventually activated, so this commit makes sense even without changing the URL (as committed.)
@BornaBiro would this be ok?
@BornaBiro ?