Calvin and Hobbes + NASA Astronomy Picture of the Day

ihaveideas on reddit had an excellent idea.

I have been playing with ImageMagick recently so I figured implementing this would be good practice.

I think it works so far :-). Here are some results:

Pretty sweet, huh?

Code is available here. It’s kinda hacky right now, but it seems to work.
The bash script takes one argument, the URL of the APOD post. If no argument is given it defaults to the most recent post.

Possible future improvements: Write a program that runs this daily and sets it as your desktop background. That can wait until at least tomorrow.

9 Responses to “Calvin and Hobbes + NASA Astronomy Picture of the Day”

  1. philkav Says:

    Pictures look amazing,

    Looking forward to seeing how this works out for me :)

    Thanks!

  2. JoseBrox Says:

    Please, if you do the program for the desktop, or even a screensaver with this great idea, contact me!

    Thank you very much!

    Regards,
    Jose Brox

  3. Andrew Chen Says:

    Looks like your implementation downloads the preview picture (today the res on that is 900×700).
    The picture itself is a link to a larger one (1400×1271)

    I address this because the results are slightly fuzzy with the smaller image.

    I made the changes to increase res, as well as changes which optimize use as a cron job.
    [http://pastebin.com/ddK7jDqx](http://pastebin.com/ddK7jDqx)

  4. BobCox Says:

    Making the same thing but with a Spaceman Spiff crash-landing the red saucer-ship Background

  5. danieloop Says:

    It didn’t work for me with feh, so y changed it and now it works for me (only for gnome):
    http://pastebin.com/nhmJ2F3E

  6. ghostDancer Says:

    I can only say thanks. It’s wonderful.

  7. Add Set APOD (Astronomy Pic of the Day) to your desktop Background Automatically. | theguido.net projects Says:

    [...] and here: http://blog.marquiswang.com/2010/09/06/calvin-and-hobbes-nasa-astronomy-picture-of-the-day/ [...]

  8. Nona Mills Says:

    Making the same thing but with a Spaceman Spiff crash-landing the red saucer-ship Background

  9. Ruthie Copeland Says:

    Looks like your implementation downloads the preview picture (today the res on that is 900×700). The picture itself is a link to a larger one (1400×1271) I address this because the results are slightly fuzzy with the smaller image. I made the changes to increase res, as well as changes which optimize use as a cron job. [http://pastebin.com/ddK7jDqx](http://pastebin.com/ddK7jDqx)

Leave a Reply