Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Programming the BeagleBone

You're reading from  Programming the BeagleBone

Product type Book
Published in Jan 2016
Publisher
ISBN-13 9781784390013
Pages 180 pages
Edition 1st Edition
Languages

Table of Contents (21) Chapters

Programming the BeagleBone
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Cloud9 IDE Blinking Onboard LEDs Blinking External LEDs Controlling LED Using a Push Button Reading from Analog Sensors PWM – Writing Analog Information Internet of Things with BeagleBone Physical Computing in Python UART, I2C, and SPI Programming Internet of Things using Python GPIO Control in Bash BeagleBone Capes
Pinmux and the Device Tree Index

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.

We are going to use a Gmail account to send e-mail. Even a local mail server can be set up on BeagleBone to send e-mails. But it is a learning curve itself. Google does not allow you to e-mail directly using its SMTP servers. You need to use some settings...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}