Time format when using API

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • swindive
    Azubi
    • 29.11.2024
    • 2

    #1

    Time format when using API

    Hi
    I'm writing a simpe app to allow club members to press a button on a web site which will turn the heating (comfort timer) on for 1 hour.

    I have worked out the API call, but cannot work out the time aspect of the API call.

    The API call looks like this.
    https://<IP>:<PORT>/jdev/sps/io/<controller>/override/<setting>/<time>


    Setting = 1 : Comfort Timer
    Setting = 0: Eco Timer

    If I omit the time portion then the default seems to be 23:59 on the same day.

    For today (29th November), if I use the interface and at 22:20, set the override for 10mins, I get the number 502151400. Any ideas what calculation is used to generate that number. Its clearly not epoch time.

    Thanks.

    Nick.
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11234

    #2
    This presumably is the "Loxone Epoch" from 1.1.2009.

    Here is how to convert: https://github.com/mschlenstedt/Loxb...ystem.php#L964

    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • swindive
      Azubi
      • 29.11.2024
      • 2

      #3
      Thanks for the info, I'll check it out. Much appreiated.

      Nick.

      Kommentar

      Lädt...