Git Product home page Git Product logo

Comments (8)

AtmanActive avatar AtmanActive commented on May 30, 2024

Just to confirm, for my use case, sleep is useless.

Kids left 'Lego Marvel' on pause, TV got turned OFF, MikroTik sent REST sleep command, the machine went to sleep, but a day later when we wanted it back on, we were greeted with a lovely 'Lego Marvel has stopped working' window.

So, this usage scenario 'windows as a console' really needs shutdown, not sleep.

Thanks.

from sleep-on-lan.

AtmanActive avatar AtmanActive commented on May 30, 2024

New debug info:

Custom commands DO work when I start sol.exe from command prompt.
Custom commands DO NOT work when sol.exe runs as a service via NSSM (privileges?).

Hope this helps.

from sleep-on-lan.

AtmanActive avatar AtmanActive commented on May 30, 2024

Yup, this solves it for me:
Completely removed NSSM and service mode, created a shortcut to sol.exe with shortcut properties 'run minimized' and copied that shortcut to StartUp.

Thanks.

from sleep-on-lan.

SR-G avatar SR-G commented on May 30, 2024

Pretty sure the problem is about the current directory, once executed through a service, the current path is probably elsewhere, and thus the default JSON config (stored next to the sol.exe binary) is not found (the program just use its default configuration in that situation). Don't know if i can do anything about this when using it as a service.

Your workaround is probably the best, closing the issue for the now.

from sleep-on-lan.

yeralin avatar yeralin commented on May 30, 2024

@SR-G Not really. Having the same issue. JSON config gets picked up (changing HTTP:<port> actually affects server's port at start), but halt command doesn't work unfortunately.

image

Hitting http://192.168.1.2:8007/halt, just returns:

<result>
<application>sleep-on-lan</application>
<hosts>
<host ip="0.0.0.0" mac="00:ff:19:44:3e:9f"/>
<host ip="192.168.1.2" mac="d8:50:e6:41:03:8d"/>
</hosts>
<listeners>
<listener type="UDP" port="9" active="true"/>
<listener type="UDP" port="7" active="true"/>
<listener type="HTTP" port="8007" active="true"/>
</listeners>
</result>

from sleep-on-lan.

SR-G avatar SR-G commented on May 30, 2024

Can you try with the latest 1.0.2-SNAPSHOT version ? https://github.com/SR-G/sleep-on-lan/releases
Obviously commands are not read, based on your start logs. Either you have an old version (there should be both some informations about the configuration file used, and read commands should be displayed in the start logs), either there is something wrong with the JSON configuration (but at first glance i don't see what could be wrong).

from sleep-on-lan.

yeralin avatar yeralin commented on May 30, 2024

@SR-G Oh, you are right. I was using 1.0.0 mentioned in README.md haha.

Just a suggestion, you could just give a link to https://github.com/SR-G/sleep-on-lan/releases page.

from sleep-on-lan.

SR-G avatar SR-G commented on May 30, 2024

Good point indeed, corrected.

from sleep-on-lan.

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.