Run this commands:
git clone https://github.com/Snapstromegon/LightModules-Monitor.git
cd LightModules-Monitor
npm i
Open config.json and set
- express.port for the frontend and websocket port
- udp.port for the port the server listens for Modules
npm start
ornode .
Copy script once:
sudo cp system/nodeserver.service /etc/systemd/system
Register service once:sudo systemctl enable nodeserver.service
Stop service manually :
sudo systemctl stop nodeserver.service
Start service manually :sudo systemctl start nodeserver.service
Show status of service:sudo systemctl status nodeserver.service