Remote Sleep-On-LAN
Lock, Sleep, Start/Stop PlexService.
Currently only support Windows. macOS and Linux will follow later.
$ npm i -g pkg && npm i
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>
Locks the machine.
Throws an Error
if executing the lock command fails or if the OS is not supported.
Put the machine to sleep
Return "OK" or otherwise "KO" should any error occurs.
Shutdown the machine
Return "OK" or otherwise "KO" should any error occurs.
Reboot the machine
Return "OK" or otherwise "KO" should any error occurs.
Start the PlexService
Return "OK" or otherwise "KO" should any error occurs.
Start the PlexService
Return "OK" or otherwise "KO" should any error occurs.
pkg rSOL.js
A bundled exe file will be created. eg. rSOL-win.exe
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>
- Home Assistant - Open-source home automation platform running on Python 3
- Home Assistant Github - Home-Assistant Github repo
- lock-system - lock-system
- pkg - Single-command Node.js binary compiler
- nssm - NSSM - the Non-Sucking Service Manager
- PlexService - Running Plex Media Server as service
© yusri