Poweroff & reboot Raspberry Pi over HTTP and button
- About
- Getting Started
- Usage
- Troubleshooting
- Roadmap
- Release History
- License
- Contact
- Acknowledgements
A NodeJS Linux poweroff and reboot web application over password protected HTTP and tactile switch
- A Raspberry Pi
git clone https://github.com/13/node-rpi-poweroff.git
npm install
npm rebuild
Add .env file
HTTP_USER=XXXXX
HTTP_PASS=XXXXX
HTTP_PORT=80
OCTOPRINT_SERVER=192.168.22.19:81
OCTOPRINT_TOKEN=XXXXX
MQTT_SERVER=192.168.22.9:1884
SHELLY_DEVICE=shellies/shellyplug-s-XXXXXX
node run.js -t 'show timestamp'
node run.js -t
Allow port 80 on linux
sudo setcap 'cap_net_bind_service=+ep' $(which node)
- ...
- 1.0.0
- Initial release
- 13 - Initial work - 13
This project is licensed under the MIT License - see the LICENSE.md file for details
- Thank you