In the previous chapter, we learned to interface different kinds of sensors to the Raspberry Pi to get data from the real world and output some text so that the user can infer the state of his surroundings, such as temperature, humidity, and so on. We also built a surveillance system that takes pictures of any intruder. Now, these are all standalone systems and cannot communicate with any other systems.
In this chapter, we will concentrate on the concept of the Internet of Things. This means that we can connect standalone systems, just like the ones we built in the previous chapters, to the Internet. We will connect devices to the Internet and learn how to interact with different web services. The following topics will be covered in this chapter:
Installing the Twitter API for Python
Using Tweepy
Setting up a SQLite database
Building a tweeting weather station