Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Raspberry Pi Embedded Projects Hotshot
  • Toc
  • feedback
Raspberry Pi Embedded Projects Hotshot

Raspberry Pi Embedded Projects Hotshot

By : Sai Yamanoor, Srihari Yamanoor
close
Raspberry Pi Embedded Projects Hotshot

Raspberry Pi Embedded Projects Hotshot

By: Sai Yamanoor, Srihari Yamanoor

Overview of this book

This book is targeted towards beginners and intermediate designers of mechatronic systems and embedded system design. Some familiarity with the Raspberry Pi and Python programming is preferred but not required.
Table of Contents (15 chapters)
close
14
Index

Setting up an e-mail feed parser to refill a prescription as well as remind the user about an upcoming doctor's appointment


In this task, we will discuss setting up an LED to alert a person about an incoming e-mail to refill a prescription or when there is an upcoming doctor's appointment.

Just in case you skipped through Project 6, Raspberry Pi as a Personal Assistant, the python-feedparser tool and the python-gdata tool have to be installed:

sudo apt-get install python-feedparser
sudo apt-get install python-gdata

Note

This task is similar to the e-mail notifier we set up in Project 5, Internet of Things Example – An E-mail Alert Water Fountain. We will just discuss a minor modification to blink an LED when there is an e-mail in the inbox to refill a prescription.

Engage thrusters

  1. We will get started by checking for any new incoming e-mails:

    email = feedparser.parse(proto+username+":"+password+"@"+server+path)
  2. Let's assume the prescription refill reminder e-mail subject is called Walgreens....

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete