Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Astrodate in 24h-Format anzeigen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Astrodate in 24h-Format anzeigen

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

      Hallo, ich möchte in meiner vis Sonnenauf-/Untergang anzeigen. Ein Skript liest einmal am Tag die Daten und schreibt sie in Variablen, z.B.

        setState(idSunset, getAstroDate("sunset").toLocaleTimeString() );
      

      wobei idSunset ein DP vom Typ String ist. Im DP steht dann z.B. der Wert

      9:18:36 PM
      

      Da hätte ich gerne statt der "pm Schreibweise" das 24h Format, also in dem Fall 21:18 stehen.
      Wie und wo kann/muss ich das umsetzen?
      iob läuft in einem Debian12 Container unter proxmox, locales sind da auf de_DE.UTF-8 gesetzt und wenn ich im Container "date" eingebe, wird mir dort auch die Zeit im 24h Format angezeigt:

      root@iobroker:~# date
      Fri May 24 14:52:39 CEST 2024
      root@iobroker:~# 
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @amg_666 last edited by

        @amg_666
        Unter "javascript.0.variables.astro" stehen die Uhrzeiten im 24h-Format.

        amg_666 1 Reply Last reply Reply Quote 0
        • amg_666
          amg_666 @paul53 last edited by

          @paul53 sagte in Astrodate in 24h-Format anzeigen:

          Unter "javascript.0.variables.astro"

          oder so 🙂
          Danke

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

          Support us

          ioBroker
          Community Adapters
          Donate

          589
          Online

          32.0k
          Users

          80.5k
          Topics

          1.3m
          Posts

          2
          3
          159
          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