Trying to add openweather api: Error 401

i`m using Inifnity to add openweather api, but pop up 401 401 unauthorized.
That i do is add source Infinity and in URL section i put the API:{API KEY}, when i click save its says “Data Source is working. No checks performed” but when i trying to create dashboard and put url in URL section shows 401 Unauthorized.

hi @divanovataro

Are you able to hit this endpoint using curl? I’m geussing that when you do you have to pass your authentication token in the request. I don’t know about infinity but the JSON API plugin is awesome and allows you to add headers to your JSON request. I would explore that.

Or, first get this working as a simple cURL request from the command line and then match that in the plugin.

This topic was automatically closed after 365 days. New replies are no longer allowed.