# Grafana values are not reported correctly to the dashboard

**URL:** <https://discourse.nodered.org/t/grafana-values-are-not-reported-correctly-to-the-dashboard/78520>\
**Category:** Dashboard\
**Created:** [18 May 2023 22:17 UTC](https://discourse.nodered.org/t/grafana-values-are-not-reported-correctly-to-the-dashboard/78520 "2023-05-18T22:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damrak2022](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damrak2022/32/72563_2.png) [@Damrak2022](https://discourse.nodered.org/u/Damrak2022)\
**Post date:** [18 May 2023 22:17 UTC](https://discourse.nodered.org/t/grafana-values-are-not-reported-correctly-to-the-dashboard/78520/1 "2023-05-18T22:17:19Z")

</div>

I have the following question:  
In Grafana itself, my data is correct - see here:

 ![Bildschirmfoto 2023-05-18 um 18.20.26](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/8/d809e6521a0bab413edbadeaa10e87a62f1341c8.jpeg)  
However, my dashboard looks like this:  
 ![Bildschirmfoto 2023-05-18 um 18.22.44](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a35474b1701ed6be8164e686fbc13e6da987acb.png)  
The refresh interval in Grafana is set to 1 minute. So all the records are correct in Grafana. Only in the dashboard it doesn’t update and I don’t understand why.  
Is integrated via the embedded link:

```auto
<iframe
    src="http://192.168.178.24:3000/d-solo/-KdPH7PVk/health-daten?orgId=1&to=1684280070769&panelId=29"
    width="100%" height="100%" frameborder="0"></iframe>

```

Can someone tell me what it could be?

It would be great if someone could help me here.

Sorry that I use Google translate, but unfortunately my English isn't that good anymore.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [19 May 2023 00:53 UTC](https://discourse.nodered.org/t/grafana-values-are-not-reported-correctly-to-the-dashboard/78520/2 "2023-05-19T00:53:44Z")

</div>

> [@Damrak2022](#):
>
> `&to=1684280070769`

When you use embedded link you don't have the tool bar to select time range etc, so you should provide this in the link.

You need to make your link more "dynamic" and supply from and to dates etc rather than fixed  
values. Also add **&refresh=1m**

I use a function to build a "dynamic link" then pass it to the iframe eg

```auto
msg.payload = "http://192.168.1.254:3000/d-solo/YqIZzjHVz/meters?orgId=1" +
    "&refresh=1m" +
    "&theme=dark" +
    "&from=" + fromdate +
    "&to=" + enddate +
    "&panelId=" + panelId

```

Or using JavaScript Template Literals

```auto
msg.payload = `http://192.168.1.254:3000/d-solo/YqIZzjHVz/meters?orgId=1
               &refresh=1m
               &theme=dark 
               &from= ${fromdate}
               &to= ${enddate}
               &panelId= ${panelId}`

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 June 2023 00:53 UTC](https://discourse.nodered.org/t/grafana-values-are-not-reported-correctly-to-the-dashboard/78520/3 "2023-06-18T00:53:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
