Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Home Automation with Intel Galileo

You're reading from  Home Automation with Intel Galileo

Product type Book
Published in Mar 2015
Publisher
ISBN-13 9781785285776
Pages 188 pages
Edition 1st Edition
Languages
Author (1):
Onur Dundar Onur Dundar
Profile icon Onur Dundar

Table of Contents (16) Chapters

Home Automation with Intel Galileo
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Getting Started with Intel Galileo Getting Started with Home Automation Applications Energy Management with Environmental and Electrical Sensors Energy Management with Light Sensors and Extending Use Cases Home Monitoring with Common Security Sensors Home Surveillance and Extending Security Use Cases Building Applications and Customizing Linux for Home Automation Extending Use Cases Index

Adding new use cases


We have finished working with devices for home automation. We covered almost all the common devices used for home automation. As we have completed adding a camera, we have successfully achieved the state where we can monitor a home.

Now we will proceed to make a few last additions to the Smart Home application such as adding some rules; this includes completing some actions when a certain device value is changed,. For example, when motion is detected, we will make the Smart Home application perform a capture.

Let's first include the camera module in the Smart Home application. We have added the camera.c and camera.h files to manage a network camera and also changed the Makefile.am file to link OpenCV libraries for the build process. The following header file can be used within the application:

#ifndef CAMERA_H_
#define CAMERA_H_
#define IP_CAM "http://admin:123@192.168.2.141:80/mjpeg.cgi?user=admin&password=1 23&channel=0&.mjpg"
#define USBCAM 0
/**
 * Capture...
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}