Book Image

Learning Beaglebone Python Programming

Book Image

Learning Beaglebone Python Programming

Overview of this book

Table of Contents (19 chapters)

Weather alerts


One great application for this sort of small, relatively low-cost, and Internet connected weather station is the ability to get alerts. For instance, if you live in a cold area, you could get an alert if your heating system has stopped working and your water pipes are at risk of freezing and bursting. We already looked at sending e-mails in Chapter 6, Program Output, so we'll use that same code for notifications.

To implement alarms, we'll also want a way to configure their thresholds and to enable and disable them. For this, we'll use BBIOServer to build a quick web UI. This will let you configure alarms while on the same local network as your BeagleBone, so you would setup your alarms before leaving your house, for example.

You can also display your ThingSpeak plots right in a BBIOServer page (or any webpage) by using their provided embed HTML.

To get the embed code, click on the button that looks like a message box at the top right of each plot you want to embed; the HTML...