Smart Home Automation with Linux Smart
Total Page:16
File Type:pdf, Size:1020Kb
CYAN YELLOW MAGENTA BLACK PANTONE 123 C BOOKS FOR PROFESSIONALS BY PROFESSIONALS® THE EXPERT’S VOICE® IN LINUX Companion eBook Available Smart Home Automation with Linux Smart Dear Reader, With this book you will turn your house into a smart and automated home. You will learn how to put together all the hardware and software needed for Automation Home home automation, to control appliances such as your teakettle, CCTV, light switches, and TV. You’ll be taught about the devices you can build, adapt, or Steven Goodwin, Author of hack yourself from existing technology to accomplish these goals. Cross-Platform Game In Smart Home Automation with Linux, you’ll discover the scope and possi- Programming bilities involved in creating a practical digital lifestyle. In the realm of media and Game Developer’s Open media control, for instance, you’ll learn how you can read TV schedules digitally Source Handbook and use them to program video remotely through e-mail, SMS, or a web page. You’ll also learn the techniques for streaming music and video from one machine to another, how to give your home its own Twitter and e-mail accounts for sending automatic status reports, and the ability to remotely control the home Smart Home lights or heating system. Also, Smart Home Automation with Linux describes how you can use speech synthesis and voice recognition systems as a means to converse with your household devices in new, futuristic, ways. Additionally, I’ll also show you how to implement computer-controlled alarm clocks that can speak your daily calendar, news reports, train delays, and local with weather forecasts. You can then reuse this same weather data in conjunction Automation with motion sensors to remind you to take an umbrella when you’re about to leave the house on days when the forecast calls for rain! I’ve written this book to document all the processes and lessons I’ve learned when creating my own smart and automated house, and now with the help of this book you can do the same. Linux Steven Goodwin with Companion eBook THE APRESS ROADMAP Linux Beginning Ubuntu Linux, Smart Home Automation Fourth Edition with Linux Learn how to control your home from your PC Practical MythTV: Beginning the Linux Building a PVR and See last page for details Command Line on $10 eBook version Media Center PC Automating Linux and Unix Beginning SUSE Linux, System Administration, Expert Shell Scripting Second Edition Second Edition SOURCE CODE ONLINE Goodwin www.apress.com ISBN 978-1-4302-2778-6 Steven Goodwin 5 3 4 9 9 US $34.99 Shelve in: Computer Hardware/ General User level: 9 781430 227786 Beginner to Intermediate this print for content only—size & color not accurate 7.5 x 9.25 spine = x.xxx" xxx page count Smart Home Automation with Linux ■ ■ ■ Steven Goodwin Smart Home Automation with Linux Copyright © 2010 by Steven Goodwin All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN-13 (pbk): 978-1-4302-2778-6 ISBN-13 (electronic): 978-1-4302-2779-3 Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Java™ and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc., in the US and other countries. Apress, Inc., is not affiliated with Sun Microsystems, Inc., and this book was written without endorsement from Sun Microsystems, Inc. Publisher and President: Paul Manning Lead Editor: Duncan Parkes Development Editor: Matt Wade Technical Reviewers: Steve Potts and Michael Still Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, Duncan Parkes, Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh Coordinating Editor: Anne Collett Copy Editor: Kim Wimpsett Production Support: Patrick Cunningham Indexer: Julie Grady Artist: April Milne Cover Designer: Anna Ishenko Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail [email protected], or visit www.springeronline.com. For information on translations, please e-mail [email protected], or visit www.apress.com. Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales–eBook Licensing web page at www.apress.com/info/bulksales. The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. The source code for this book is available to readers at www.apress.com. You will need to answer questions pertaining to this book in order to successfully download the code. To Mum and Dad for the first automated home I had, where clothes washed themselves and food cooked itself! Contents at a Glance About the Author ...................................................................................................... xii About the Technical Reviewers ............................................................................... xiii Acknowledgments ................................................................................................... xiv Introduction .............................................................................................................. xv ■Chapter 1: Appliance Control ................................................................................... 1 ■Chapter 2: Appliance Hacking ............................................................................... 49 ■Chapter 3: Media Systems ..................................................................................... 85 ■Chapter 4: Home Is Home .................................................................................... 117 ■Chapter 5: Communication .................................................................................. 149 ■Chapter 6: Data Sources ...................................................................................... 185 ■Chapter 7: Control Hubs ....................................................................................... 215 Index ....................................................................................................................... 269 iv Contents About the Author ...................................................................................................... xii About the Technical Reviewers ............................................................................... xiii Acknowledgments ................................................................................................... xiv Introduction .............................................................................................................. xv ■Chapter 1: Appliance Control ................................................................................... 1 X10 ..................................................................................................................................... 1 About X10 ................................................................................................................................................. 2 General Design ......................................................................................................................................... 4 Device Modules ........................................................................................................................................ 6 Stand-Alone Controllers.......................................................................................................................... 15 Gateways and Other Exotic Devices ....................................................................................................... 20 Computer Control.................................................................................................................................... 23 C-Bus ............................................................................................................................... 28 About C-Bus ............................................................................................................................................ 28 Differences Between X10 and C-Bus...................................................................................................... 28 Devices ................................................................................................................................................... 29 Controllers .............................................................................................................................................. 30 Gateways ...............................................................................................................................................