Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. offline - script schalten...

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    offline - script schalten...

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

      @sralus sagte: von online auf offline springt mein script ausgeführt wird

      Versuche es mal so:

      Blockly_temp.JPG

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

        @paul53
        Danke für deine Antwort

        Ich habe es nun so aussehenes.jpg
        Leider funktioniert es (noch nicht)

        Gruß
        Sralus

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

          @sralus sagte: Leider funktioniert es (noch nicht)

          Wert darf keine selbst erstellte Variable sein, sondern man findet sie unter "Trigger".

          Blockly_DP_Props.JPG

          sralus 2 Replies Last reply Reply Quote 0
          • sralus
            sralus @paul53 last edited by

            @paul53
            ok
            habe ich geändert. Ausgabe im LOG:

            javascript.0
            	2023-11-08 22:56:45.639	info	State value to set for "javascript.0.scriptEnabled.ESP32" has to be stringified but received type "boolean"
            javascript.0
            	2023-11-08 22:56:45.636	info	script.js.ESP32: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
            javascript.0
            	2023-11-08 22:56:45.631	info	Start javascript script.js.ESP32
            

            Leider immer noch nicht richtig...

            Gruß
            Sralus

            sralus 1 Reply Last reply Reply Quote 0
            • sralus
              sralus @sralus last edited by

              @sralus

              Danke es geht nun !!

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

                @paul53
                Hallo
                im Log kommt wenn ich mein ESP von hand ausschalte:

                javascript.0
                	2023-11-09 21:19:40.945	info	script.js.common.ESP_on: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                javascript.0
                	2023-11-09 21:19:40.944	info	script.js.common.ESP_on: exec: sudo uhubctl -l 1-1.2 -p 3 -a 1
                javascript.0
                	2023-11-09 21:19:40.909	info	Start javascript script.js.common.ESP_on
                

                Soweit so gut .. leider wird der exec befehl von IOBroker nicht an meinem Raspberry pi übermittelt.
                Wenn ich den befehl im Terminal ausführe geht es,

                Woran kann es liegen ?

                MFG

                paul53 E 2 Replies Last reply Reply Quote 0
                • paul53
                  paul53 @sralus last edited by

                  @sralus sagte: leider wird der exec befehl von IOBroker nicht an meinem Raspberry pi übermittelt.

                  Bei "exec" kann ich nicht helfen.

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

                    @paul53
                    ok ...
                    Gäbe es eine alternative um mein scriot zu starten ,,,

                    Also nicht über online/offline?
                    aaaa.jpg
                    SOndt müsste ich mal schauen welche alternative es noch gäbe um den status zu überwachen..

                    Vielen Dank vorab

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      emil70 @sralus last edited by

                      @sralus
                      Hast du den beim Javascript Adapter einen Hacken drin bei

                      Komando"exec"erlauben
                      
                      sralus 1 Reply Last reply Reply Quote 0
                      • sralus
                        sralus @emil70 last edited by

                        @emil70

                        ja habe ich

                        1 Reply Last reply Reply Quote 0
                        • E
                          emil70 @sralus last edited by emil70

                          hat sich erledigt

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

                            @emil70
                            hab es nun am rennen - unter /etc/sudoers.d eine custom_iobroker Datei angelegt mit folgendem Inhalt:
                            iobroker ALL=(ALL) NOPASSWD

                            Jetzt kann iobroker das script ausführen ...

                            Es gäbe bestimmt elegantere lösungen aber für mich ist es so ok ..

                            Danke an alle die mir infos und hilfe gegeben haben...

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            737
                            Online

                            32.0k
                            Users

                            80.4k
                            Topics

                            1.3m
                            Posts

                            blockly javascript
                            3
                            13
                            576
                            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