Also demonstrates adding to pakfire (ipfire module)
https://ict.ken.be/add-webcam-stream-to-ipfire
Things to remember
/etc/motion.conf
/etc/motion.conf
sync.sh
- Ipfire default web interface is on http port 81 or https port 444
- Add .1 to version in /opt/pakfire/etc/pakfire.conf and do pakfire update --force so you can install addons from testing branch
- Use pakfire to install motion
- Motion by default streams on port 2500, but you can set this in /etc/motion.conf
- Needed to add a video user and video group
- The boot file /etc/init.d/motion needs some adjustments to allow starting motion at boot time
- Set firewall rule correct to forward the port: From any to firewall red for tcp on port 2500 for webcam
- http://www.chriswpage.com/tag/motion-detection/
- http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuide
- http://wiki.ipfire.org/en/configuration/ipfire/pakfire/testing
- https://github.com/andreafabrizi/Dropbox-Uploader
/etc/motion.conf
mkdir -p /var/motion/cam1 chown -R video: /var/motion/cam1 mkdir -p /var/run/motion/ chown video:video /var/run/motion/ chmod 755 /var/run/motion/ loadproc sudo -u video /usr/bin/motionMove snapshots to dropbox
/etc/motion.conf
on_picture_save /etc/init.d/dropbox/up-snapshot.sh %f %Y%m%d %H%M%Sup-snapshot.sh
/etc/init.d/dropbox/du.sh upload $1 cam1/$2/$2-$3-snapshot.jpg && rm -f $1Sync dropbox to main website on ipfire
sync.sh
rm -rf /srv/web/localhost/html/ /etc/init.d/dropbox/du.sh download html/ /src/web/localhost/ find /srv/web/localhost/html -type f -exec chmod 644 {} \; find /srv/web/localhost/html -type d -exec chmod 755 {} \;
No comments:
Post a Comment