Book Image

Raspberry Pi Embedded Projects Hotshot

Book Image

Raspberry Pi Embedded Projects Hotshot

Overview of this book

Table of Contents (20 chapters)
Raspberry Pi Mechatronics Projects HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Serial port communication with the Raspberry Pi


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.

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 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
    
  2. 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
    
  3. The Python weather API has a Python3 requirement and is installed as follows:

    cd python-weather-api-read...