Raspberry Pi PiTFT Weather Station

IMG_5218More tinkering with the wonderful Adafruit 2.8″ Touchscreen TFT module (PiTFT) for the Raspberry Pi.  This time a weather station drawing data from weather.com.

Luckily there’s a wonderful python module to extract data from three popular weather services; python-weather-api supports NOAA, Yahoo! Weather and weather.com.  This makes life so much easier. Continue reading

Displaying Raspberry Pi Truetype Fonts

IMG_5200

I’ve been enjoying tinkering about with AdaFruit’s PiTFT 2.8″ touchscreen for the Raspberry Pi.  Working out how to display text and graphics on the screen using the frame buffer with, Python, my programming language of choice.  It took little research to get text to display on the frame buffer.  It took a little more to work out how to identify and list installed Truetype fonts. So I thought I’d post the code I used to list the Truetype fonts installed on a Raspberry Pi in case it proves helpful to others. Continue reading

Raspberry Pi Python LCD Class 0.0.1 Release

The earlier post “Clocks – Part 1: HD44780 16X2 LCD” showed connecting a HD44780 16×02 LCD module to the Raspberry Pi and displaying the date and time.

I’ve taken the code to drive the display and made a class so that it can be used in other projects.

In time, I may extend this for other display sizes (20×4), types (graphical) and interfaces (I2C, etc).

At the moment, the class handles the 4 bit HD44780 16×2 Character LCD.  It’s very simple and provides member functions to initialise, clear and write text to each of the 2 lines.

It can be downloaded here.

Unix Daemon Python Library 0.0.1 Released

Another building block I’ve found useful having wanted to have processes run after the terminal session has ceased is the Unix style Daemon process.  This library provides a Python wrapper class.

The code was shamelessly borrowed from Sander Marechal’s “A simple unix/linux daemon in Python”.  Unfortunately his page no longer exists. Continue reading

BMP085 I2C Temperature & Pressure Python Library 0.0.1 Released

This purpose of this library is to read temperature and barometric pressure from the BMP085 I2C sensor.

The datasheet can be found here.

I cannot take credit for the code.  I’ve just wrapped it in a class for my own use and shared it here.  It was shamelessly borrowed from these 2 sources:

The class can be downloaded from the downloads page.