You are not logged in.

#1 2009-09-27 20:13:54

RedScare
Member
Registered: 2009-03-28
Posts: 91

[SOLVED] Conky can't scroll more than three rss feeds

I created a horizontal conky config (works quite well in dwm, i also modified the dwm code so that pressing a hotkey creates a space of variable height on the bottom of the screen and runs a program, presumably to place information in that new space. The same hotkey removes this space and kills the program. Very useful), in which I want to scroll breaking news feeds. The first three rss titles scroll fine, but after the third title all I get is a single letter, and the rest of my six titles don't show up. The relevant part of my .conkyrc:

${scroll 82 5 ${rss http://feeds.cbsnews.com/CBSNewsMain 15 item_title 0} | ${rss http://rss.cnn.com/rss/cnn_latest.rss 15 item_title 0} | ${rss http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml 15 item_title 0} | ${rss http://feeds.cbsnews.com/CBSNewsMain 15 item_title 1} | ${rss http://rss.cnn.com/rss/cnn_latest.rss 15 item_title 1} | ${rss http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml 15 item_title 1}}

So where the phrase "title X" is a proper title, my output looks like this (while it is scrolling):

"title 1" | "title 2" | "title 3" | [random letter]

I would be very grateful to anyone who could point out the problem. Thank you.

Things I have tried to fix this (so far, will update as posts grow): change the item title (all or just the third or fourth) number, remove extra feeds. It seems that three is the limit for some reason.

WORKED: change the source so that when the rss item gets the "action" item_titles, it separates by " | " instead of newlines. Changed all instances of item_title to item_titles and removed duplicate feeds.

Last edited by RedScare (2009-09-27 21:15:04)

Offline

#2 2009-09-27 20:29:02

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] Conky can't scroll more than three rss feeds

If you look at conky's man page for rss it says that "One thread will run for each URI specified."

Since you are having issues when you tried to add the second one,  my guess is that it's just running into that original thread that was opened for that uri.   Since you are trying to grab 2 titles from the same URI, you may need to change your item_title to item_titles, and then just have it grab the first 2 titles.  (how, I don't have clue)


Knute

Offline

#3 2009-09-27 20:35:49

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: [SOLVED] Conky can't scroll more than three rss feeds

Thanks, that makes sense. So now I see where the problem is.

Now the second problem is that if I change item_title to item_titles, the titles are separated by newlines, which I cannot have given a horizontal conky setup. Any ideas?

Thanks a lot for your answer.

Offline

#4 2009-09-27 20:49:26

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] Conky can't scroll more than three rss feeds

Ideas?

Nothing short of modifying the code to take out the line feed, no.

According to this:   http://wiki.archlinux.org/index.php/Con … s_in_Conky

it's apparently set up that way on purpose.


Knute

Offline

#5 2009-09-27 21:13:53

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: [SOLVED] Conky can't scroll more than three rss feeds

Well, I followed your great advice and I changed the conky source code so that instead of separating titles by newlines, the rss command separates titles by " | ". Works like a charm.

Thanks for your help.

Offline

#6 2009-09-27 23:15:58

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] Conky can't scroll more than three rss feeds

LOL  You are most welcome..... perhaps, if you were to make another case and submit the patch, they conky devs might incorporate it.  smile


Knute

Offline

#7 2009-09-28 03:08:17

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: [SOLVED] Conky can't scroll more than three rss feeds

I'm too lazy to make a new case, and I've never made a patch before, so unless someone else really wants this I'll probably keep it to myself.
Or until I get really bored:) Thanks again though.

Offline

Board footer

Powered by FluxBB