Easy home automation with a Raspberry Pi.
This code was used in my article on controlling a lamp through the internet with a Raspberry Pi.
You can read more on my website: http://jack.minardi.org/raspberry_pi/make-an-internet-controlled-lamp-with-a-raspberry-pi-and-flask/