Raspberry Pi Web GPIO should work from any modern mobile or desktop browser, but this hasn't been tested.
See http://linwiz.github.io/Raspberry-Pi-Web-GPIO page for screenshots.
- MySQL
- Tested on 5.5.38
- mysqli library
- PHP
- Tested on 5.4.4
- mcrypt library
Configuring:
Import docs/gpio.sql into MySQL.
Create user for database gpio
.
Set MySQL username and password in GPIOServer.sh
Set MySQL connection information in config.php
Usage:
Execute GPIOServer.sh
:
Make sure the file has execute permissions.
chmod +x GPIOServer.sh
Run the script, It retrieves pin status from the database and turns pins on or off.
./GPIOServer.sh &
Load the script in your browser/mobile device.
Default login information:
username: admin
password: rpi
Credit goes to: Daniel Curzon (http://www.instructables.com/id/Web-Control-of-Raspberry-Pi-GPIO).
GPIOServer.sh Script created by Daniel Curzon (https://code.google.com/p/raspberrypi-gpio).
Password Hashing With PBKDF2 (http://crackstation.net/hashing-security.htm).
Copyright (c) 2013, Taylor Hornby
All rights reserved.