# Dashboard - Entwicklungen / Fehler / etc.

**URL:** <https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150>\
**Category:** Développement\
**Created:** [4. Januar 2020 um 10:08 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150 "2020-01-04T10:08:44Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [7. Februar 2022 um 09:44 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/121 "2022-02-07T09:44:18Z")

</div>

Zurück am Montagmorgen habe ich gerade ein Release-Tag erstellt, Gladys v4.7.3.

Aktuell im Build hier:

[https://github.com/GladysAssistant/Gladys/actions/runs/1805667854](https://github.com/GladysAssistant/Gladys/actions/runs/1805667854)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [8. Februar 2022 um 14:47 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/122 "2022-02-08T14:47:34Z")

</div>

@lmilcent Das behebt alle deine Performance-Probleme!! 🙂

@VonOx Hat das auch deine Probleme gelöst?

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [8. Februar 2022 um 16:59 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/123 "2022-02-08T16:59:13Z")

</div>

Ja, das Gefühl ist besser, ich sag dir in ein paar Tagen wieder Bescheid.

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [5. Mai 2022 um 16:29 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/124 "2022-05-05T16:29:31Z")

</div>

Guten Abend,  
Ich würde gerne wissen, wie das Dashboard aktualisiert wird?  
Ob zyklisch oder wenn sich ein Wert ändert?  
Danke

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [6. Mai 2022 um 07:58 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/125 "2022-05-06T07:58:21Z")

</div>

> [@Psoy](#):
>
> Ich würde gerne wissen, wie das Dashboard aktualisiert wird?  
> Ist das zyklisch oder nur, wenn sich ein Wert ändert?

Normalerweise ist das live (bei einer Zustandsänderung wird das an die Frontend-UI weitergegeben)

Aber es gab einige Vergesslichkeiten bei bestimmten Boxen, bei denen das nicht gemacht wurde. Dafür gibt es bereits GitHub-Issues und @AlexTrovato hat dazu einen Pull Request gemacht 🙂

> <https://github.com/GladysAssistant/Gladys/pull/1465>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- ~~\[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)~~
> \- ~~\[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.~~
> \- ~~\[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)~~
> \- ~~\[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).~~
> \- ~~\[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).~~
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Update temperature and humdity according to websocket event.
> 
> 1. Load devices in room
> 2. Check if event matches device in room
> 3. If yes, reload data from API
> 
> ⚠️ I didn't test it in real life
> 
> Fixes #1316

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [6. Mai 2022 um 09:20 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/126 "2022-05-06T09:20:02Z")

</div>

Danke @pierre-gilles  
Denn tatsächlich habe ich MQTT-„Status“-Funktionen, die sich nicht immer aktualisieren. Ich muss die Dashboard-Seite neu laden, aber vielleicht warte ich auch nicht lange genug, damit die Aktualisierung auf dem Dashboard erfolgt, denn die zugehörige Telegramm-Nachricht kommt gut an.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [6. Mai 2022 um 14:40 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/127 "2022-05-06T14:40:58Z")

</div>

> [@Psoy](#):
>
> Danke @pierre-gilles  
> Denn tatsächlich habe ich MQTT-„Status“-Funktionen, die sich manchmal nicht aktualisieren

Auf welcher Box des Dashboards?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [6. Mai 2022 um 15:19 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/128 "2022-05-06T15:19:28Z")

</div>

> [@pierre-gilles](#):
>
> Auf welcher Box im Dashboard?

Auf einer Box „Geräte im Raum“

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [9. Mai 2022 um 07:59 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/129 "2022-05-09T07:59:58Z")

</div>

Ah, das ist nicht normal. Normalerweise funktioniert diese Box perfekt.

Lokal oder auf Gladys Plus das Problem?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [9. Mai 2022 um 08:33 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/130 "2022-05-09T08:33:48Z")

</div>

> [@pierre-gilles](#):
>
> Ah, das ist nicht normal.

Hallo @pierre-gilles  
Das ist lokal, ich habe es nicht auf G+ getestet

Ich verstehe das nicht, ich habe einen Sensor mit 2 Funktionen auf einem Esp 8266 gebaut, der per Mqtt an Gladys überträgt  
und eine funktioniert einwandfrei, aber die andere, wie ich dir sage, sendet die Telegramm-Nachricht bei ihrem Zustandswechsel, wird aber nicht im Dashboard aktualisiert und wenn ich die Webseite (Dashboard) aktualisiere, wird die Anzeige der Funktion aktualisiert. Ich werde die Recherchen vertiefen, ich halte dich auf dem Laufenden  
Entschuldige für die Zeit, die du verloren hast.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [3. August 2022 um 09:31 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/131 "2022-08-03T09:31:59Z")

</div>

Hallo,

Ich möchte etwas mit euch (und @pierre-gilles) überprüfen.

Wenn ich ein Dashboard lade, muss Gladys 100 Werte aus der DB abrufen, um sie anschließend anzuzeigen, richtig? Soweit ich weiß, sollte das keine große Festplattenlast (I/O) verursachen. Ich kann mir daher nicht erklären, warum die IO bei 100% liegt, mit einem Maximum von 19 MB/s, wenn ich ein neues Dashboard lade.

Beweis in Video:

[![](https://i.ytimg.com/vi/m42PoImLxEw/hqdefault.jpg "Gladys - Lenteurs dashboard (IO SQlite)") ](https://www.youtube.com/watch?v=m42PoImLxEw)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [3. August 2022 um 18:00 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/132 "2022-08-03T18:00:30Z")

</div>

> [@lmilcent](#):
>
> Wenn ich ein Dashboard lade, muss Gladys 100 Werte aus der DB abrufen, um sie dann anzuzeigen, oder?

Nein, nicht genau, das hängt vom ausgewählten Intervall ab

Hier, wenn du die letzten 24 Stunden anfordern, verwendet Gladys die stündliche Aggregation (100 Werte pro Stunde)

Über 24 Stunden bedeutet das, dass die DB 100 \* 24 = 2400 Zustände abruft, DANN eine Downsampling-Schicht auf der CPU hinzufügt, um auf 100 Zustände zu kommen, die als API-Antwort gesendet werden.

Auf deinem Diagramm zeigst du 6 Diagramme \* 2 Features = 12 Anfragen \* 2400 = 28,8k abgerufene Zustände

Also das, was du uns zeigst, wundert mich im aktuellen Zustand nicht!

Danach könnten wir die Art und Weise, wie der Filter „24h“ funktioniert, weiterentwickeln, um die tägliche Aggregation (100 Werte / Tag) zu verwenden, aber man muss sehen, wie das aussieht, es ist nicht gesagt, dass es so sauber ist wie jetzt, man muss Tests machen 🙂

Edit: das würde nicht funktionieren, siehe folgenden Post ([Dashboard - Evolutions / Bugs / etc - #134 par pierre-gilles](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/134?u=pierre-gilles))

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [3. August 2022 um 19:06 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/133 "2022-08-03T19:06:58Z")

</div>

Aaaaaaaaaaah jetzt verstehe ich besser!

Ich hatte mir gemerkt, dass es 100x Werte pro Stunde, 24 Stunden, 7 Tage usw. sind.  
Aber nein, tatsächlich ist die Aggregation auf 24 Stunden begrenzt, und dann werden alle Daten abgerufen und wie von dir beschrieben bei Bedarf berechnet.

Also ist alles völlig normal.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [4. August 2022 um 07:36 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/134 "2022-08-04T07:36:34Z")

</div>

> [@lmilcent](#):
>
> Ich hatte mir gemerkt, dass es 100x Werte über 1h, 24h, 7d usw. sind.  
> Aber nein, tatsächlich ist die Aggregation auf 24h begrenzt, und dann werden alle Daten abgerufen und wie von dir beschrieben bei Bedarf berechnet.

Nein, du hattest (fast) richtig verstanden! 🙂

Ich zitiere den Launch-Artikel:

 ![Screenshot 2022-08-04 at 09.30.46](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/9/9825806f36468f3b7050f2eefdad3f6b80aa22b1.png)

- Die stündliche Aggregation wird jede Stunde berechnet (die vorherige Stunde wird berechnet)
- Die tägliche Aggregation wird jeden Tag um Mitternacht berechnet (der vorherige Tag wird berechnet)
- Die monatliche Aggregation wird jeden 1. des Monats um Mitternacht berechnet (der vorherige Monat wird berechnet)

Aber genau, wenn man die Ansicht „letzte 24h“ anzeigt, stellen wir uns vor, du zeigst diese Ansicht um 18 Uhr an, dann ist die tägliche Aggregation des laufenden Tages noch nicht fertig (sie wird um Mitternacht berechnet), daher verwenden wir die stündliche Aggregation, die verfügbar ist.

Bei meinen Tests habe ich versucht, eine Mischung zu machen, indem ich:

Wenn du das Dashboard um 18 Uhr aufrufst:

- Von 18 Uhr bis 00 Uhr des Vortags über die tägliche Aggregation nehmen
- Von 00 Uhr bis 17 Uhr die stündliche Aggregation verwenden
- Von 17 Uhr bis 18 Uhr die Live-Daten nehmen

Aber das sieht wirklich nicht gut aus, die Datenmischung führt dazu, dass man auf dem Diagramm die „Sprünge“ sieht, es ist wirklich nicht sauber.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [5. August 2022 um 06:26 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/135 "2022-08-05T06:26:23Z")

</div>

Danke für die Erklärung, so erklärt ist das völlig logisch.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [5. August 2022 um 06:37 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/136 "2022-08-05T06:37:46Z")

</div>

Letztlich habe ich meine Dashboards so bearbeitet, dass sie standardmäßig nur die letzte Stunde anzeigen. Bei Bedarf lade ich dann die letzten 24 Stunden.  
Dadurch behalte ich eine echte Reaktionsfähigkeit und vermeide, Gladys für 10 bis 20 Sekunden zu überlasten.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [5. August 2022 um 07:16 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/137 "2022-08-05T07:16:00Z")

</div>

Sonst musst du @lmilcent investieren

> **[HPE - 826566-B21 - HP Enterprise ProLiant DL380 Gen10 Performance - S](https://www.tonitrus.com/826566-B21_4)**
>
> HPE - 826566-B21 - HP Enterprise ProLiant DL380 Gen10 Performance - Server - Rack-Montage - 2U - zweiweg - 2 x Xeon Gold 5118 / 2.3 GHz - RAM 64 GB - SATA/S

😅

Witz beiseite, aber das könnte vielleicht ein bisschen knapp für dich sein, oder?

Ich sage dir das, weil ich es getestet habe und dieses Problem nicht habe (amd64 / SSD).

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [5. August 2022 um 07:29 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/138 "2022-08-05T07:29:03Z")

</div>

Zu laut, sorry 😅

Ich habe einen Mini-PC mit SSD bekommen, also ja, das wird definitiv viel leistungsfähiger. Ich habe ihn installiert, aber ich hatte noch keine Zeit, die Gladys-Migration durchzuführen.  
Sobald das erledigt ist, gebe ich euch mein Feedback, insbesondere zu den Unterschieden in der Latenz — bei mir wird das wahrscheinlich extrem auffallen!

Danach kann ich meine RPis einfach zu RTSP-Kameras recyceln 😅

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [5. August 2022 um 14:05 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/139 "2022-08-05T14:05:25Z")

</div>

Da ist es offensichtlich die Festplatte, die bei dir der Flaschenhals ist. Bist du auf einer Micro-SD-Karte oder einer SSD? Ich erinnere mich nicht mehr. 🙂

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [5. August 2022 um 14:42 UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/140 "2022-08-05T14:42:17Z")

</div>

20 MB/s (Megabytes pro Sekunde) ist eindeutig weder HDD noch SSD 😅  
Es ist ein einfacher Raspberry Pi 4 (Raspberry Pi 4) für den Moment.

[Vorherige Seite](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150.md?page=6)

[Nächste Seite](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150.md?page=8)
