Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] Timestamp online umrechnen

    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

    [gelöst] Timestamp online umrechnen

    This topic has been deleted. Only users with topic management privileges can see it.
    • metaxa
      metaxa last edited by metaxa

      Es gibt etliche online Tolls um einen Unix timestamp umzurechnen. Ich bekomme aber kein plausiebles Ergebins.
      iobroker HM Aussenfühler
      94ff1634-3a00-417c-8d4d-dd8a979c37c7-image.png
      Mit Blockly ausgegeben:

      13:04:47.118	warn	javascript.0 (289581) script.js.common.000-050_System.040_Mittelwert_Aussentemp: Letzter Timestamp HM Aussenfühler: 1702105594178
      

      beliebiges Online Tool
      2d40b223-0694-4158-b95e-4247fdab120e-image.png

      Was verstehe ich oder mache ich falsch?

      ubecker 1 Reply Last reply Reply Quote 0
      • ubecker
        ubecker @metaxa last edited by

        @metaxa schneide die letzten drei Stellen ab. Das sind milli sec.

        metaxa 1 Reply Last reply Reply Quote 1
        • metaxa
          metaxa @ubecker last edited by metaxa

          @ubecker Super danke!

          ☝ Linuxtime sind Sekunden!
          ☝ Javascripttime sind Milli Sekunden!

          Mein Ziel ist den glieferten Wert von HM auf Plausibilität zu prüfen. Ich will wissen ob der angzeigte Wert (als Timestamp) nicht älter als 15 Minuten ist. Komm da aber nicht wirklich weiter.

          557d0f9e-0082-4546-8599-183ccea3c19e-image.png

          bahnuhr 1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active @metaxa last edited by

            @metaxa

            in JS:

            var startDate = new Date(getState("javascript.0.xxx").ts),
                now   = new Date(),
                differenz = (now.getTime() - startDate.getTime());
            
            metaxa 1 Reply Last reply Reply Quote 1
            • metaxa
              metaxa @bahnuhr last edited by

              @bahnuhr Lieben Dank!

              Ich habe mir meine gewünschte Funktion in Blockly zusammengeklickt 🙂

              359ab770-696d-403e-bb54-e8f40bd8f004-image.png

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

              Support us

              ioBroker
              Community Adapters
              Donate
              FAQ Cloud / IOT
              HowTo: Node.js-Update
              HowTo: Backup/Restore
              Downloads
              BLOG

              412
              Online

              31.9k
              Users

              80.2k
              Topics

              1.3m
              Posts

              timestamp
              3
              5
              401
              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