Skip to content

Grafana

255 Themen 4.4k Beiträge

NEWS

  • Ab Wert x soll sich Linienfarbe ändern

    9
    0 Stimmen
    9 Beiträge
    765 Aufrufe
    W
    @mickemup @wolfi913 Schade... ja mal schauen was ich mir da bastle. Der Eigenverbrauch ist noch "leicht", aber jetzt zu unterscheiden was vom Akku und was direkt von PV kommt... Diesen grausamen eCharts will ich loswerden und da addiere ich halt die Akkuladung zum Hausverbrauch. Der Wert an sich ist natürlich falsch, aber so habe ich optisch was in Akku, was ins Netz und was ins Haus geht.
  • Grafana Darstellung Soll / Ist aus Influx DB

    Verschoben
    3
    1
    0 Stimmen
    3 Beiträge
    370 Aufrufe
    S
    @mickemup Danke für den Hinweis und jetzt ist es mir soweit klar. Gedanklich hatte ich zudem einen Fehler, den ich nach den händischen CSV Upload mit historischen Daten in der 2. Datenreihe "WPH_Tag" erkannt hatte. Grafana macht für den laufenden Monat/Tag immer diese aufgeklappte Anzeige, erst nach Monats-/Tagesende ist es bereinigt. [image: 1740310403686-0cbbd743-e750-4f74-bd20-3bc221dd5596-image.png]
  • Solcast JSON in Grafana darstellen

    Verschoben
    22
    1
    0 Stimmen
    22 Beiträge
    2k Aufrufe
    N
    @icebear Alles ist gut! Nachdem ich meine Grafiken eine Zeit habe ruhen lassen, entdecke ich zufällig in der Legende den Wert "PV-forecast y". Bei einem genauen Blick auf die dargestellten Werte ist erkennbar, dass diese die Einheit "Wh" haben. Eine Multiplikation mit einer Transformation mit dem Faktor 1000 ergibt nun die korrekten Werte, die nun auch in dem Panel erkennbar sind. Dort habe ich noch beide Werte zur Info belassen. Dass die Funktion bislang im Rahmen unseres Austauschs nicht erkennbar waren führe ich darauf zurück, dass die Prognoswerte nicht kontinuierlich, sondern nur stündlich existieren. Leider passen die Prognosewerte noch nicht zu den Istwerten, aber das ist ein anderes Thema. [image: 1739892245105-semifinales-panel-grafana.jpg] Ich danke allen, die mir auf die Sprünge geholfen haben, das Thema stand schon lange auf der todo-Liste!
  • Zeitpunkt Minimum Temperatur

    Verschoben zeitstempel
    7
    0 Stimmen
    7 Beiträge
    644 Aufrufe
    mickemupM
    @musicnrw Sieht doch grob schonmal ganz OK aus :-) Mit overrides könntest du noch anstatt dem Datum nur die Zeit anzeigen lassen. Und ist indivuell: aber ich würde dann bei aktueller Temperatur auch gleich den Timestamp anzeigen lassen. Dann ists einheitlich und siehst auch wirklich wann das letzte mal was gemessen wurde. Gruess
  • Stapel-Balkengrafik mit Grafana

    Verschoben
    76
    1
    0 Stimmen
    76 Beiträge
    8k Aufrufe
    mickemupM
    @laser Habe es gerade nicht vor mir, aber denke es ist so wie du gesagt hast. Bei nur einem Query ist nur Value verfügbar. ab mehreren gibt es ja mehrere "values" und dann wählst du via die Bezeichnung aus. Gruess
  • Bar Chart: Bars nebeneinander?

    11
    1
    0 Stimmen
    11 Beiträge
    763 Aufrufe
    Merlin123M
    @wolfi913 Hab es nochmal mit nem neuen und einer "großen" Query probiert, leider selber Effekt :( Dank Dir trotzdem für Deine Hilfe!
  • Grafana restore nach Umzug auf Wyse-Box

    Verschoben
    6
    1
    0 Stimmen
    6 Beiträge
    483 Aufrufe
    P
    @marc-berg ... ich habs geahnt :man-facepalming: ... Eigentlich ganz einfach, aber man muss es wissen. Jedenfalls vielen Dank, es hat alles geklappt.
  • Grafana Sun and Moon

    Verschoben
    3
    2
    0 Stimmen
    3 Beiträge
    350 Aufrufe
    CodierknechtC
    @jo46 Du könntest Dir auch einfach deren JSON runterladen ;-) https://grafana.com/grafana/dashboards/630-sun-and-moon-datasource/ Oder für ganz faule (bereits übersetzt) :grin: Spoiler { "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "enable": true, "hide": false, "iconColor": "rgb(238, 139, 9)", "mappings": {}, "name": "Sonnenauf / -untergang", "target": { "refId": "annotation_query", "target": [ "sunrise", "sunset" ] } }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "enable": false, "hide": false, "iconColor": "rgb(21, 101, 224)", "mappings": {}, "name": "Mondauf / -untergang", "target": { "refId": "annotation_query", "target": [ "moonrise", "moonset" ] } }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "enable": false, "hide": false, "iconColor": "rgb(98, 164, 0)", "mappings": {}, "name": "Goldene Stunde", "target": { "refId": "annotation_query", "target": [ "goldenHour" ] } }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "enable": true, "hide": false, "iconColor": "#7e7e7f", "mappings": {}, "name": "Mittag / Mitternacht", "target": { "refId": "annotation_query", "target": [ "noon", "midnight" ] } } ] }, "description": "This dashboard demonstrates the usage of the Sun and Moon Datasource Plugin.", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 13, "links": [], "panels": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "super-light-orange", "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "time: HH:mm" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 0, "y": 0 }, "id": 5, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^Time$/", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "sunrise" ] } ], "title": "Sonnenaufgang", "type": "stat" }, { "datasource": { "type": "datasource", "uid": "-- Mixed --" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "light-red", "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "time: HH:mm" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 3, "y": 0 }, "id": 6, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^Time$/", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "sunset" ] } ], "title": "Sonnenuntergang", "type": "stat" }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "light-yellow", "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 6, "y": 0 }, "id": 8, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "sun_azimuth" ] } ], "title": "Sonne Azimuth", "type": "stat" }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "description": "", "fieldConfig": { "defaults": { "color": { "fixedColor": "blue", "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "percentage", "steps": [ { "color": "dark-blue", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 9, "y": 0 }, "id": 3, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": false, "sizing": "auto", "text": {} }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "moon_illumination" ] } ], "title": "Mond Beleuchtung", "type": "gauge" }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "light-blue", "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "time: HH:mm" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 12, "y": 0 }, "id": 9, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^Time$/", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "moonrise" ] } ], "title": "Mondaufgang", "type": "stat" }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "semi-dark-blue", "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "time: HH:mm" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 15, "y": 0 }, "id": 10, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^Time$/", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "moonset" ] } ], "title": "Monduntergang", "type": "stat" }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "blue", "mode": "fixed" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 18, "y": 0 }, "id": 11, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "moon_azimuth" ] } ], "title": "Mond Azimuth", "type": "stat" }, { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "degree" }, "overrides": [ { "matcher": { "id": "byName", "options": "Moon altitude" }, "properties": [ { "id": "color", "value": { "fixedColor": "#447EBC", "mode": "fixed", "seriesBy": "min" } }, { "id": "displayName", "value": "Mond" } ] }, { "matcher": { "id": "byName", "options": "Sun altitude" }, "properties": [ { "id": "color", "value": { "fixedColor": "#CCA300", "mode": "fixed" } }, { "id": "displayName", "value": "Sonne" } ] }, { "matcher": { "id": "byName", "options": "Moon illumination" }, "properties": [ { "id": "color", "value": { "fixedColor": "light-blue", "mode": "fixed" } }, { "id": "displayName", "value": "Beleuchtung" } ] } ] }, "gridPos": { "h": 13, "w": 21, "x": 0, "y": 4 }, "id": 1, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "11.5.1", "targets": [ { "datasource": { "type": "fetzerch-sunandmoon-datasource", "uid": "dec4um3aintogf" }, "refId": "A", "target": [ "sun_altitude", "moon_altitude", "moon_illumination" ] } ], "title": "Position Sonne / Mond", "type": "timeseries" } ], "preload": false, "refresh": "", "schemaVersion": 40, "tags": [], "templating": { "list": [] }, "time": { "from": "now-7d", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Astronomie", "uid": "000000009", "version": 6, "weekStart": "" }
  • Vis + Grafana

    Verschoben
    5
    2
    0 Stimmen
    5 Beiträge
    594 Aufrufe
    T
    Hallo zusammen, ich konnte es lösen: [image: 1738141277070-19e3585d-dd03-4720-bd8c-bba3a2d2d8e7-grafik.png] Die rot eingekreiste Widgetbreite im CSS Allgemein - Register auf 2060 gestellt, mein RaspberryPI 7"-Display kann zwar nur 800px, aber dann bricht es nicht mehr um, sodern stellt es so dar, wie in Grafana angelegt. Vielleicht hilft es jemand weiter... Grüße!
  • Grafana Visualisierung

    grafana influxdb opendtu solar
    6
    3
    0 Stimmen
    6 Beiträge
    448 Aufrufe
    mickemupM
    Probier mal das aus: import "date" import "timezone" option location = timezone.location(name: "Europe/Madrid") from(bucket: "iobroker") |> range(start: 2024-12-31T23:00:00Z, stop: 2025-01-25T16:00:26.485Z) |> filter(fn: (r) => r["_measurement"] == "Tagesaktuell") |> filter(fn: (r) => r["_field"] == "value") |> filter(fn: (r) => r["_value"] != 0) // Filtere 0-Werte aus (aus meiner Sicht unnötig) |> aggregateWindow(every: 1d, fn: last, timeSrc: "_start") // Maximalwert pro Tag (aber Zeitstempfel auf start von Tag) |> yield(name: "max_per_day") Pack doch dein Code in CodeTags das nächste mal. :-) Hast du Range Start und range stop bewusst "festgeschrieben"? Meine Annahmen: Du Willst ein Wert (Das Total) pro Tag darstellen Deine Soucre summiert pro Tag auf und wird regelmässig geloggt Deine Source wird um Mitternacht genullt und fängt wieder an hochzuzählen
  • Darstellung Grafana Vis

    8
    2
    0 Stimmen
    8 Beiträge
    603 Aufrufe
    S
    @icebear Das würde mir auch passen. Danke für den Tipp.
  • JSON in Grafana einbinden

    Verschoben
    39
    0 Stimmen
    39 Beiträge
    3k Aufrufe
    CodierknechtC
    @stefu87_ch Mit 'ner DB machst Du Dir das Leben einfacher. Was, wenn Du am Ende des Jahres die Verbräuche gerne für einen bislang nicht berücksichtigten Zeitraum aggregiert hättest? Im Nachhinein bist Du mit der Script-Lösung in den Allerwertesten gekniffen. Eine DB fragt man einfach etwas anders ab und gruppiert über einen anderen Zeitraum ... fertig. Nur so als Denkanstoß ;-)
  • [gelöst] Zugriff auf eine MariaDB

    24
    1
    0 Stimmen
    24 Beiträge
    1k Aufrufe
    BananaJoeB
    @codierknecht da war deine Antwort an mich gleich doppelt gut! So eine einfach Erklärung hätte ich damals gebraucht.
  • Jahresübersicht mit Zeitversatz (Apr-Mär)

    1
    0 Stimmen
    1 Beiträge
    168 Aufrufe
    Niemand hat geantwortet
  • Hinweise zu Grafana 11.3.0-01

    48
    3 Stimmen
    48 Beiträge
    7k Aufrufe
    S
    @wolfi913 2 Tage meines Lebens verschwendet um dann hier die Lösung zu finden :expressionless: Vielen Dank! Wenn mir jetzt noch einer sagen kann wie ich den daraus resultierenden riesigen Rand loswerde..?! VG Frank
  • Grafana - Einheit nur auf Y-Achse ausblenden

    Verschoben
    1
    0 Stimmen
    1 Beiträge
    195 Aufrufe
    Niemand hat geantwortet
  • Grafana Werte zur gleichen Zeit

    17
    4
    0 Stimmen
    17 Beiträge
    1k Aufrufe
    mickemupM
    @endurance Sehr schön.... Ist das in etwas so, wie du es haben willst? Balkenbreite kann man sicher noch was in den Einstellungen rausholen, ist aber nur noch feintuning :-) Pack mal an den Beginn der Queries noch nach hin: import "date" import "timezone" option location = timezone.location(name: "Europe/Madrid") Sonst sind die Daten verschoben (in deinem Fall 2h) und nicht am korrekten Tag abgebildet...
  • absolute Zeitbereiche in der URL (Grafana) angeben

    7
    0 Stimmen
    7 Beiträge
    912 Aufrufe
    M
    @legro Danke dir. Ich hatte den Eintrag "_dash.hideTimePicker" nicht genutzt. Das werde ich mal eintragen. Ich wünsche dir noch ein frohes Fest.
  • Grafana Dashboards in HabPanel nicht angezeigt

    2
    2
    0 Stimmen
    2 Beiträge
    202 Aufrufe
    W
    @wibear Gelöst: # set to true if you want to allow … allow_embedding = true
  • Fehler bei Wiederherstellung von Grafana

    36
    0 Stimmen
    36 Beiträge
    3k Aufrufe
    W
    Hallo @simatec Bei der Wiederherstellung von Grafana werden reproduzierbar die Ordner als Dashoards widerhergestellt. Ferner werden keine Einstellungen des Alerting inkl. Alerts selbst übertragen. Danke für Deine Mühe und Grüße

740

Online

32.6k

Benutzer

82.1k

Themen

1.3m

Beiträge