piControl is allow reboot and shutdown from browser in local network. It's using node.js.
curl -sLS https://apt.adafruit.com/add | sudo bash
sudo apt-get install node
npm install forever -g
sudo mkdir /opt/piControl/
Copy all files to /opt/piControl/
or you can make git clone
cd /opt
sudo git clone git://github.com/saturngod/piControl.git piControl
Open the pictlnode.
Edit forever and APP path.
sudo cp /opt/piControl/pictlnode /etc/init.d/pictlnode
sudo chmod +x /etc/init.d/pictlnode
update-rc.d pictlnode defaults
sudo insserv pictlnode
reboot
After reboot , check your ip first.
ifconfig
After you know the IP , call http://[your_ip_address]:1337 from any browser in your local network.
Recommend to use static IP to control the raspberry pi.
http://[yourip]:1337/shutdown
http://[yourip]:1337/restart
http://[yourip]:1337/freedisk
- Make installer like
npm install picontroland everything done.