I program this to control your any device with your mobile phone over the internet.
User must have two devices android mobile phone raspberry pi B+ or higher
Your device must connect to raspberrypi via RELAY as shown below.
As shown in the image http://reuk.co.uk/OtherImages/connect-raspberry-pi-to-a-relay.jpg
You can run the iot.py in your application.(your raspberry pi must connect to the internet) Note :- Before you run the .py file you need to install following packages. urllib2 demjson traceback
Now you can check IOT app.