Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHow do you control GPIO with raspberry pi when it detects motion? /\ Question #1697
Comments
|
First check out the Action Buttons example here: Then connect to your motioneyeOS Raspberry Pi through the web interface and look for the Motion Notifications option (near the bottom): Create two files in /data/etc contains your bash scripts to control the GPIO, as per the Action Buttons example, one script to make your GPIO HIGH, the other to make it LOW. I've tested this recently and the 'Run a command' script is executed when motion is first detected, and the 'Run an end command' script is executed when the motion event ends. |
|
Thank you. |
Preliminary Docs
I confirm that I have read the CONTRIBUTING guide before opening this issue.
I confirm that I have read the FAQ before opening this issue.
motionEyeOS Version
I am running motionEyeOS version: 20180602
Board Model
I am using the following board/model:Raspberry PI 3B+
Camera
I am using the following type of camera: MMAL
My camera model is: Raspberry pi 1.3 Standard.
Network Connection
My motionEyeOS unit is connected to the network via: WIFI
How do you control GPIO with raspberry pi when it detects motion?