Chapter 3 The Tweetin’ Onion

Now that we’ve had an introduction to how the Omega2 works and how to interface with it, let’s create a few projects.

The Temperature Tweet

For the first project, I’d like you to remember the O2’s roots as an interface to the Internet of Things (IoT). With that in mind, let’s use an external sensor to read the temperature in the room, and then create a Twitter account (or use our own) and use Twitter’s API to tweet the temperature results every so often.

The temperature sensor I’m using here is the DS18B20 one-wire temperature sensor, available from both Jameco and Amazon. This one is useful because it’s small, ...

Get Jumpstarting the Onion Omega2 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.