As mentioned 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.
Let's get started by reviewing the Python script used to operate the weather display.
In this section, 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
Once the installation 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
The Python weather API has a Python3 requirement and is installed as follows:
cd python-weather-api-read...