Code Monkey home page Code Monkey logo

flickrup's Introduction

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);
  • 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.

flickrup's People

Contributors

drcursor avatar

Watchers

Eloy R Romero avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.