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.
Benjamin Linus wrote:Very useful indeed, thanks for sharing.
You're welcome.
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.
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
This works on the feeds where I've tested it, but different feeds format the Publication Date in different ways and I'd therefore appreciate any feedback you have on the bulleting of 'new' items for the feeds you are using.
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.
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.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .