Friday, February 01, 2008

OPAA (On Pictures And Acronyms)

I had this idea to add Wikipedia Picture of the Day to the Frame applet and as there are many Pictures of the Day around, I started an engine to fetch them, based on the Comic engine code (which is great btw, thanks Tobias!) So far I did 3 providers: APOD (Astronomy Picture of the Day), EPOD (Earth Science Picture of the Day), no, IPOD is not the 3rd one actually, it's OSEI which displays NOAA weather satellite images. The Wikipedia one is probably the most difficult to code, the ones above are quite easy, the only trick it to extract the pic name (varies each day) using QRegExp and some math calculations from the http source of the main page. I'll check tomorrow if the various providers still display the new pic...
At the moment, I did not include this in the Frame code (except locally for testing). I don't want to overload the Config Dialog GUI which will be redesigned by Jeremy (jpwhiting) to match the Desktop background setting dialog as both have quite the same functionalities. The only addition Frame has is to configure the Frame border. I also plan to have a right click setting which will allow to put the current Frame picture as a wallpaper.
Plasma is still very much a WIP (Work In Progress) but as you can see from the Planet posts, we're moving forward!
The pic shows today's APOD which is the first Explorer, launched 50 years ago!

8 comments:

Andre Moreira Magalhaes (andrunko) said...

Hi Anne,

Great to see the progress of the POTD work. I will take a look at the code rsn.
Regarding the config UI, I already changed it to match the desktop background config dialog, what else needs to be done?

Loïc said...

Hi annma,

you may want to have a look at the Wikipedia POTD fetcher I wrote for SoC 2007. You'll find it under kdepim/korganizer/plugins/picoftheday/. Feel free to ask for help if the code doesn't speak loudly enough for itself :)

Loïc

Unknown said...

Hi!

Could you please add support for Wikimedia Commons picture of the day?

Wikimedia Commons is freely licensed multimedia files repository shared with all Mikimedia Foundation projects (including Wikipedia on all languages).

Image captions are also often translated to different languages there.

Thank you,
Eugene.

annma said...

@andruko: thanks for improving the config UI! What I'd like to add is maybe to fill the empty space under Picture (in single picture mode) with a preview of the pic. Also we need to add the PoTD engines, the idea JPWhiting submitted is to add an entry in the top combobox and have a new stack.
@loic: I did not know about your plugin! However I already used the KIO method to get the picture (a few months ago, the WPoTD was integrated already to the Frame) but KIO was too slow for the job. I'll investigate it more again as now the picture is cached by the engine so only the first fetch is a problem.
@eugene: when I write Wikipedia, it includes Wiki commons pic as well. I use as reference the following page:http://tools.wikimedia.de/~daniel/potd/potd.php which offers nice information on how to get the various pictures.

Thanks everyone for your comments!

Unknown said...

Hi!

I'm happy to hear that!

Is it also possible to organize similar service for fetching desctop wallpapers from Wikimedia Commons featured images?

Eugene.

annma said...

Eugene please issue a bug report as a wish for this idea. I am not sure how we can easily extract the information from the wiki page, this has not been designed for such a service ( a RSS feed for ex would be easier) but it should be possible. Thanks for your suggestions!

pfctdayelise said...

Hi annma,

Good news, there is a feed already! :)

Wikimedia Commons Featured Pictures category feed

Because it is a wiki, it is possible people can add pictures to the category that are actually not FPs, however I have been watching the feed for several months and have only seen it happen twice, so I do not think it is a major problem.

cheers!

Unknown said...

Hi!

I noticed in latest Commit Digest (http://commit-digest.org/issues/2008-02-10/ ) that Wikimidea Commons support is already in SVN.

Thank you for help!