Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Tips and Tricks  >  Thread
   
 
Custom Rss Feed
 
touficjohn
Posted: 26 May 2009 12:55 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  11
Joined  2009-05-19

Is it possible to create a custom RSS feed?
I ask because I use rainmeter as a desktop RSS reader and would love to have my actions displayed on my desktop.

But for some reason it only displays every other action in the feed. If I could create my own I would format it in such a way for it just to show the titles.

Failing that, would anyone who is more gifted than I in these things care to take a look at the rainmeter code and see if there is anything to be done there instead?

[RSS]
Measure
=Plugin
Plugin
=Plugins\WebParser.dll
Url
=#URL#
RegExp="(?siU)<title>(.*)<\/title>(?(?=.*<lastBuildDate>(.*)<\/lastBuildDate>))(?(?=.*<link>(.*)<\/link>.)).*<description>(.*)<\/description>(?:(?:.*<url>(.*)<\/url>)|.*).*<item(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)"
UpdateRate=#update.Spd# 

Thanks alot

Profile
 
Reinier Balt
Posted: 27 May 2009 07:46 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

If you want to create your own feed, you need to change the code of tracks. Tracks is using the default rails helpers to generate the rss, so this will not be easy… I hope some regexp wizzard can look at the regexp you quoted above grin

Profile
 
touficjohn
Posted: 27 May 2009 11:37 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-05-19

Thanks Reiner, I had a feeling it would’nt be easy, I had a look myself and did’nt find it too straightfroward.

Maybe there’s a way I can hack the txt and turn that into an RSS feed?

Edit:
Ok I suppose I could wget the txt file every x hours/minutes and get rainmeter to display that.
The only problem is that wget fails on the authentication.
Is there a way to put my username and password in the url to my todos.txt?

Profile
 
touficjohn
Posted: 01 June 2009 02:09 PM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-05-19

*shameless bump*
wget todos.txt anyone? smile

Profile
 
Reinier Balt
Posted: 02 June 2009 08:51 AM   [ Ignore ]   [ # 4 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

sorry for the late reply. I got burried the past couple of days.

you can use the url that can be found on your feeds page. The url should contain your security token.

Profile
 
touficjohn
Posted: 02 June 2009 10:25 AM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-05-19

HTTP request sent, awaiting response… 401 Unauthorized
Authorization failed.
‘token’ is not recognized as an internal or external command,
operable program or batch file.

:(

Wget for windows doesnt realise im giving it a whole url… pos…

EDIT:

Ok I’m and idiot.
I didnt wrap the url with “”.
So now I have a batch script that gets my todos.txt renames it to tracks.txt and my upcoming tasks are now displayed on my desktop! smile

Image Attachments  tracks.jpg
Click thumbnail to see full-size image
Profile
 
Reinier Balt
Posted: 02 June 2009 01:19 PM   [ Ignore ]   [ # 6 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

great! congrats

Profile
 
   
 
 
‹‹ Tracks User’s Manual      Formatting feeds? ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1113 seconds

Atom Feed
RSS 2.0