Skip to content
Remote Sleep-On-LAN for windows linux and macOS
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.MD
package.json
rSOL.js

README.MD

rSOL

Remote Sleep-On-LAN

Lock, Sleep, Start/Stop PlexService.

Currently only support Windows. macOS and Linux will follow later.

Requirement / Dependencies

$ npm i connect serve-static ezarp

Usage

You can navigate to the page using a web browser or simply calling the url using curl. I use this method for my HASS.

curl http://<ip>:<port>/<function>

API

/lockwin

Locks the machine.

Throws an Error if executing the lock command fails or if the OS is not supported.

/tdoqla

Put the machine to sleep

Return "OK" or otherwise "KO" should any error occurs.

/startplex

Start the PlexService

Return "OK" or otherwise "KO" should any error occurs.

/stopplex

Start the PlexService

Return "OK" or otherwise "KO" should any error occurs.

Running as service

Bundling rSOL.js and run as windows service using nssm

pkg -t node6-win rSOL.js

A bundled exe file will be created. eg. rSOL.exe

Installing as windows service

Using nssm to install rSOL as service

nssm install rSOL rSOL.exe

Check the windows service manager and start the rSOL service. By default the endpoint would be listening at http://127.0.0.1/<function>

Related

License

WTFPL © yusri

You can’t perform that action at this time.