This is an elaboration of the Universal FeedReader by Kaelri here using a modified version of Smurfier's LUA script here along with a smidgen of script from JS Morley's BreakingNews here.
What sets this skin apart from hundreds of other RSS/Atom FeedReaders is that:
1) It sorts news items by date/time so that you only see the ten most recent items from sites like the BBC and the Guardian (other FeedReaders just show a mish-mash of new and old stuff that is not sorted chronologicaly).
2) It shows 'bullet-marks' for all items that are less than an hour old ( you can change the value for how old you want a 'new' feed to be )
3) It trims Rainmeter Forum Feeds down to the topic titles.
Download from DA
It is currently March 19th, 2024, 5:49 am
FeedReader w/ sorting
FeedReader w/ sorting
Last edited by Mordasius on April 12th, 2012, 11:55 am, edited 1 time in total.
- Benjamin Linus
- Posts: 163
- Joined: July 12th, 2009, 4:05 pm
- Location: The Island
- Contact:
Re: FeedReader w/ sorting
Very useful indeed, thanks for sharing.
Re: FeedReader w/ sorting
You're welcome.Benjamin Linus wrote:Very useful indeed, thanks for sharing.
I'm still not fully confident in the script I've used to work out the time zone each feed uses for the Publication Date and have noted that it is not only the BBC and the Guardian that don't sort news feeds by time/date, but also other 'big names' like the New York Times (http://feeds.nytimes.com/nyt/rss/HomePage). Makes me wonder how many people are sitting out there with feedreaders updating every 10-20 minutes only to show old news items.
Anyway, the code I've used in the Lua script is:
Code: Select all
function PubTime(itemDate)
local tTimeZoneHrs={JST=9;PST=-8;PDT=-7;KST=9;CCT=8;WST=8;EET=2;BRT=-3;EDT=-4;CDT=-5;CST=-6;}
local tMonthNum={Jan=1;Feb=2;Mar=3;Apr=4;May=5;Jun=6;Jul=7;Aug=8;Sep=9;Oct=10;Nov=11;Dec=12;}
local weekday, day, monthText, year, hour, min, sec, zone = string.match(itemDate, "(.-), (.-) (.-) (.-) (.-):(.-):(.-) (.-)<")
local PubTime = os.time({year=year, month=tMonthNum[monthText], day=day, hour=hour, min=min, sec=sec})
if tTimeZoneHrs[zone] then PubTime = PubTime - ( tTimeZoneHrs[zone] * 3600 )
elseif tonumber(zone) then PubTime = PubTime - ( (tonumber(zone) / 100) * 3600 ) end
return PubTime
Re: FeedReader w/ sorting
It occurs to me that I've been a bit of a willy-wonker in starting a new thread for this: it should have been added to the [Proof of Concept] Universal Feed Reader thread. Would it be possible for one of the Administrators to shift this thread over to where it belongs? Pls.
FeedReader w/ sorting
Since you combined a couple scripts and did provide reference links, this thread is fine where it is. No reason to bog down a lengthy older thread with new posts.
Re: FeedReader w/ sorting
This is great, however I'd like to know how to make it stop switching to feeds seemingly at random.
Re: FeedReader w/ sorting
It's not actually switching at random, it switches to show a particular feed each time that feed is updated.
Re: FeedReader w/ sorting
I see. Can I make it stop?
Re: FeedReader w/ sorting
Sure, all you need to do is replace [MeasureFeed], [MeasureFeed2], [MeasureFeed3], [MeasureFeed4] and [MeasureFeed5] in UniFeedReader.ini with these:sclera wrote:I see. Can I make it stop?
Code: Select all
;--- measures
[MeasureFeed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#URL1#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
FinishAction=!Execute [!EnableMeasure MeasureLuaScript ] [!ShowMeterGroup Feeds]
UpdateRate=#UpdateRate1#
[MeasureFeed2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#URL2#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
UpdateRate=#UpdateRate2#
[MeasureFeed3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#URL3#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
UpdateRate=#UpdateRate3#
[MeasureFeed4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#URL4#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
UpdateRate=#UpdateRate4#
[MeasureFeed5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#URL5#
RegExp=(?siU)(.*)$
DecodeCharacterReference=1
Substitute=#WebParserSubstitute#
UpdateRate=#UpdateRate5#
Re: FeedReader w/ sorting
Cheers!