Designing the control scripts

Before we start writing the scripts to control our alarm systems, it is probably a good idea to outline the high-level process for the system. The following flow-chart helps us picture how our system should work, and the various logical decisions our script needs to make.

The flowchart might look a bit complicated with all its lines in different directions, but it's actually pretty linear and in a downward direction. Referring to the flowchart, it shows the following tasks that the control script will be doing:

  • Sitting quietly until the system is armed either by the hardware key switch or the web-based panel's soft switch.
  • When the system is first armed, it will sound the exit buzzer for a pre-determined amount of time ...

Get Raspberry Pi: Amazing Projects from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.