__Smart Home Automation with Linux and Raspberry Pi__ shows you how to automate your lights, curtains, music, and more, and control everything via a laptop or mobile phone. You'll learn how to use Linux, including Linux on Raspberry Pi, to control appliances and everything from kettles to curtains, including how to hack game consoles and even incorporate LEGO Mindstorms into your smart home schemes. You’ll discover the practicalities on wiring a house in terms of both and power and networking, along with the selection and placement of servers. There are also explanations on handling communication to (and from) your computer with speech, SMS, email, and web. Finally, you’ll see how your automated appliances can collaborate to become a smart home. __Smart Home Automation with Linux__ was already an excellent resource for home automation, and in this second edition, Steven Goodwin will show you how a house can be fully controlled by its occupants, all using open source software and even open source hardware like Raspberry Pi and Arduino. What you’ll learn* Control appliances like kettles and curtains both locally and remotely. * Find and harness data sources to provide context-aware living. * Hack/change existing hardware/software to better fit your needs. * Integrate various technologies into a function greater than the whole. * Set up a home network, for both network and audio/video traffic. * Learn how to incorporate Raspberry Pi, Arduino, and even LEGO Mindstorms into your smart home. Who this book is for This book is for amateur and professional Linux users and electronics enthusiasts who want to control their homes and their gadgets. Table of Contents1. Appliance Control: Making Things Do Stuff 2. Appliance Hacking: Converting Existing Technology 3. Media Systems: Incorporating the TV and the HiFi 4. Home is Home: The Physical Practicalities 5. Communication: Humans Talk, Computers Talk 6. Data Sources: Making Homes Smart 7. Control Hubs: Bringing It All Together 8. Working with Raspberry Pi Cover......Page 1 Title Page......Page 2 Copyright Page......Page 3 Dedication Page......Page 4 Contents at a Glance......Page 5 Table of Contents......Page 6 About the Author......Page 13 About the Technical Reviewers......Page 14 Acknowledgments......Page 15 Introduction......Page 16 About X10......Page 18 Simple Case......Page 20 Assigning Addresses......Page 21 Using Multiple House Codes......Page 22 Lamp Module (LM12U)......Page 23 Wall Switch (LW10U)......Page 25 MicroModule with Dimmer (LWM1)......Page 26 DIN Rail Dimmer (LD11)......Page 27 Controlling Appliances......Page 28 Appliance Module (AM12U)......Page 29 Combination Devices......Page 30 Mini Controller (MC460)......Page 31 Maxi Controller (SC2800)......Page 32 Handheld RF Remote (HR10U)......Page 33 EasyTouch Panel10 RF......Page 34 In-Wall Transmitter Modules......Page 35 Gateways and Other Exotic Devices......Page 36 Computer Control......Page 38 Configuration......Page 40 Receiving Messages......Page 41 Programming the EEPROM......Page 42 Open Z-Wave......Page 43 LinuxMCE......Page 44 The Differences with Z-Wave......Page 45 Differences Between X10 and C-Bus......Page 46 Controlling Lights......Page 47 Lighting Control......Page 48 Hue......Page 49 Night Lights......Page 51 f.lux......Page 52 Ethernet Devices......Page 53 Concepts......Page 54 Addressing......Page 55 Computer Names......Page 57 Network Services......Page 58 CCTV Cameras......Page 60 Custom Hardware......Page 61 Infrared Remote Control......Page 62 Over the Aerial Cable......Page 63 IR Over IP......Page 64 IR Control......Page 67 Conclusion......Page 68 Linksys NSLU2......Page 69 SlugOS......Page 70 Hacking Game Consoles......Page 71 Sega Dreamcast......Page 72 PlayStation 2......Page 73 Microsoft Xbox......Page 74 Running Linux......Page 75 Linksys NSLU2......Page 76 Overclocking......Page 77 LEGO Mindstorms......Page 78 Arduino as an I/O Device......Page 79 Installation and Setup......Page 80 Arduino Software......Page 81 Reading Digital Inputs......Page 82 Reading Analog Inputs......Page 84 Creating Audio Outputs......Page 86 Communication with a PC......Page 87 Wireless Control......Page 89 Example: The Arduino Welcome Mat......Page 90 Example: The Arduino Dictaphone......Page 92 Sound production......Page 95 Display systems......Page 97 Joysticks for Input......Page 98 Hacking Laptops......Page 99 X10 Control......Page 100 WiFi Control......Page 101 Conclusion......Page 102 Extracting the Data......Page 103 DVD......Page 104 Rip As ISO......Page 105 Issues with Movies......Page 106 Rip As Movie Files......Page 107 Cassette Tapes and Vinyl......Page 108 Hard Drive Considerations......Page 109 Extra Functionality......Page 111 Configuring a Linux Box......Page 112 Preparing a Filesystem......Page 113 Preparing a Master Server......Page 114 Hauppauge MediaMVP......Page 115 MediaMVP Media Center......Page 116 Video Transcoding......Page 117 Other Functionality......Page 118 Server Software......Page 119 The Operating System......Page 120 MythTV......Page 121 A Brief History of UPnP......Page 122 Description......Page 123 Authentication......Page 124 Minidlna......Page 125 Rygel......Page 126 VLC......Page 127 Control Points......Page 128 DLNA......Page 129 AV Distribution......Page 130 Splitting and Merging......Page 131 Wiring Looms......Page 132 Matrix Switchers......Page 133 Local Control......Page 134 Relay Control......Page 135 SMS......Page 136 Conclusion......Page 137 Function and Purpose......Page 138 Necessary Considerations......Page 139 Human Considerations......Page 140 Determining the Best Room......Page 141 Building the Rack......Page 142 Disk Space......Page 143 Types of Server......Page 144 Mini-ITX......Page 145 Mini-PC......Page 146 Power Consumption......Page 147 Server Coordination......Page 150 UPS......Page 151 Backups......Page 155 Hiding Your Home......Page 157 General Considerations......Page 159 Wired Network......Page 161 Audio Cabling......Page 163 Other Access Points?......Page 165 Conclusion......Page 166 Why Comms?......Page 167 Asterisk......Page 168 Sending E-mail......Page 169 Autoprocessing E-mails......Page 170 Security Issues......Page 173 The Software for Voice Recognition......Page 174 From iOS......Page 177 From Android......Page 178 Remote Voice Control......Page 179 Festival......Page 180 Flite......Page 182 Piecemeal Samples......Page 183 Hardware Solutions......Page 184 Building a Web Server......Page 185 Virtual Sites......Page 186 Secure Server......Page 187 Controlling the Machine......Page 191 Media Access......Page 192 Processing with a Phone......Page 193 Custom Numbers and APIs......Page 196 Sending Messages......Page 197 Receiving Messages......Page 199 Conclusion......Page 202 Legalities......Page 203 Screen Scraping......Page 204 TV Guides......Page 207 Train Times......Page 208 Forecasts......Page 210 Radio......Page 214 CD Data......Page 216 RSS Feeds......Page 218 Retrieving Data: Pull......Page 219 Currency Conversion......Page 220 Private Data......Page 221 Calendar......Page 222 Accessing Webmail through POP3......Page 223 Posting Tweets with OAuth......Page 225 Reading Tweets with RSS......Page 226 Periodic Control with Cron Jobs......Page 227 Occasional Control with At......Page 229 Conclusion......Page 230 Integration of Technologies......Page 231 The Teakettle: An Example......Page 232 Overview......Page 234 Linux Users Are Not HA Users......Page 236 Device Abstractions......Page 237 Typical Application Abstractions......Page 238 Monexec......Page 239 TODO: A Worked Example......Page 240 Conduits......Page 241 The Voice Conduit......Page 242 Messaging Conduits......Page 243 Output Conduits: Transmission......Page 244 Input Conduits: Receiving Messages......Page 245 TODO: Building a Conduit......Page 247 Time-Based Messaging......Page 248 Location-Based Messaging......Page 250 Configuration......Page 251 Creating Modes......Page 252 To Yaks......Page 253 Living Modes......Page 254 Routines......Page 255 Minty......Page 257 Configuration......Page 258 Web Applets......Page 260 Of Web Pages and Applets......Page 261 Media......Page 265 Lifestyle......Page 267 Information......Page 270 Administration......Page 271 The WARP Directories......Page 272 The Basic Structure......Page 273 TODO: Controlling the Applet......Page 274 Utilities......Page 276 Manifest......Page 277 Handling Protocols......Page 279 Status......Page 281 Variable Constants......Page 282 Networking......Page 283 Wiring Looms......Page 285 Conclusion......Page 287 The Raspberry Pi within HA......Page 288 Towards Full Local Control......Page 289 The Joy Of Community......Page 290 The Drawbacks......Page 291 Child Minding......Page 293 Raspberry Pi as a USB Host......Page 294 As A Device Host......Page 295 Coffee Machine......Page 296 Software......Page 297 Hardware......Page 298 Hardware Caution......Page 299 With the GPIO......Page 300 USB......Page 303 I2C......Page 304 With SPI......Page 306 With Arduino Shields......Page 307 Software Options......Page 308 Conclusion......Page 309 Index......Page 310 Smart Home Automation with Linux and Raspberry Pi shows you how to automate your lights, curtains, music, and more, and control everything via a laptop or mobile phone. You'll learn how to use Linux, including Linux on Raspberry Pi, to control appliances and everything from kettles to curtains, including how to hack game consoles and even incorporate LEGO Mindstorms into your smart home schemes. You ll discover the practicalities on wiring a house in terms of both and power and networking, along with the selection and placement of servers. There are also explanations on handling communication to (and from) your computer with speech, SMS, email, and web. Finally, you ll see how your automated appliances can collaborate to become a smart home "LEGO Mindstorms NXT is a product that allows anyone to build complex inventions, but there are limits to what you can do with what comes inside the box. This book shows you how to extend the NXT to the next level, with more than 25 projects that range from a simple light switch to a cool magic wand that writes words in thin air. The projects are explained with easy step-by-step instructions, and whether you're a novice or an expert, you'll be able to construct them successfully. A tutorial on breadboard construction and soldering is also included."--Jacket Extreme NXT: Extending the LEGO MIDSTORMS NXT to the Next Level is for intermediate-level users of NXT who would like to advance their capabilities by learning some of the basics of electronics. Plenty of examples are provided, and easy-to-follow instructions are included for building over 15 different sensors. This makes a great reference for the NXT hardware interfaces. Examples even come complete with multiple, alternative NXT languages. The book is also abundant with illustrations. Michael Gasperi And Philippe Philo Hurbain, With Isabelle Hurbain. Homebrew Sensors ; New Output Devices ; I/o Expansion Techniques ; Lots Of Cool Projects--cover. Includes Index. Presents step-by-step instructions for more than twenty-five projects with LEGO Mindstorms NXT.