Skip to content

PHP script to control Raspberry PI GPIO pins from the web

Notifications You must be signed in to change notification settings

haboque/Raspberry-Pi-Web-GPIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry-Pi-Web-GPIO

===================== PHP script to control Raspberry PI GPIO pins from the web.

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.

Requires:

  • 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.

About

PHP script to control Raspberry PI GPIO pins from the web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published