A simple HTTP remote control project for Raspberry Pi using array-gpio, express and angular.
Turn ON/OFF the actuators/peripherals connected to your Raspberry Pi using your mobile device.
Using the GPIO physical pin number, choose the pins you want to use as outputs.
Configure the pins in the app.js file as shown below.
For this project, you only need to provide the output pins you will use.
gpio.setOutput(pin1, pin2 ... pin4); // max. 4 outputs
- Real-time update of GPIO pin state.
- Control remote devices from within your private network using your mobile device browser.
Git clone or download the application from your Raspberry Pi.
$ git clone https://github.com/EdAlegrid/PiWebControl.gitIn the root folder, install all dependencies.
$ cd PiWebControl
$ npm installRun the application as shown below.
$ node appYou will see the details of your Raspberry Pi local web server.
$ node app
*** http server ***
HttpServer started: http://192.168.1.125:3000Open a web browser and enter your web server details.
http://192.168.1.125:3000MIT
