hey Friends….. i m here to give a tutorial on webiopi which is good tool/software to control the GPIO over the local area network/web on the raspberry pi….. Webiopi: internet of things framework…..here is the solution….
Step 1: install the webiopi in raspberry pi….. connect the pi to internet and type following command to install the webiopi in the pi….
$ wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.0.tar.gz
i always prefer to stay updated in terms of software…….i was having the version 0.7.0..may u get updated..so check that out…. On original page of webiopi installation guide, they have given different command u can also use that……i have just find outed:where the webiopi is and using “wget” command i can download directly the file to raspberry pi….. now if u have downloaded the tar.gz file…..than enter this command:
$ tar -zxvf WebIOPi-0.7.0.tar.gz
ok..it will exterct the files and put into pi’s folder name: WebIOPi-0.7.0. u can see by entering command “ls”. now u have to setup file in that folder.u need to go in that folder. for that enter command:
$ cd WebIOPi-0.7.0
ok u are now in the WebIOPi folder….so to install the file enter command:
$ sudo ./setup.sh
Step 2: After installing the webio pi u need to start it…over local network….
$ sudo webiopi -h
This command will show u the help of raspberry pi……
to start the webiopi over network write the below command:
$ sudo webiopi -c config
it will create the server over the local network….
the assign ip address or web address will be shown after enterin above command…
like: localhost:8000/webiopi/ or http://192.168.2.10:8000/webiopi/
U need to enter that URL to your laptop which is connected to that local network..
Default user is “webiopi” and password is “raspberry”
click on GPIO hader..
u can see the GPIOs on site….u can click on “in/out” it will control the direction of GPIO for inputting or outputting the any device. and if you click on number showing boxs it will control the GPIOs in terms of “HIGH/LOW” yellow for high-5v and black for low-0v….
To start webiopi on boot enter this command:
$ sudo update-rc.d webiopi defaults
To remove it from boot:
$ sudo update-rc.d webiopi remove
To start webiopi service in background:
$ sudo /etc/init.d/webiopi start
To stop webiopi service:
$ sudo /etc/init.d/webiopi stop
To check the status:
$ sudo /etc/init.d/webiopi status
So, congratulations u have successfully started webiopi on your pi…..