Hardware Reference
In-Depth Information
Objective complete - mini debriefing
We discussed the interfacing of different I2C devices that could be used in this project. In the
next secion, we will work on controlling these devices using an individual control signal.
Serial port communication with the
Raspberry Pi
As menioned earlier, the weather data is obtained by the Raspberry Pi and communicates
the data with control characters via the serial port. We will discuss the control signals used
in this project.
Engage thrusters
Let's get started by reviewing the Python script used to operate the weather display.
Python program for the Weasley clock
1. In this secion, we will discuss the Python code for the weather clock. The important
requirement for this project is the Python weather API . We need to download and
install it to get started. If subversion is not installed on the Raspberry Pi, it can be
installed using the following command:
sudo apt-get install subversion
2. Once the installaion is complete, the Python weather API repository can be cloned
as follows:
svn checkout http://python-weather-api.googlecode.com/svn/trunk/
python-weather-api-read-only
3.
The Python weather API has a Python3 requirement and is installed as follows:
cd python-weather-api-read-only
python3 setup.py build
python3 setup.py install
 
Search WWH ::




Custom Search