Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building a Home Security System with Raspberry Pi

You're reading from  Building a Home Security System with Raspberry Pi

Product type Book
Published in Dec 2015
Publisher
ISBN-13 9781782175278
Pages 190 pages
Edition 1st Edition
Languages
Author (1):
Matthew Poole Matthew Poole
Profile icon Matthew Poole

Table of Contents (16) Chapters

Building a Home Security System with Raspberry Pi
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Setting Up Your Raspberry Pi 2. Connecting Things to Your Pi with GPIO 3. Extending Your Pi to Connect More Things 4. Adding a Magnetic Contact Sensor 5. Adding a Passive Infrared Motion Sensor 6. Adding Cameras to Our Security System 7. Building a Web-Based Control Panel 8. A Miscellany of Things 9. Putting It All Together Index

The master configuration file


Our system will use a master configuration file that will tell it how everything is set up and connected. This configuration file will be used by both the web control panel and the main alarm control scripts so that the two sub-systems can "talk" to each other. Let's create the file with our initial settings.

The settings file will be stored in the same location as where we will create our control scripts in Chapter 9, Putting It All Together, which is in the folder. /etc/pi-alarm. So, let's create this folder, and give it execute rights so that our scripts can be run:

$ cd /etc
$ sudo mkdir pi-alarm
$ sudo chmod 777 pi-alarm

We'll now create the master configuration file, to be used by our system, in this folder:

$ cd pi-alarm
$ sudo nano alarm.cfg

Tip

As before, you don't have to create your files in Nano on the Raspberry Pi—you can create them on your desktop computer, and then transfer them to your Pi using SCP.

# ALARM MASTER CONFIG FILE #

#Number of zones...
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}