Weather Clock

Pi Clock

Started with this site

Built raspbian wheezy from here

Set up the touch screen with the adafruit guide here

curl -SLs | sudo bash
sudo apt-get install raspberrypi-bootloader
sudo apt-get install adafruit-pitft-helper


sudo adafruit-pitft-helper -t 28r

Would you like the console to appear on the PiTFT display? [y/n]

I selected no (actually had to rerun and select yes)

Would you like GPIO #23 to act as a on/off button? [y/n]

I selected yes

then restarted the Pi – sudo reboot

added: sudo nano /boot/config.txt

set rotate to 270

Pi and screen set up

download this package

I unpacked on my pc and ftp’d to the /home/PI folder

copy to your Pi and build and install

$ python build
$ python install

Then install the Pi Daemon with the instructions from here and here

unpacked, ftp, build and install

$ python build
$ python install

Download the python weather module from here

I extracted the data and copied it to the /home/PI directory (actually /opt/)

sudo chmod 777 opt

To start the script

sudo python start

auto start the script

sudo name /etc/rc.local

add the line

sudo python /opt/PiTFTWeather/ start

Configure the wifi dongle here

Here’s how to open it with nano:

sudo nano /etc/network/interfaces

and make it look like so:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "your-network-name"
wpa-psk "password-here"

You can save file with “ctrl+x” followed by “y”.

Note (check the wipi is recognised – lsusb -t
* check the wipi is actually named wlan0 – iwconfig

change motd
sudo nano /etc/motd.tail