RSS weather ticker rules

1,476 views
Skip to first unread message

Jason

unread,
Mar 7, 2011, 6:17:22 PM3/7/11
to Concerto Digital Signage
Here's the serialized rules for an RSS ticker feed of weather from
rssweather.com. The RSS from that site is free of markup and treats
each day's forecast as a separate item in the feed, resulting in a
nice looping feed of weather information in your ticker area. Get
your RSS URL from rssweather.com and follow the instructions for
creating dynamic content, using this rule set:

a:4:{s:7:"type_id";i:2;s:17:"items_per_content";i:1;s:9:"max_items";i:
0;s:6:"repeat";a:3:{s:5:"xpath";s:12:"channel/item";s:8:"template";s:
23:"<i>%%1%%</i><br />%%2%%";s:9:"bailiwick";a:2:{i:0;a:3:{s:2:"id";i:
1;s:4:"type";s:3:"xml";s:5:"value";s:5:"title";}i:1;a:3:{s:2:"id";i:
2;s:4:"type";s:3:"xml";s:5:"value";s:11:"description";}}}}}

You'll see that I've made the title appear in italics, followed by a
line break then the weather item. Hope you like it!

Scott Kiser

unread,
Mar 7, 2011, 7:06:29 PM3/7/11
to concerto-dig...@googlegroups.com
How cool is this?? Thanks Jason!

(sent from my mobile phone)

--Scott Kiser
Network, Telecom and Systems
Ivy Tech Community College - Northeast

> --
> You received this message because you are subscribed to the Google Groups "Concerto Digital Signage" group.
> To post to this group, send email to concerto-dig...@googlegroups.com.
> To unsubscribe from this group, send email to concerto-digital-s...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/concerto-digital-signage?hl=en.
>

Stephen Lester

unread,
Mar 8, 2011, 10:10:01 AM3/8/11
to concerto-dig...@googlegroups.com
That doesn't seem to work for me. How about you Scott?
I'm using this rss link
http://www.rssweather.com/wx/us/ga/atlanta/rss.php

-
Stephen Lester - RHCT, CCNA, MCP
System Administrator - Systems Support Specialist I
School of Physics - Georgia Tech

Scott Kiser

unread,
Mar 8, 2011, 12:22:04 PM3/8/11
to concerto-dig...@googlegroups.com
The URL does not yield much when you view it in a web browser, but when you view the source you can see the data.  I will create the feed in Concerto and respond again after I've tested it. 


Scott Kiser

unread,
Mar 8, 2011, 1:11:28 PM3/8/11
to concerto-dig...@googlegroups.com
Aha!  Figured it out... the way the rule was written is to dump RSS items as ticker items, which doesn't work well in my template.  :)  I altered the rule to create text items (type 1) and to give a clear headline to each item. See if this ruleset works for you Stephen: 

a:4:{s:7:"type_id";i:2;s:17:"items_per_content";i:1;s:9:"max_items";i:
0;s:6:"repeat";a:3:{s:5:"xpath";s:12:"channel/item";s:8:"template";s:
23:"<i>%%1%%</i><br />%%2%%";s:9:"bailiwick";a:2:{i:0;a:3:{s:2:"id";i:
1;s:4:"type";s:3:"xml";s:5:"value";s:5:"title";}i:1;a:3:{s:2:"id";i:
2;s:4:"type";s:3:"xml";s:5:"value";s:11:"description";}}}}}

Scott Kiser

unread,
Mar 8, 2011, 1:29:05 PM3/8/11
to concerto-dig...@googlegroups.com
Oh frak!  I pasted the old ruleset, sorry! 

Here's the way it actually looks in my database:

a:4:{s:7:"type_id";i:1;s:17:"items_per_content";i:1;s:9:"max_items";i:0;s:6:"repeat";a:3:{s:5:"xpath";s:12:"channel/item";s:8:"template";s:32:"<h3><i>%%1%%</i></h3><br />%%2%%";s:9:"bailiwick";a:2:{i:0;a:3:{s:2:"id";i:1;s:4:"type";s:3:"xml";s:5:"value";s:5:"title";}i:1;a:3:{s:2:"id";i:2;s:4:"type";s:3:"xml";s:5:"value";s:11:"description";}}}}}

Stephen Lester

unread,
Mar 8, 2011, 1:34:30 PM3/8/11
to concerto-dig...@googlegroups.com
ok that seems to work but it is formated for some large text. i'll have to mess around with it and see what I can do. but something is better then nothing.

sylvain prevost

unread,
May 4, 2011, 3:11:32 AM5/4/11
to concerto-dig...@googlegroups.com
heloo,
 
what is the type of the zone i have to put to have the rss feed on the screen (in the xml template)?
Reply all
Reply to author
Forward
0 new messages