O'Reilly logo

Programming the BeagleBone by Yogesh Chavan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending an e-mail on over-temperature

Suppose you want to maintain the temperature of the machine. If the temperature of the machine goes beyond 50 degree Celsius, you want to be notified by e-mail. This exercise can be part of your home automation. An Internet connection is essential for this exercise. Your router to which you connected BeagleBone should have some kind of working Internet connection via fiber, WAN port, DSL RJ11, or GSM dongle.

We are going to use the nodemailer JavaScript library for sending an e-mail using a Gmail account. Let's install it by running the following command in the BeagleBone shell:

sudo npm install –g nodemailer

The source code and other information can be found here: https://github.com/nodemailer/nodemailer.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required