Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pchaigno/ayin

Upload images from motion to Dropbox
https://github.com/pchaigno/ayin

dropbox motion motion-detection

Last synced: about 1 month ago
JSON representation

Upload images from motion to Dropbox

Awesome Lists containing this project

README

        

# Ayin

Ayin let's you upload all your images from motion to your Dropbox account.

Installation
=====

0. See [this quick tutorial](http://www.maketecheasier.com/setup-motion-detection-webcam-ubuntu/) to install **motion**. [This tutorial](http://www.instructables.com/id/Raspberry-Pi-as-low-cost-HD-surveillance-camera/step7/Installing-the-motion-detection-software/) is an equivalent for Raspberry-PIs.
0. Install Dropbox SDK for Python: `sudo pip install dropbox`
0. Retrieve the project: `git clone https://github.com/pchaigno/ayin && cd ayin/`
0. Create password file: `echo '[your dropbox access token]' > dropbox_api_password`
0. Restrict access to password file: `chmod go-r dropbox_api_password && sudo chown motion:motion dropbox_api_password`
0. Create log files: `touch error.log ayin.log && sudo chown motion:motion error.log ayin.log`
0. Update motion's config file: Replace `; on_picture_save value` by `on_picture_save python3 [absolute path to ayin folder]/ayin.py %f 2>> [absolute path to ayin folder]/error.log`
0. Create a new *Dropbox API App* in your Dropbox account. It only needs an access to files it creates. The name you enter will be the name of the folder where the images will be uploaded.