Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Cron führt aufgaben nicht aus

    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] Cron führt aufgaben nicht aus

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

      Moin,

      Ich wollte eine Zeitsteuerung per Blockly realisieren. Und zwar soll zum Sonnenuntergang ein Licht eingeschaltet werden . Um die generelle Funktion zu testen habe ich es erstmal mit einer Zeitsteuerung probiert. Der API Aufruf funktioniert im Browser, Ohne Cron funktioniert das Script auch, nur die Zeitsteuerung versagt.

      Das Blockly sieht wie folgt aus:

      schedule('{"time":{"exactTime":true,"start":"22:48"},"period":{"days":1}}', function () {
        try {
          require("request")('http://192.168.178.28/win&A=255').on("error", function (e) {console.error(e);});
        } catch (e) { console.error(e); }
        console.debug("request: " + 'http://192.168.178.28/win&A=255');
      });
      

      Noch zur Info: Astrodaten stimmen, also die Positions und Zeiteinstellungen .

      1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown last edited by

        magst Du der Einfachheit halber auch noch einen Screenshot vom Blockly reinstellen?

        1 Reply Last reply Reply Quote 0
        • Beliar_666
          Beliar_666 last edited by

          Klaro:

          fensterlicht1.PNG

          BBTown 1 Reply Last reply Reply Quote 0
          • BBTown
            BBTown @Beliar_666 last edited by BBTown

            @Beliar_666 bau doch mal einen Debug-Baustein mit ein und schau was das Log dir ausgibt

            Beliar_666 1 Reply Last reply Reply Quote 1
            • Beliar_666
              Beliar_666 @BBTown last edited by

              @BBTown hatte ich schon, mit Cron keinerlei Ausgabe, ohne Cron alles Ok.

              BBTown 1 Reply Last reply Reply Quote 0
              • BBTown
                BBTown @Beliar_666 last edited by

                @Beliar_666 nimm mal einen anderen cron ... z.B. alle 2 Minuten

                Beliar_666 1 Reply Last reply Reply Quote 1
                • Beliar_666
                  Beliar_666 @BBTown last edited by

                  @BBTown sagte in Cron führt aufgaben nicht aus:

                  @Beliar_666 nimm mal einen anderen cron ... z.B. alle 2 Minuten

                  Alle 2 min geht.

                  1 Reply Last reply Reply Quote 0
                  • Beliar_666
                    Beliar_666 last edited by

                    Danke, ich habs. Die Uhr im IoB Infotab zeigt zwar richtig an, aber die Systemzeit vom Linux stimmt nicht.

                    BBTown 1 Reply Last reply Reply Quote 0
                    • BBTown
                      BBTown @Beliar_666 last edited by

                      @Beliar_666 alles klar 👍

                      1 Reply Last reply Reply Quote 0
                      • Beliar_666
                        Beliar_666 last edited by

                        Dankesehr, manchmal kommt man alleine nicht auf die einfachsten Dinge. Der 2 min Tipp war Gold Wert!

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        831
                        Online

                        31.9k
                        Users

                        80.3k
                        Topics

                        1.3m
                        Posts

                        blockly communication
                        2
                        10
                        389
                        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