Since Alex was born I’ve found it impossible to keep an up to date printed picture of him in my office. He grows way to fast... So instead of printing a picture every day I created a home grown browser homepage that was on my hard drive. On it was a script that displayed two random digital images from a collection I defined. It’s a very cool solution and since I use a web browser almost all day, it’s even better than printed pictures that stay at my desk.
I’ve wanted to start using Google’s personalized home pagefor a while, but they were missing my/any image viewer. Until Now... Google recently released an API for anyone to use to create module for their home page. So I created the My Photos Module myphotos_googleig.xml.
The My Photos Google ig module will randomly display pictures from
flickr based on two simple settings "Flickr Username" and "Tags". Only pictures that are in that
flickr user’s account (Flickr Username) and have at least one of the
tags you entered are displayed.
- Displays either 1 or 2 random images depending on the image shape. (If an image is higher than wide, it is displayed alone.)
- Status messages during image load
- Error message with fix tips when there is an invalid username or tags that returns no images.
- Integrated help
- Works in Firefox and Internet Explorer
To use this module on your googel ig page:
- Goto http://www.google.com/ig and sign in (top right)
- Click on "Add Content" on the top left of the page.
- Click on "Create a Section" on the resulting left menu.
- Enter the url to the myphotos_googleig.xml module into the "Create a Section" text box and click "Go". You can get the url by clicking on this text box and copying the text
- You’ll get a mild warning message about the fact that google didn’t write this module… Click "OK" unless you think I’m evil... I’m not, but if I were I probably wouldn’t admit it here.
- The Module will appear and prompt you for settings:
- Flickr Username: ( Example: jjrussell ) Your flicker username appears at the top of the page when your logged into flickr.
- Tags: ( Example: soulshine )
You can learn about flickr tags here.
- Don't put anything in the Flicker UserID field: its a power user field...
Details are below.
- Click save
- Share and enjoy!
Using the example settings jjrussell and soulshine will get you a bunch of pictures of this band I’m in called Soulshine.
Some other Useful info:
Not seeing all your images? If you've recently changed your tags and aren't seeing all the pictures you expect to see, it could be a problem with flickr. See this flickr faq entry for more information.
Flicker UserID (power users only) Flickr requires this module to look up a flickr internal userID. This happens each time this module loads. To speed up the first time load, add your flickr user id found at the bottom of the help page on the My Photos module
IMPORTANT: If you ever want to change users. you should delete any value you have in the UserID field as it overrides anything you type in the username field.
This module turned out to be fairly complicated. Some interesting things I learned while working on this module.
- flickr is extremely cool. Their API and documentation are very well put together. At the bottom of each method definition is a API Explorer link to a page where you can actually try out the method and see sample return xml... Very slick stuff!
- I was also very impressed with the Google Homepage API documentation. As usual, they made it very easy to get started.
- jEdit is a great editor for this type of development. My bookmarks plugin got a lot of mileage on this project.