Ayin let's you upload all your images from motion to your Dropbox account.
- See this quick tutorial to install motion. This tutorial is an equivalent for Raspberry-PIs.
- Install Dropbox SDK for Python:
sudo pip install dropbox
- Retrieve the project:
git clone https://github.com/pchaigno/ayin && cd ayin/
- Create password file:
echo '[your dropbox access token]' > dropbox_api_password
- Restrict access to password file:
chmod go-r dropbox_api_password && sudo chown motion:motion dropbox_api_password
- Create log files:
touch error.log ayin.log && sudo chown motion:motion error.log ayin.log
- Update motion's config file: Replace
; on_picture_save value
byon_picture_save python3 [absolute path to ayin folder]/ayin.py %f 2>> [absolute path to ayin folder]/error.log
- 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.