Git Product home page Git Product logo

Comments (6)

nzstaneo avatar nzstaneo commented on May 15, 2024

Friendly bump if anyone can help me, the plugin works brilliantly otherwise :)

from homebridge-wol.

AlexGustafsson avatar AlexGustafsson commented on May 15, 2024

Could it be a problem with escaped strings? Try to escape the backslash by writing \\media-pc instead.

from homebridge-wol.

nzstaneo avatar nzstaneo commented on May 15, 2024

Thanks, i can confirm in the config.json there are two backslashes \

Here's the error again (note at the bottom it shows the CMD command with \

[5/28/2019, 12:58:18 PM] [Computer] NetworkDevice "Computer" (10.1.1.153) went from status "Online" to "Shutting Down"
[5/28/2019, 12:58:18 PM] [Computer] An error occured while trying to shut down "Computer" (10.1.1.153): Error: Command failed: shutdown /s /m \media-pc -t 0
\media-pc: The network address is invalid.(1707)

at ChildProcess.exithandler (child_process.js:304:12)
at ChildProcess.emit (events.js:196:13)
at maybeClose (internal/child_process.js:1011:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5) {

killed: false,
code: 1707,
signal: null,
cmd: 'shutdown /s /m \media-pc -t 0'

from homebridge-wol.

nzstaneo avatar nzstaneo commented on May 15, 2024

Hmmm....i just noticed it here aswell, when i use dual \ it only shows one?

from homebridge-wol.

AlexGustafsson avatar AlexGustafsson commented on May 15, 2024

Could you try four? It's entirely possible that they are interpreted once when I read the config file and once when they are run as a command, meaning it could be interpreted as escaping the letter 'm'.

from homebridge-wol.

nzstaneo avatar nzstaneo commented on May 15, 2024

Thank you very much!!! It was the four I required and along the way I learnt a bit more about json files which will surely help me in the future

from homebridge-wol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.