Skip to content

yuzdaboyz/rSOL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rSOL

Remote Sleep-On-LAN

Lock, Sleep, Start/Stop PlexService.

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

Getting started

$ npm i -g pkg && npm i

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.

/shutdown

Shutdown the machine

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

/reboot

Reboot the machine

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 rSOL.js

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

Installing as windows service

Using nssm to install rSOL as service

nssm install rSOL rSOL-win.exe

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

Related

License

WTFPL © yusri

About

Remote Sleep-On-LAN for windows linux and macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published