Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Mit Uhrzeit xx:xx aus Datenfeld rechnen, z.B. 120 Minuten abziehen

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    823

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.6k

Mit Uhrzeit xx:xx aus Datenfeld rechnen, z.B. 120 Minuten abziehen

Scheduled Pinned Locked Moved Skripten / Logik
blocklyjavascriptnode-red
5 Posts 3 Posters 693 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mitch
    wrote on last edited by Mitch
    #1

    Hi,

    ich habe in einem Datenfeld eine Urzeit stehen, mit der ich rechnen möchte.

    Datenfeld-Inhalt: 20:24

    Ich möchte jetzt oben 2 Stunden abziehen.
    Also praktisch mit 18:24 weiter rechnen.
    Und um 18:24 soll dann 1x am Tag eine Aktion ausgeführt werden.

    Wenn ihr jetzt sagt, das ist mit Blocky zu umständig und Javascript ist zu bevorzugen, mache ich das natürlich.

    Ich würde mich über jeden Codeschnipsel freuen.

    Gruss,
    Mitch

    1 Reply Last reply
    0
    • iomountainI Offline
      iomountainI Offline
      iomountain
      wrote on last edited by
      #2

      Javascript, keine Ahnung

      af15a3d7-af35-4319-aaa8-60ab07777232-image.png

      Mein Blockly verstehe ich aber auch nicht, da ich um Dein Ergebnis zu bekommen 3 Stunden abziehen muss.

      M thewhoboxT 2 Replies Last reply
      0
      • iomountainI iomountain

        Javascript, keine Ahnung

        af15a3d7-af35-4319-aaa8-60ab07777232-image.png

        Mein Blockly verstehe ich aber auch nicht, da ich um Dein Ergebnis zu bekommen 3 Stunden abziehen muss.

        M Offline
        M Offline
        Mitch
        wrote on last edited by
        #3

        @iomountain Super, vielen Dank. Das sieht schonmal ganz gut aus. Ich werde das mal nach bauen.

        Wie setze ich den jetzt noch ein Cron an zu genau dieser Urzeit an. Oder ein Trigger, damit ich eine Aktion machen kann?

        Weiss das jemand?

        1 Reply Last reply
        0
        • iomountainI Offline
          iomountainI Offline
          iomountain
          wrote on last edited by
          #4

          @Mitch
          Ich glaub du brauchst da eine ganz andere Lösung.
          Vielleicht hilft es wenn du mal Dein Vorhaben skizzierst, bzw was du erreichen willst?

          1 Reply Last reply
          0
          • iomountainI iomountain

            Javascript, keine Ahnung

            af15a3d7-af35-4319-aaa8-60ab07777232-image.png

            Mein Blockly verstehe ich aber auch nicht, da ich um Dein Ergebnis zu bekommen 3 Stunden abziehen muss.

            thewhoboxT Offline
            thewhoboxT Offline
            thewhobox
            wrote on last edited by
            #5

            @iomountain Das liegt an dem Element "Datum/Zeit xx nach xx". Das berücksichtigt nicht die Sommerzeit beim umwandeln.

            Meine Adapter: emby | discovery
            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

            1 Reply Last reply
            2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Support us

            ioBroker
            Community Adapters
            Donate

            213

            Online

            32.8k

            Users

            82.7k

            Topics

            1.3m

            Posts
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
            ioBroker Community 2014-2025
            logo
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Home
            • Recent
            • Tags
            • Unread 0
            • Categories
            • Unreplied
            • Popular
            • GitHub
            • Docu
            • Hilfe