https://github.com/drcursor/flickrup
Raspberry PI (auto) Flickr uploader
https://github.com/drcursor/flickrup
Last synced: 4 months ago
JSON representation
Raspberry PI (auto) Flickr uploader
- Host: GitHub
- URL: https://github.com/drcursor/flickrup
- Owner: drcursor
- License: gpl-3.0
- Created: 2016-06-12T13:58:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T15:26:27.000Z (over 9 years ago)
- Last Synced: 2024-06-24T08:35:52.732Z (over 1 year ago)
- Language: Python
- Homepage: https://ebalsa.org/ebalsa/hacks/raspberry-pi-auto-flickr-uploader/
- Size: 19.5 KB
- Stars: 113
- Watchers: 8
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-raspberry-pi - Raspberry Auto Flickr Uploader - [article](http://lifehacker.com/build-your-own-flickr-automatic-uploader-with-a-raspber-1781891730) (computer stuffs / assistants)
README
# flickrup
## Concept
Simple script that automatically uploads all photo files from a connected removable disk/card to Flickr (with Viewing Privacy set to Private).
This should be run on a standalone device (eg. Raspberry PI).
## Requirements
- A flickr account (like [mine](https://www.flickr.com/photos/drcursor/));
- Python 3;
- flickrapi package;
- working local sendmail;
- usbmount;
## Install
The following procedure assumes you have a working Debian/Raspbian system with network access.
- Install requirements
~~~~
sudo apt-get install python3 python3-pip postfix usbmount
sudo pip3 install flickrapi
~~~~
- Copy files to correct locations
~~~~
sudo cp flickrup.py /usr/bin
sudo chmod a+x /usr/bin/flickrup.py
sudo cp flickrup.conf /etc
sudo cp 01_process /etc/usbmount/mount.d
sudo chmod a+x /etc/usbmount/mount.d/01_process
~~~~
- Define correct API key and secret in /etc/flickrup.conf (Default should be OK)
- Define from and to email in /etc/flickrup.conf
- Run /usb/bin/flickrup.py and follow screen instructions
## Configuration
- API keys as well as email options are defined on /etc/flickrup.conf
- File extensions as well as exceptions can be configured in flickrup.py
## Usage
- Whenever a USB mass storage device is connected (eg. SD/CF Card, Camera), flickrup will automatically upload the files to Flickr (with with Viewing Privacy set to Private). Uploaded files are renamed and a log file is created at the root of the storage device. Additionally the log file is sent to the email defined in the configuration file. After the email is sent, the mass storage device is unmounted, and can be safely removed.