Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Off Topic
  4. Grafana
  5. grafana - today() startet tag bei 02:00

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    12
    1
    135

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

grafana - today() startet tag bei 02:00

Scheduled Pinned Locked Moved Grafana
22 Posts 4 Posters 4.3k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C CoComp

    @spacerx Das ist korrekt, die Ergebnistabelle zeigt, wie das Diagramm, Werte ab 02:00.
    3d5e9796-656f-49b9-97a8-03d734073725-image.png

    Aber warum "filtert" today() in der Range die Zeit zwischen 00:00 01:59 raus?

    Hier das komplette JSON

    {
      "id": 35,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "type": "timeseries",
      "title": "Panel Title",
      "datasource": {
        "type": "influxdb",
        "uid": "D84bEx3nz"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "stepAfter",
            "barAlignment": 0,
            "lineWidth": 1,
            "fillOpacity": 0,
            "gradientMode": "none",
            "spanNulls": false,
            "showPoints": "auto",
            "pointSize": 5,
            "stacking": {
              "mode": "none",
              "group": "A"
            },
            "axisPlacement": "auto",
            "axisLabel": "",
            "scaleDistribution": {
              "type": "linear"
            },
            "hideFrom": {
              "tooltip": false,
              "viz": false,
              "legend": false
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "options": {
        "tooltip": {
          "mode": "single",
          "sort": "none"
        },
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "calcs": []
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "D84bEx3nz"
          },
          "query": "import \"timezone\"\r\noption location = timezone.location(name: \"Europe/Berlin\")\r\nfrom(bucket: \"nodered\")\r\n  |> range(start: today())\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"KG.hz.SZ_A_Plus15\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"value\")",
          "refId": "A"
        }
      ]
    }
    
    Thomas BraunT Online
    Thomas BraunT Online
    Thomas Braun
    Most Active
    wrote on last edited by
    #4

    @cocomp

    Da wird in einem System die falsche/keine Zeitzone gesetzt sein. Ab nächsten Sonntag ist die Abweichung nur noch 1 Stunde. :-)

    Linux-Werkzeugkasten:
    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
    NodeJS Fixer Skript:
    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

    C 1 Reply Last reply
    0
    • Thomas BraunT Thomas Braun

      @cocomp

      Da wird in einem System die falsche/keine Zeitzone gesetzt sein. Ab nächsten Sonntag ist die Abweichung nur noch 1 Stunde. :-)

      C Offline
      C Offline
      CoComp
      wrote on last edited by CoComp
      #5

      @thomas-braun War auch meine erste Idee, aber wo?

      Die Datenquelle ist nutzt UTC. Stelle ich das grafana-dashboard auf UTC um, beginnt die Query mit today () nicht mehr um 02:00 sondern um 00:00.

      Also scheint durch today () der Tag nicht mit der deutschen Zeit 00:00 sondern mit UTC 00:00 zu beginnen, was dann ja der deutschen Zeit 02:00 entspricht...

      HomoranH 1 Reply Last reply
      0
      • C CoComp

        @thomas-braun War auch meine erste Idee, aber wo?

        Die Datenquelle ist nutzt UTC. Stelle ich das grafana-dashboard auf UTC um, beginnt die Query mit today () nicht mehr um 02:00 sondern um 00:00.

        Also scheint durch today () der Tag nicht mit der deutschen Zeit 00:00 sondern mit UTC 00:00 zu beginnen, was dann ja der deutschen Zeit 02:00 entspricht...

        HomoranH Do not disturb
        HomoranH Do not disturb
        Homoran
        Global Moderator Administrators
        wrote on last edited by
        #6

        @cocomp sagte in grafana - today() startet tag bei 02:00:

        mit UTC 00:00 zu beginnen, was dann ja der deutschen Zeit 00:00 entspricht...

        enäää!

        heute ist 0:00Z (UTC) 02:00 MESZ

        kein Support per PN! - Fragen im Forum stellen -

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        ioBroker freut sich auch über eine Spende für das Forum. Benutzt dazu den Spendenbutton im Header. Danke!

        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        C 1 Reply Last reply
        0
        • HomoranH Homoran

          @cocomp sagte in grafana - today() startet tag bei 02:00:

          mit UTC 00:00 zu beginnen, was dann ja der deutschen Zeit 00:00 entspricht...

          enäää!

          heute ist 0:00Z (UTC) 02:00 MESZ

          C Offline
          C Offline
          CoComp
          wrote on last edited by CoComp
          #7

          @homoran Jupp, Schreibfehler bei mir.

          00:00 UTC ist 02:00 deutsche Zeit ;-) Habe ich in meinem Post geändert.

          Das Problem scheint aber today() zu sein, denn eigentlich sollte die Tabelle / Darstellung mit 00:00 beginnen:
          https://github.com/grafana/grafana/issues/43378

          S 1 Reply Last reply
          0
          • C CoComp

            @homoran Jupp, Schreibfehler bei mir.

            00:00 UTC ist 02:00 deutsche Zeit ;-) Habe ich in meinem Post geändert.

            Das Problem scheint aber today() zu sein, denn eigentlich sollte die Tabelle / Darstellung mit 00:00 beginnen:
            https://github.com/grafana/grafana/issues/43378

            S Offline
            S Offline
            SpacerX
            wrote on last edited by SpacerX
            #8

            @cocomp das habe ich auch so nachgelesen.

            dann bleibt dir noch:

            option location = timezone.fixed(offset: -Xh)
            

            und damit die Zeit selber hin rücken damit du today() benutzen kannst.

            DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

            HomoranH C 2 Replies Last reply
            0
            • S SpacerX

              @cocomp das habe ich auch so nachgelesen.

              dann bleibt dir noch:

              option location = timezone.fixed(offset: -Xh)
              

              und damit die Zeit selber hin rücken damit du today() benutzen kannst.

              HomoranH Do not disturb
              HomoranH Do not disturb
              Homoran
              Global Moderator Administrators
              wrote on last edited by
              #9

              @spacerx sagte in grafana - today() startet tag bei 02:00:

              @cocomp d

              ist das Kunst oder kann das weg :joy:

              kein Support per PN! - Fragen im Forum stellen -

              Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

              ioBroker freut sich auch über eine Spende für das Forum. Benutzt dazu den Spendenbutton im Header. Danke!

              der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

              S C 2 Replies Last reply
              0
              • HomoranH Homoran

                @spacerx sagte in grafana - today() startet tag bei 02:00:

                @cocomp d

                ist das Kunst oder kann das weg :joy:

                S Offline
                S Offline
                SpacerX
                wrote on last edited by
                #10

                @homoran Ha ha Hi Hi

                Da haben die Finger über der Maus gezittert. :joy:

                DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

                1 Reply Last reply
                0
                • HomoranH Homoran

                  @spacerx sagte in grafana - today() startet tag bei 02:00:

                  @cocomp d

                  ist das Kunst oder kann das weg :joy:

                  C Offline
                  C Offline
                  CoComp
                  wrote on last edited by CoComp
                  #11

                  @homoran Das ist Kunst, kannst du aber gern nutzen ;-)

                  1 Reply Last reply
                  0
                  • S SpacerX

                    @cocomp das habe ich auch so nachgelesen.

                    dann bleibt dir noch:

                    option location = timezone.fixed(offset: -Xh)
                    

                    und damit die Zeit selber hin rücken damit du today() benutzen kannst.

                    C Offline
                    C Offline
                    CoComp
                    wrote on last edited by
                    #12

                    @spacerx said in grafana - today() startet tag bei 02:00:

                    @cocomp das habe ich auch so nachgelesen.

                    dann bleibt dir noch:

                    option location = timezone.fixed(offset: -Xh)
                    

                    und damit die Zeit selber hin rücken damit du today() benutzen kannst.

                    Das wird immer kurioser, denn das verändert nichts...

                    S 1 Reply Last reply
                    0
                    • C CoComp

                      @spacerx said in grafana - today() startet tag bei 02:00:

                      @cocomp das habe ich auch so nachgelesen.

                      dann bleibt dir noch:

                      option location = timezone.fixed(offset: -Xh)
                      

                      und damit die Zeit selber hin rücken damit du today() benutzen kannst.

                      Das wird immer kurioser, denn das verändert nichts...

                      S Offline
                      S Offline
                      SpacerX
                      wrote on last edited by
                      #13

                      @cocomp ich bin jetzt auch mal an den Rechner gesprungen und hab das mit den Werten von meinem Stromzähler mal getestet.

                      import "timezone" // import wegen der Berechnung um 02:00:00
                      option location = timezone.location(name: "Europe/Berlin")
                      from(bucket: "ioBroker")
                        |> range(start: today())
                        |> filter(fn: (r) => r["_measurement"] == "Vb_Stromzaehler")
                        |> filter(fn: (r) => r["from"] == "system.adapter.javascript.0")
                      

                      SnipSnap_1.PNG

                      Macht genauso, wie es soll.:thinking_face:

                      DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

                      C 1 Reply Last reply
                      0
                      • S SpacerX

                        @cocomp ich bin jetzt auch mal an den Rechner gesprungen und hab das mit den Werten von meinem Stromzähler mal getestet.

                        import "timezone" // import wegen der Berechnung um 02:00:00
                        option location = timezone.location(name: "Europe/Berlin")
                        from(bucket: "ioBroker")
                          |> range(start: today())
                          |> filter(fn: (r) => r["_measurement"] == "Vb_Stromzaehler")
                          |> filter(fn: (r) => r["from"] == "system.adapter.javascript.0")
                        

                        SnipSnap_1.PNG

                        Macht genauso, wie es soll.:thinking_face:

                        C Offline
                        C Offline
                        CoComp
                        wrote on last edited by
                        #14

                        @spacerx said in grafana - today() startet tag bei 02:00:

                        @cocomp ich bin jetzt auch mal an den Rechner gesprungen und hab das mit den Werten von meinem Stromzähler mal getestet.

                        import "timezone" // import wegen der Berechnung um 02:00:00
                        option location = timezone.location(name: "Europe/Berlin")
                        from(bucket: "ioBroker")
                          |> range(start: today())
                          |> filter(fn: (r) => r["_measurement"] == "Vb_Stromzaehler")
                          |> filter(fn: (r) => r["from"] == "system.adapter.javascript.0")
                        

                        SnipSnap_1.PNG

                        Macht genauso, wie es soll.:thinking_face:

                        Das ist wirklich kurios, dann werde ich mal weiter forschen gehen...
                        Danke trotzdem für die Mühe...

                        S 1 Reply Last reply
                        0
                        • C CoComp

                          @spacerx said in grafana - today() startet tag bei 02:00:

                          @cocomp ich bin jetzt auch mal an den Rechner gesprungen und hab das mit den Werten von meinem Stromzähler mal getestet.

                          import "timezone" // import wegen der Berechnung um 02:00:00
                          option location = timezone.location(name: "Europe/Berlin")
                          from(bucket: "ioBroker")
                            |> range(start: today())
                            |> filter(fn: (r) => r["_measurement"] == "Vb_Stromzaehler")
                            |> filter(fn: (r) => r["from"] == "system.adapter.javascript.0")
                          

                          SnipSnap_1.PNG

                          Macht genauso, wie es soll.:thinking_face:

                          Das ist wirklich kurios, dann werde ich mal weiter forschen gehen...
                          Danke trotzdem für die Mühe...

                          S Offline
                          S Offline
                          SpacerX
                          wrote on last edited by
                          #15

                          @cocomp wie ist den deine Default Timezone gesetzt?

                          DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

                          C 1 Reply Last reply
                          0
                          • S SpacerX

                            @cocomp wie ist den deine Default Timezone gesetzt?

                            C Offline
                            C Offline
                            CoComp
                            wrote on last edited by
                            #16

                            @spacerx said in grafana - today() startet tag bei 02:00:

                            @cocomp wie ist den deine Default Timezone gesetzt?

                            Europe / Berlin - sowohl global für grafana als auch im Dashboard. Und die UTC-Zeitstempel in der Influx2DB stimmen.

                            Was mich halt stutzig macht, dass der feste timeslot in Verbindung mit

                            from(bucket: "nodered")
                              |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
                              |> filter(fn: (r) => r["_measurement"] == "KG.hz.SZ_A_Plus15")
                              |> filter(fn: (r) => r["_field"] == "value")
                            

                            das gewünschte Ergebnis bringt.

                            S 1 Reply Last reply
                            0
                            • C CoComp

                              @spacerx said in grafana - today() startet tag bei 02:00:

                              @cocomp wie ist den deine Default Timezone gesetzt?

                              Europe / Berlin - sowohl global für grafana als auch im Dashboard. Und die UTC-Zeitstempel in der Influx2DB stimmen.

                              Was mich halt stutzig macht, dass der feste timeslot in Verbindung mit

                              from(bucket: "nodered")
                                |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
                                |> filter(fn: (r) => r["_measurement"] == "KG.hz.SZ_A_Plus15")
                                |> filter(fn: (r) => r["_field"] == "value")
                              

                              das gewünschte Ergebnis bringt.

                              S Offline
                              S Offline
                              SpacerX
                              wrote on last edited by SpacerX
                              #17

                              @cocomp hier mal ein Ausschnitt, das hab ich bei dir nicht so gesehen.

                              SnipSnap_1.PNG

                              Sicher das deine Zeitzone in deinem System stimmt?

                              DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

                              C 1 Reply Last reply
                              0
                              • S SpacerX

                                @cocomp hier mal ein Ausschnitt, das hab ich bei dir nicht so gesehen.

                                SnipSnap_1.PNG

                                Sicher das deine Zeitzone in deinem System stimmt?

                                C Offline
                                C Offline
                                CoComp
                                wrote on last edited by CoComp
                                #18

                                @spacerx

                                So sieht das bei mir aus:
                                96ada0f8-ed2a-49cd-b7a8-59becfc87d60-image.png

                                S 1 Reply Last reply
                                0
                                • C CoComp

                                  @spacerx

                                  So sieht das bei mir aus:
                                  96ada0f8-ed2a-49cd-b7a8-59becfc87d60-image.png

                                  S Offline
                                  S Offline
                                  SpacerX
                                  wrote on last edited by
                                  #19

                                  @cocomp mal eine andere Frage, wie kommt das timeshift -0m da hin.
                                  Das kann ich gar nicht eingeben.

                                  DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

                                  C 1 Reply Last reply
                                  0
                                  • S SpacerX

                                    @cocomp mal eine andere Frage, wie kommt das timeshift -0m da hin.
                                    Das kann ich gar nicht eingeben.

                                    C Offline
                                    C Offline
                                    CoComp
                                    wrote on last edited by
                                    #20

                                    @spacerx Das stammt aus meiner "mal was ausprobieren-phase" von heute Nachmittag. Normal steht da 1h
                                    00fa5f10-1926-4d1b-b0f5-f1f612bb5307-image.png

                                    S 1 Reply Last reply
                                    0
                                    • C CoComp

                                      @spacerx Das stammt aus meiner "mal was ausprobieren-phase" von heute Nachmittag. Normal steht da 1h
                                      00fa5f10-1926-4d1b-b0f5-f1f612bb5307-image.png

                                      S Offline
                                      S Offline
                                      SpacerX
                                      wrote on last edited by
                                      #21

                                      @cocomp bist du nun der Sache auf die Schliche gekommen?

                                      DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

                                      1 Reply Last reply
                                      0
                                      • C Offline
                                        C Offline
                                        CoComp
                                        wrote on last edited by
                                        #22

                                        @spacerx Noch nicht, dieses Wochenende will ich es lösen.

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        546

                                        Online

                                        32.7k

                                        Users

                                        82.4k

                                        Topics

                                        1.3m

                                        Posts
                                        Community
                                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                        ioBroker Community 2014-2025
                                        logo
                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Home
                                        • Recent
                                        • Tags
                                        • Unread 0
                                        • Categories
                                        • Unreplied
                                        • Popular
                                        • GitHub
                                        • Docu
                                        • Hilfe