From 3b5984ce82c0fe1cc180aec18ce58f1857646ee5 Mon Sep 17 00:00:00 2001
From: rpiotrowski <robert.piotrowski1@pg.edu.pl>
Date: Thu, 27 Mar 2025 23:04:51 +0100
Subject: [PATCH] Fix url for grafana

---
 serial_to_mqtt_bridge/serial_to_mqtt.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/serial_to_mqtt_bridge/serial_to_mqtt.py b/serial_to_mqtt_bridge/serial_to_mqtt.py
index caab699..52a8391 100755
--- a/serial_to_mqtt_bridge/serial_to_mqtt.py
+++ b/serial_to_mqtt_bridge/serial_to_mqtt.py
@@ -296,7 +296,7 @@ class SerialToMQTTGUI:
         # Dashboard Link
         self.dashboard_frame = ttk.Frame(self.root)
         self.dashboard_label = ttk.Label(self.dashboard_frame, text="View data in Grafana dashboard:")
-        self.dashboard_link = ttk.Label(self.dashboard_frame, text="https://sustronics.mwave.eti.pg.gda.pl/d/1Mar-DTiz/sustronicspilot3-3", foreground="blue", cursor="hand2")
+        self.dashboard_link = ttk.Label(self.dashboard_frame, text="https://sustronics.mwave.eti.pg.gda.pl/d/1Mar-DTiz/sustronicspilot3-3?orgId=1&kiosk", foreground="blue", cursor="hand2")
         self.dashboard_link.bind("<Button-1>", lambda e: self.open_dashboard())
         self.dashboard_link.bind("<Enter>", lambda e: self.dashboard_link.configure(underline=True))
         self.dashboard_link.bind("<Leave>", lambda e: self.dashboard_link.configure(underline=False))
@@ -488,7 +488,7 @@ class SerialToMQTTGUI:
 
     def open_dashboard(self):
         import webbrowser
-        webbrowser.open("https://sustronics.mwave.eti.pg.gda.pl/d/1Mar-DTiz/sustronicspilot3-3?orgId=2&refresh=1m")
+        webbrowser.open("https://sustronics.mwave.eti.pg.gda.pl/d/1Mar-DTiz/sustronicspilot3-3?orgId=1&kiosk")
 
 def main():
     root = tk.Tk()
-- 
GitLab