UPDATE: adding a light sensor to the device.
The idea behind this project is connect some sensors to the Raspberry Pi and put the information available on demand via Twitter requests and put sensor history data online on the web
To do that, I used a DHT22 temperature and humidity sensor connected to the Rasberry Pi.
You can get all the detailed steps from Adafruit website
Following this steps, you will get a very basic webservice on your webserver that will look like this:
Now, its time to the Twitter stuff. The goal is send weather information on demand to any twitter user that sends the correct request string. We will use Twython and Adafruit modules as main elements of the code:
You must remember that you must create a new Twitter application with read/write permisions and you must also get all the tokens data, allowing to bind your python script to Twitter.