RSS Update Macro for Quartz Composer

qc_rssThe RSS feed functionality of apple’s Quartz Composer development tool has a lot of potential for creating dynamically generated information, but it leaves a little to be desired if you have data that is updating quickly. Quartz Composer’s RSS patch uses Safari’s RSS feed functions, which only get refreshed at a minimum of every 30 minutes. I’ve created a Custom Macro Patch that is similar to the standard Quartz Composer RSS Feed, but adds a “Duration” input that causes the RSS Feed to refresh after the specified time.

I threw it together for an information display that needed to be updated quickly at an event. The safari update times were too long, but I noticed that If I specified a new URL for the RSS Feed module it would initiate a new download of the information. So all I needed a way to change the URL string without really changing where the RSS Feed was pointing.

So what I hacked together was a function that adds a nonsense GET variable onto the URL string called “qcfoo”, and set it as the value of a counter. Every web server that I’ve tried it on so far will just ignore the GET variable when it receives the request, but when the counter changes, the RSS Feed is refreshed in Quartz Composer.

For example, when you feed in
http://www.apple.com/main/rss/hotnews/hotnews.rss”,
the URL string input for the RSS Feed patch really is “http://www.apple.com/main/rss/hotnews/hotnews.rss?qcfoo=1″, then
http://www.apple.com/main/rss/hotnews/hotnews.rss?qcfoo=2″, then
http://www.apple.com/main/rss/hotnews/hotnews.rss?qcfoo=3″, etc.

Not very pretty, but it works. I’m open to improvements.

Note: You may need to “Right-Click, Save As” to download.

About these ads

About ejk

Software Developer, Library Geek, Dad, Sports Fan, Gamer

Posted on April 26, 2006, in Geekery and tagged , , . Bookmark the permalink. 6 Comments.

  1. Thank you so much for this. It’s so hard to find good quartz composer information and this is exactly what I was looking for.

  2. Question. How do I download the macro? I cannot find a file anywhere.

    Thanks,

    Charles

  3. Hey,

    nice idea :-)

    But how to use this patch? Where is the URL-Field in your Macro? Need it something like a String-Input at the “URL”-Port?

    Pls gimme a hint :-)

    greetingx,
    -der.helge

  4. Just to note: der.helge also contacted me by email, and I’m happy to announce that it is working.

  5. Did you by any chance get a reply to this question, because I don’t have any idea how to implement this patch either!

    Eeyore

  6. Sorry for the request of repeat information, but how the devil do you actually make this work with the stock rss feed screensaver that comes as a template in quartz composer?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 449 other followers

%d bloggers like this: