Difference between revisions of "Flickr"
From LinuxMCE
Jimmejames (Talk | contribs) |
Jimmejames (Talk | contribs) |
||
Line 41: | Line 41: | ||
return to the console, and press "Enter" as specified. | return to the console, and press "Enter" as specified. | ||
− | Edit flickrfetchr's configuration | + | Edit flickrfetchr's configuration files: |
pico /etc/flickrfetchr.conf | pico /etc/flickrfetchr.conf | ||
Line 87: | Line 87: | ||
] | ] | ||
− | Save and close the *.conf file; then | + | Save and close the *.conf file; then do the same copy/paste for the following files: |
+ | sudo pico /root/.flickrfetchr.conf | ||
+ | sudo pico /home/linuxmce/.flickrfetchr.conf | ||
+ | |||
+ | After saving and closing those, | ||
sudo flickrfetchr.rb --verbose | sudo flickrfetchr.rb --verbose | ||
Revision as of 18:50, 31 December 2008
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 files:
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 ]
Save and close the *.conf file; then do the same copy/paste for the following files:
sudo pico /root/.flickrfetchr.conf sudo pico /home/linuxmce/.flickrfetchr.conf
After saving and closing those,
sudo flickrfetchr.rb --verbose
I wrote this as I was trying to get mine working... will update with progress.
- Giving credit where credit is due- All of this was ctrl+c -> ctrl+v from Roy and the LMCE team on the LMCE forums.