Monitoring Twitter/e-mails to blink an LED

The Internet of Things concept is all about connecting the Web with the physical world. This goes in both directions: the data collection of physical devices goes up, and information from the Internet can be communicated out to physical devices. We can build on our previous example and have our LED circuits notify us when we receive an e-mail or tweet!

Getting ready

For hardware, you can use the same circuit as the previous recipe's circuit. Instead of a yellow LED, I used a blue one to notify me of Twitter messages.

If you followed the recipe in Chapter 4, Sending an e-mail from a Python Script, you should already have an app password for your Gmail account. If not, you can find out how in the Getting Ready ...

Get Raspberry Pi Zero Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.