Grafana in Lovelace cards - Error 401

Hello all
i’m having trouble configuring and setting up a simple iFrame Card in Lovelace with charts from Grafana.

I setup influxDB and Grafana as per documentation and the data flow from one to another correctly.
Than also from docs, i’ve copied the Grafana’s URL requested for the Lovelace’s iFrame card.

On the first tests, i’ve always got the Grafana login inside the Lovelace’s iframe.
After some further searches, i managed to configure some ENVs in the Grafana Addon and restarted it.

Now, i’m getting the iframe with some Grafana’s graphics but no data at all and the Grafana still ask me for some credentials (see screenshot) with Error 401 in the logs (even if i’ve configured anonymous access - local network).

I’ve tried out all the credential i’m created in Grafana console to no avail, includind the default ‘admin’ user.

Any ideas to solve?

TIA

Hassio: 0.95 (same problem with earlier versions)
Grafana: 2.2.1 (same problem with earlier versions)

Grafana Addon Conf:

{
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "plugins": [],
  "env_vars": [
    {
      "name": "GF_AUTH_ANONYMOUS_ENABLED",
      "value": "true"
    },
    {
      "name": "GF_AUTH_ANONYMOUS_ORG_NAME",
      "value": "swtplc"
    },
    {
      "name": "GF_AUTH_BASIC_ENABLED",
      "value": "false"
    }
  ]
}
2 Likes

Hi, have you found solution? I just restarted Hassio and it showed me 401: Unauthorized in Iframes

2 Likes

bump! No resolve here either

The same for me. It makes the iframe card totally useless…