ciscokid
Posts: 3
Joined: Wed Apr 15, 2015 4:05 pm

Switching "Motion" ON and OFF

Fri Apr 24, 2015 12:07 pm

Hi I am new to the Pi but have managed to successfully install Motion and configure it as a surveillance camera using the tutorial:

http://www.instructables.com/id/Raspber ... /?ALLSTEPS

However the camera automatically runs on start up using a motion daemon and continues in the background until Pi is finally powered down. I would like to have the facility to turn motion on or off (pause) using a switch connected to a GPIO otherwise the camera will fill up the SD card with me washing the car :D and a switch would be a convenient way to disable the camera

I am ok with connecting switches and LEDs etc but unsure how daemons work. Any ideas would be appreciated in using Python to switch "motion" on and off.
Thanks in advance.

User avatar
DougieLawson
Posts: 39294
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Switching "Motion" ON and OFF

Fri Apr 24, 2015 12:50 pm

viewtopic.php?t=63276 gives you all the controls you want.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

ciscokid
Posts: 3
Joined: Wed Apr 15, 2015 4:05 pm

Re: Switching "Motion" ON and OFF

Fri Apr 24, 2015 3:32 pm

Brilliant thanks. I can now switch two cameras on and off over SSH. I just need to fiddle around with the hardware switch side of things and hopefully that should do the trick!

Return to “Beginners”