Reader small image

You're reading from  Raspberry Pi Essentials

Product typeBook
Published inApr 2015
Publisher
ISBN-139781784396398
Edition1st Edition
Right arrow
Author (1)
Jack Creasey
Jack Creasey
author image
Jack Creasey

Jack Creasey has been in the technology industry for more than 30 years, the last 15 years as a Senior Program Manager in hardware and software design. His expertise includes designing, developing, and teaching IT courseware. He is an avid inventor and holds 13 patents in hardware and software design. After retiring early from the computing industry, Jack avidly participates in social network groups that share his passion for next generation technology solutions.
Read more about Jack Creasey

Right arrow

Project 1 – Building a talking clock with a Bash script


This project will expose you to the Bash shell scripting language. You will build a talking clock that tells the time every minute using an executable and an Internet-based web service. Once the clock is up and running, you will use an automation tool called Cron to schedule and run tasks at a particular time or at regular intervals.

The talking clock will have the following features and functions:

  • Automatically start every minute and run in the background without any visible interface to the desktop user

  • Read the system time to get the local time on your Pi

  • Produce a correctly formatted time string to announce the time, for example, you might say "The time is now nine fifteen AM"

  • Convert the time string to audio and play it

  • Exit the script

Creating project files and directories

First, you will open a Terminal window to create the project files and directories, update our system, and load a new utility application:

  1. At the command line of the...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Raspberry Pi Essentials
Published in: Apr 2015Publisher: ISBN-13: 9781784396398

Author (1)

author image
Jack Creasey

Jack Creasey has been in the technology industry for more than 30 years, the last 15 years as a Senior Program Manager in hardware and software design. His expertise includes designing, developing, and teaching IT courseware. He is an avid inventor and holds 13 patents in hardware and software design. After retiring early from the computing industry, Jack avidly participates in social network groups that share his passion for next generation technology solutions.
Read more about Jack Creasey