cc2_rss Request

jc634

Administrator
jdgordon,

A request to enhance your rss/sml plugin. I currently read 3 lines to display from weather.com The 3 lines as displayed are as follows:

WeatherClicks - Marion, Iowa Weather
Sun, 06 Mar 2005 09:52:00 CST
Current Weather - 55F Clear

Would it be possible to to add code to truncate the text as received from an rss/xml feed? From the above, I would like to have it display the following:

Marion, Iowa Weather
Sun, 06 Mar 2005 09:52
55F Clear

As you can see, I have removed text from the beginning and end.

Possible?

Jim
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

daks001

New member
jc634 said:
jdgordon,

A request to enhance your rss/sml plugin. I currently read 3 lines to display from weather.com The 3 lines as displayed are as follows:

WeatherClicks - Marion, Iowa Weather
Sun, 06 Mar 2005 09:52:00 CST
Current Weather - 55F Clear

Would it be possible to to add code to truncate the text as received from an rss/xml feed? From the above, I would like to have it display the following:

Marion, Iowa Weather
Sun, 06 Mar 2005 09:52
55F Clear

As you can see, I have removed text from the beginning and end.

Possible?

Jim
You can do some of that now, with the start and end statements, for example, the current weather and location can be done like;

Code:
item00_start="<title>Current"
item00_end=</title>" 

item01_start="<title>WeatherClicks -"
item01_end=</title>"
 

jc634

Administrator
Re: Re: cc2_rss Request

daks001 said:
You can do some of that now, with the start and end statements, for example, the current weather and location can be done like;

Code:
item00_start="<title>Current"
item00_end=</title>" 

item01_start="<title>WeatherClicks -"
item01_end=</title>"
Duh!

I had not used the start/end method, so of course, I did not think of using it!

It does work on both beginning and end. My code as follows:

from="cc2_rss.ini"
sec="feed-#"
opt01="url=http://www.weatherclicks.com/xml/52302"
opt02="interval=60"
opt03="item00_id=@01"
opt04="item00_start=<title>WeatherClicks -"
opt05="item00_end=</title>"
opt06="item01_id=@02"
opt07="item01_start=<pubDate>"
opt08="item01_end= CST</pubDate>"
opt09="item02_id=@03"
opt10="item02_start=<title>Current"
opt11="item02_end=</title>"


I left the date at Sun, 06 Mar 2005 09:52:00 simply because I am not sure if it always be :00.

Thanks for the lesson.;)

So, for the moment, cancel my request. It is not needed!

Jim
 

jdgordon

New member
always happy to help out :D

i do wanna make it a bit more powerful tho coz even with the start/end there is still some sites that is difficult to get what u actually want...

also, yould be happy to hear im working on a gui for it which will let u just highlight the text you want and it will setup the start/end and count automatically :)
________
FERRARI FX SPECIFICATIONS
 
Last edited:

jc634

Administrator
jdgordon said:


also, yould be happy to hear im working on a gui for it which will let u just highlight the text you want and it will setup the start/end and count automatically :)
Sweet!:D

Jim
 
Top