/AutoGeeniMotionDetection

Automatically enable and disabled motion detection on Geeni Cameras when someone is home/away.

Primary LanguageJavaScript

Prerequisites

NPM and Node.js

  • Both of these are required and can be downloaded here.
    • If using a Raspberry Pi Zero W, follow these instructions instead.

Geeni

  • Geeni is connected to the Google Assistant.
  • The cameras are named the same as in program.js.
    • This can be done through the Google Home app or the Geeni app.

Google Assistant Server

  • REST-GoogleAssistant must be set up and operational.
  • Take note of:
    • The port that the server is listening on.
      • Make sure that the port is forwarded.
    • The public address of the server.
    • The config/auth.json file.

Installation

  • Everything in the Prerequisites section must be done first!
  • After cloning:
    • Update submodules with git submodule init followed by git submodule update.
      • Configure submodules following their respective instructions.
    • Run npm install to install packages.
    • Run node program.js to start.
  • Optionally, add the following line to /etc/rc.local for auto startup:
    • sudo node "/PATH/TO/REPO/program.js" &.