Book Image

Learning Raspberry Pi

By : Samarth Shah, Serge Schneider
Book Image

Learning Raspberry Pi

By: Samarth Shah, Serge Schneider

Overview of this book

Table of Contents (14 chapters)
Learning Raspberry Pi
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Developing a Twitter-controlled Raspberry Pi camera


In today's connected world, you want to access all of your things from everywhere. In Chapter 4, Getting into Robotics, you developed one such project where you can access and control your robot from anywhere using any devices. In this section, you will develop a Twitter-enabled Raspberry Pi camera, which will take a picture whenever you want to just by tweeting it.

Setting up

Before you start developing a Twitter-enabled Raspberry Pi camera, you need to have a Python library for accessing Twitter API on your Raspberry Pi, and of course, a few developer keys. The user has to send a direct message to the application developer, and then, it will analyze the direct message. If the direct message is from a valid user and in a valid format, it will take a picture from the camera. Once the picture has been taken, it will send the direct message to the user with the message, I have taken the photo. So, here are the two most important things in the...