These are the two main parts of my piclock code. The weather fetch is separate to give more flexibility. You will need GPIO drivers, i2c enabled, etc. Need to have pigpio installed, it has been a while I think that is the name of it. If you need assistance just ask. http://lostgeek.net/forums/