# Grafana dashboard change

**URL:** <https://discourse.nodered.org/t/grafana-dashboard-change/87822>\
**Category:** Dashboard\
**Tags:** function-node\
**Created:** [9 May 2024 06:57 UTC](https://discourse.nodered.org/t/grafana-dashboard-change/87822 "2024-05-09T06:57:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikluk](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mikluk](https://discourse.nodered.org/u/mikluk)\
**Post date:** [9 May 2024 06:57 UTC](https://discourse.nodered.org/t/grafana-dashboard-change/87822/1 "2024-05-09T06:57:49Z")

</div>

Hello, I need an help with automated dashboard change in Grafana ( I do not have enough knowledges about Grafana ). In our module we are using automatic change according to value from PLC. Changing of dashboard is working well ( checked in Node-red ), but what I am trying to solve is automatic change of the dashboard in Grafana. The new dashboard is loaded on the monitor only after clicking on the Home icon ( left up corner ). Is there any possibility to send command from the Node-red to make it automatically? Print screens are included.

 ![Grafana](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/4/840c4348086b22b6eb8fb27e63513e1f165f8638.jpeg)  
 ![Red-node](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d0a50472826b31ff7cef618a097b278154dec4ef.jpeg)

Thanks for help.

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [9 May 2024 08:18 UTC](https://discourse.nodered.org/t/grafana-dashboard-change/87822/2 "2024-05-09T08:18:43Z")

</div>

It's not complete clear to me what you want to do, but have a look at the Grafana api.  
With this api and the Nr http mode you can do a lot.

> **[HTTP API | Grafana documentation](https://grafana.com/docs/grafana/latest/developers/http_api/)**
>
> Grafana HTTP API

Let us know if you got it working so other people can use the solution also.

---

<div class="post-metadata">

**Author:** ![mikluk](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mikluk](https://discourse.nodered.org/u/mikluk)\
**Post date:** [10 May 2024 09:38 UTC](https://discourse.nodered.org/t/grafana-dashboard-change/87822/5 "2024-05-10T09:38:57Z")

</div>

I add some printsreens - maybe it will be more clear.

 ![01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/11faf597412f2e46d98e6ef979d4a6b55c13ba0e.jpeg)

Everything is OK.

 ![02](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/0/b0371a0b8b63945d9ae07b1e7deb9847818a13dd.jpeg)

New dashboard is requested from PLC. In Node-red all is ok, but in Grafana is still loaded previous Dashboard.

 ![03](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9f2f5afe29fb6cdeaba2901ec5bfde0619bffac2.jpeg)

What I need is to activate ( press ) that "Home" icon button from the Node-red to load correct Dashboard automatically.

Is it possible?

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [10 May 2024 12:53 UTC](https://discourse.nodered.org/t/grafana-dashboard-change/87822/6 "2024-05-10T12:53:31Z")

</div>

Think you can use this; [Dashboard HTTP API | Grafana documentation](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/#gets-the-home-dashboard)

---

<div class="post-metadata">

**Author:** ![mikluk](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mikluk](https://discourse.nodered.org/u/mikluk)\
**Post date:** [10 May 2024 13:10 UTC](https://discourse.nodered.org/t/grafana-dashboard-change/87822/7 "2024-05-10T13:10:42Z")

</div>

Yes, I am checking. It is completely new for me. Did not find until now 😃

---

<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:** [9 June 2024 13:11 UTC](https://discourse.nodered.org/t/grafana-dashboard-change/87822/8 "2024-06-09T13:11:12Z")

</div>

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