Skip to content

pchaigno/ayin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ayin

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

Installation

  1. See this quick tutorial to install motion. This tutorial is an equivalent for Raspberry-PIs.
  2. Install Dropbox SDK for Python: sudo pip install dropbox
  3. Retrieve the project: git clone https://github.com/pchaigno/ayin && cd ayin/
  4. Create password file: echo '[your dropbox access token]' > dropbox_api_password
  5. Restrict access to password file: chmod go-r dropbox_api_password && sudo chown motion:motion dropbox_api_password
  6. Create log files: touch error.log ayin.log && sudo chown motion:motion error.log ayin.log
  7. 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
  8. 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.

About

Upload images from motion to Dropbox

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages