Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. WOL Skript Fehler

    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

    WOL Skript Fehler

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

      Hallo,

      ich würde gerne meinen PC mit WOL vom Google Home Mini wecken lassen. Wake on Lan funktioniert am PC mit WOL App am Handy einwandfrei. WOL Skript in ioBroker wird auch gestartet. Das Problem ist nur noch das Skript selbst. Beim kompilieren (Javascript/js) kommt folgender LOG:

      19:52:31.749 [info] javascript.0 Stop script script.js.Geräte.XX.PC.WOL

      19:52:31.768 [info] javascript.0 Start javascript script.js.Geräte.XX.PC.WOL

      19:52:31.769 [error] javascript.0 script.js.Geräte.XX.PC.WOL compile failed: at script.js.Geräte.XX.PC.WOL:5

      hier mein Skript:

      var wol = require('wake_on_lan');

      on

      (

      {id: "cloud.0.services.ifttt", change 'any'}, function (obj)

      {

      if (getState ('cloud.0.services.ifttt').val === "XX-PC WOL")

      {

      wol.wake("XX:XX:XX:XX:XX:XX");

      log('Sende WOL Paket an XX-PC.');

      }

      }

      );

      XX steht natürlich für die MAC bzw. oben für meinen Namen

      vielen Dank für die Hilfe

      1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active last edited by

        var wol = require('wake_on_lan');
        
        on({id:'cloud.0.services.ifttt', change 'any'}, function () {
           if (getState('cloud.0.services.ifttt').val === 'XX-PC WOL') {
               wol.wake('XX:XX:XX:XX:XX:XX');
               log('Sende WOL Paket an XX-PC.');
           }
        });
        
        

        so und jetzt nochmal.. in schön

        1 Reply Last reply Reply Quote 0
        • M
          Mar1u5 last edited by

          es kommt wieder der Fehler:

          20:06:51.211 [error] javascript.0 script.js.Geräte.XX.PC.WOL compile failed: at script.js.Geräte.XX.PC.WOL:3

          1 Reply Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active last edited by

            hast du auch die javainstanz kofiguriert
            1518_unbenannt.png

            1 Reply Last reply Reply Quote 0
            • M
              Mar1u5 last edited by

              Habe "change 'any'" geschrieben und es muss "change****:**** 'any'" heißen. Jetzt gehts. Ich finde übrigens mein Layout übersichtlicher

              1 Reply Last reply Reply Quote 0
              • arteck
                arteck Developer Most Active last edited by

                @Mar1u5:

                Habe "change 'any'" geschrieben und es muss "change****:**** 'any'" heißen. Jetzt gehts. Ich finde übrigens mein Layout übersichtlicher `

                jedem das seine.. kleiner Padawan :lol: :lol:

                1 Reply Last reply Reply Quote 0
                • M
                  Mar1u5 last edited by

                  @arteck:

                  hast du auch die javainstanz kofiguriert `

                  nein, ging aber anscheinend auch ohne. danke trotzdem euch beiden

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  476
                  Online

                  31.7k
                  Users

                  79.9k
                  Topics

                  1.3m
                  Posts

                  2
                  7
                  592
                  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