7ac / pypymotion Goto Github PK
View Code? Open in Web Editor NEWMotion event handler
Motion event handler
Hello,
First, I want to say thanks for writing this script. I'm trying to get it setup on my Arch Linux ARM PogoPlug E02 and hopefully you can provide some guidance.
Here is what I've done so far:
pacman -Sy
pacman -S motion
mkdir -p /var/run/motion
sed -i 's:webcam_localhost on:webcam_localhost off:' /etc/motion/motion.conf
sed -i 's:width 320:width 640:' /etc/motion/motion.conf
sed -i 's:height 240:height 480:' /etc/motion/motion.conf
cd /tmp
wget https://github.com/7AC/pypymotion/tarball/master
tar xvf master
cd 7AC-pypymotion-523b7f4
mkdir /etc/pypymotion
cp * /etc/pypymotion
chmod a+x /etc/pypymotion/*.py
sed -i 's/env python/env python2/' /etc/pypymotion/pypymotion.py
nano /etc/pypymotion/pypymotion.cfg
nano /etc/pypymotion/pypymotion.py
echo 'on_movie_end /etc/pypymotion/pypymotion.py %f' >> /etc/motion/motion.conf
motion
My first question is, I gave the script a quick test by executing it directly. Should I be concern about it not being able to import findmyiphone or do I need to download the module? I'm not using the findmyiphone feature (yet).
[root@spike pypymotion]# pwd
/etc/pypymotion
[root@spike pypymotion]# ./pypymotion.py
Traceback (most recent call last):
File "./pypymotion.py", line 26, in
import findmyiphone
ImportError: No module named findmyiphone
Second question is, do I need to make any other changes to the default /etc/motion/motion.conf file? The script execute on movie end. Do I need to enable something in the conf first to have motion make a movie?
As you can tell I'm totally new to motion. Thanks
Q
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.