Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pchaigno/ayin
- Owner: pchaigno
- License: mit
- Created: 2015-05-17T13:10:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-08T12:04:36.000Z (over 9 years ago)
- Last Synced: 2024-10-13T22:47:41.656Z (2 months ago)
- Topics: dropbox, motion, motion-detection
- Language: Python
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.