This commit is contained in:
Joey Hess 2013-05-22 17:26:19 -04:00
parent 48eada7d56
commit edafc33714
2 changed files with 13 additions and 5 deletions

View file

@ -27,6 +27,7 @@ for various cloud things:
* [[tahoe-lafs|forum/tips:_special__95__remotes__47__hook_with_tahoe-lafs]] * [[tahoe-lafs|forum/tips:_special__95__remotes__47__hook_with_tahoe-lafs]]
* [[tips/using_box.com_as_a_special_remote]] * [[tips/using_box.com_as_a_special_remote]]
* [[tips/using_mega.co.nz_as_a_special_remote|tips/megaannex]] * [[tips/using_mega.co.nz_as_a_special_remote|tips/megaannex]]
* [[tips/using_Flickr_as_a_special_remote|tips/flickrannex]]
* [[forum/special_remote_for_IMAP]] * [[forum/special_remote_for_IMAP]]
* [[forum/nntp__47__usenet special remote]] * [[forum/nntp__47__usenet special remote]]

View file

@ -1,14 +1,17 @@
Hook program for gitannex to use flickr as backend Hook program for gitannex to use flickr as backend.
This allows storing any type of file on flickr, not only images and movies.
# Requirements: # Requirements:
python2 python2
Credit for the flickr api interface goes to: http://stuvel.eu/flickrapi Credit for the flickr api interface goes to: <http://stuvel.eu/flickrapi>
Credit for the png library goes to: https://github.com/drj11/pypng Credit for the png library goes to: <https://github.com/drj11/pypng>
Credit for the png tEXt patch goes to: https://code.google.com/p/pypng/issues/detail?id=65 Credit for the png tEXt patch goes to: <https://code.google.com/p/pypng/issues/detail?id=65>
## Install ## Install
Clone the git repository in your home folder. Clone the git repository in your home folder.
git clone git://github.com/TobiasTheViking/flickrannex.git git clone git://github.com/TobiasTheViking/flickrannex.git
@ -16,19 +19,23 @@ Clone the git repository in your home folder.
This should make a ~/flickrannex folder This should make a ~/flickrannex folder
## Setup ## Setup
Run the program once to make an empty config file Run the program once to make an empty config file
cd ~/flickrannex; python2 flickrannex.py cd ~/flickrannex; python2 flickrannex.py
Edit the flickrannex.conf file. Add your flickrusername, password and folder(set) name. Edit the flickrannex.conf file. Add your flickrusername, password and folder(set) name.
## Commands for gitannex: ## Configuring git-annex
git config annex.flickr-hook '/usr/bin/python2 ~/flickrannex/flickrannex.py' git config annex.flickr-hook '/usr/bin/python2 ~/flickrannex/flickrannex.py'
git annex initremote flickr type=hook hooktype=flickr encryption=shared git annex initremote flickr type=hook hooktype=flickr encryption=shared
git annex describe flickr "the flickr library" git annex describe flickr "the flickr library"
## Notes ## Notes
The current version base64 encodes all the data, which results in ~35% larger filesize. The current version base64 encodes all the data, which results in ~35% larger filesize.
I might look into yyenc instead. I'm not sure if it will work in the tEXt field. I might look into yyenc instead. I'm not sure if it will work in the tEXt field.
-- Tobias