Flickr

From LinuxMCE
Revision as of 17:27, 31 December 2008 by Jimmejames (Talk | contribs)

Jump to: navigation, search


Note- The CAPTCHA currently isn't working- so I added a space after all of the "http://" that needs to be deleted to run the command, but allowed this to be posted...

Instructions for using your Flikr account to populate the photos used in LMCE 710's screensaver. I ran the following from a terminal on the Core.

First, upgrade gem:

sudo apt-get install rubygems
wget http:// rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
tar xvzf rubygems-1.3.1.tgz
cd rubygems-1.3.1
sudo ruby setup.rb
sudo rm /usr/bin/gem
sudo ln /usr/bin/gem1.8 /usr/bin/gem

Then install commandline

sudo gem install commandline

Grab flickrfetchr and install

sudo wget http:// rubyforge.org/frs/download.php/40044/flickrfetchr-0.1.0.tgz
tar xvf flickrfetchr-0.1.0.tgz
cd flickrfetchr
sudo ./setup-linuxmce

Replacing Flickr.pl with FlickrFetchr.rb

From pluto-admin, Advanced, Configuration, Devices, Show Device Tree, My Devices, CORE, DCERouter, Orbiter Plug-in:

change File Name and Path from:
   
   /usr/pluto/bin/flickr.pl
   
 to:
 
   /usr/local/bin/flickrfetchr.rb

Run flickrfetchr

flickrfetchr.rb

This will prompt you to visit a site- I don't know if it is user specific, so I won't post mine here.  But the website asks you to sign into your flickr account and then authorize flickrfetchr to access your account.

return to the console, and press "Enter" as specified.

Edit flickrfetchr's configuration file:

pico /etc/flickrfetchr.conf

I scrolled to the bottom of the page and pasted this code:

LINUXMCE_1024_X_768_CRITERIA = {
                   :limit => 100,
                   :daycount => 5,
                   :destination_path => '/home/flickr',
                   :destination_naming => :short,
                   :plugins => [:LinuxMCE_Plugin],
                   :image_acceptable_types => ['jpg'],
                   :image_width_range => 600..1920,
                   :image_height_range => 600..1080,
                   :image_resize_to => {:width => 1024, :height => 768}
                 }

# some flickr group IDs
TOP20AVIATION_ID = '60512572@N00'
TOP20FISHEYE_ID = '46819026@N00'
TOP20LONGEXPOSURE_ID = '54941127@N00' 

# lets put the top20 groups into a top20 LinuxMCE subdirectory
TOP20_CRITERIA = LINUXMCE_1024_X_768_CRITERIA.merge({
                   :destination_path => '/home/flickr/top20',
                   :limit => 20
                 })
# now let's create the group criteria for the top20 groups
TOP20AVIATION_GROUP_CRITERIA = TOP20_CRITERIA.merge({
                   :nsid => TOP20AVIATION_ID,
                 })

TOP20FISHEYE_GROUP_CRITERIA = TOP20_CRITERIA.merge({
                   :nsid => TOP20FISHEYE_ID,
                 })

TOP20LONGEXPOSURE_GROUP_CRITERIA = TOP20_CRITERIA.merge({
                   :nsid => TOP20LONGEXPOSURE_ID,
                 })

# finally lets specify which groups we want.
config[:GROUPS] = [
       TOP20AVIATION_GROUP_CRITERIA,
       TOP20FISHEYE_GROUP_CRITERIA,
       TOP20LONGEXPOSURE_GROUP_CRITERIA
]


  • Giving credit where credit is due- All of this was ctrl+c -> ctrl+v from the LMCE forums.