Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Iobroker und MySQL Zeitstempel

    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

    Iobroker und MySQL Zeitstempel

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

      Hallo zusammen!

      Habe einen Homematic Aktor im Einsatz und der Zustand wir in eine MySQL Datenbank mitgeschrieben.

      Möchte eine Auswertung machen, wie lange das Licht an war und den Stromverbrauch der Lampe errechnen.

      Nur leider weiß nicht, was für ein Zeitstempel benutzt wird und wie ich das Ganze dann in Minuten umrechne:

      mysql> select * from ts_bool where id ="60" limit 6;

      +–--+---------------+------+------+-------+------+

      | id | ts | val | ack | _from | q |

      +–--+---------------+------+------+-------+------+

      | 60 | 1510555372686 | 1 | 1 | 1 | 0 |

      | 60 | 1510555432414 | 0 | 1 | 1 | 0 |

      | 60 | 1510555567688 | 1 | 1 | 1 | 0 |

      | 60 | 1510555627385 | 0 | 1 | 1 | 0 |

      | 60 | 1510555687645 | 1 | 1 | 1 | 0 |

      | 60 | 1510555747378 | 0 | 1 | 1 | 0 |

      +----+---------------+------+------+-------+------+

      6 rows in set (0.00 sec)

      1 Reply Last reply Reply Quote 0
      • H
        HomematicGuru last edited by

        Hat sich erledigt.

        Der Zeitstempel sind die Millisekunden nach 1970.

        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

        781
        Online

        31.9k
        Users

        80.2k
        Topics

        1.3m
        Posts

        1
        2
        342
        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