Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Grafana
    5. grafana - today() startet tag bei 02:00

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    grafana - today() startet tag bei 02:00

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CoComp @SpacerX last edited by

      @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 Reply Quote 0
      • S
        SpacerX @CoComp last edited by

        @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.🤔

        C 1 Reply Last reply Reply Quote 0
        • C
          CoComp @SpacerX last edited by

          @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.🤔

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

          S 1 Reply Last reply Reply Quote 0
          • S
            SpacerX @CoComp last edited by

            @cocomp wie ist den deine Default Timezone gesetzt?

            C 1 Reply Last reply Reply Quote 0
            • C
              CoComp @SpacerX last edited by

              @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 Reply Quote 0
              • S
                SpacerX @CoComp last edited by 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 1 Reply Last reply Reply Quote 0
                • C
                  CoComp @SpacerX last edited by CoComp

                  @spacerx

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

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SpacerX @CoComp last edited by

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

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      CoComp @SpacerX last edited by

                      @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 Reply Quote 0
                      • S
                        SpacerX @CoComp last edited by

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

                        1 Reply Last reply Reply Quote 0
                        • C
                          CoComp last edited by

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

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          483
                          Online

                          31.9k
                          Users

                          80.2k
                          Topics

                          1.3m
                          Posts

                          4
                          22
                          3295
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo