It is currently May 1st, 2024, 11:10 pm

Help with RSS Feed Skin

Get help with creating, editing & fixing problems with skins
Sabre Blade
Posts: 3
Joined: September 28th, 2012, 10:56 am

Help with RSS Feed Skin

Post by Sabre Blade »

Alright, noob question incoming.

I recently downloaded and installed rainmeter, and I saw that you could use RSS feeds with one of the skins. So, I tried to find a way to use my own favourite feed instead of LifeHacker, but I couldn't find out how to get the feed to work.

Code: Select all

[measureFeed]
; WebParser measures are relatively complicated. If you're a beginner with
; Rainmeter, take a look at some of the other illustro skins before modifying this one.
Measure=Plugin
Plugin=WebParser.dll
Url=http:http://aussie-gamer.com/feed/
RegExp="(?siU)<h1>(.*)</h1>#getItem##getItem##getItem##getItem##getItem##getItem##getItem##getItem#"
UpdateRate=1500
StringIndex=1
Substitute="":"N/A"
; Substitute works as follows: "A":"B" where A is a string to substitute and B is a string
; to substitute with. In this case, it substutes "" (i.e. empty) to N/A
Now, I've tried to replace the feed URL with the one I wanted to use, but it doesn't seem to be the right URL or I've placed it in the wrong line. Would one of you kind gentlemen help me out with this?

Also, if I've just missed something really obvious (Like a how-to in the FAQ or manual) then I heavily apologise for my ignorance. However, I am stumped and would love help.

Cheers.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Help with RSS Feed Skin

Post by MerlinTheRed »

Not all rss feeds have the same format. That's why if entering a new url you often also have to change the RegExp setting of the WebParser measure. There is however a Lua script written by Kaelri that can parse quite a lot of different feed formats without the need to change any settings. It might be very easy to adapt your skin to use it. See this thread for more information.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
Sabre Blade
Posts: 3
Joined: September 28th, 2012, 10:56 am

Re: Help with RSS Feed Skin

Post by Sabre Blade »

I will check it out, and hopefully it works.

Thank you very much!

EDIT: I've got a problem. I don't know what to do with this tool.

I have very little programming knowledge, so I don't know how to use this.

I've tried copying and pasting the code while following the directions but I can't make heads nor tails of it.

Can someone a little more code-savvy be able to help?
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Help with RSS Feed Skin

Post by Mordasius »

You put the url in the wrong place. You need feedURL=http://aussie-gamer.com/feed/ Edit the Feeds.ini file so that it looks like this (or just cut and paste):

Code: Select all

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
getItem=.*(?(?=.*<div class="item">).*<div class="item">.*<a href="(.*)">(.*)</a>)
;feedURL=http://feeds.gawker.com/lifehacker/full
feedURL=http://aussie-gamer.com/feed/
; edit feedURL to change displayed feed

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------
[measureFeed]
; WebParser measures are relatively complicated. If you're a beginner with
; Rainmeter, take a look at some of the other illustro skins before modifying this one.
Measure=Plugin
Plugin=WebParser.dll
Url=http://www.google.com/reader/view/feed/#feedURL#?n=8
RegExp="(?siU)<h1>(.*)</h1>#getItem##getItem##getItem##getItem##getItem##getItem##getItem##getItem#"
UpdateRate=1500
StringIndex=1
Substitute="":"N/A"
Sabre Blade
Posts: 3
Joined: September 28th, 2012, 10:56 am

Re: Help with RSS Feed Skin

Post by Sabre Blade »

It works! Thank you both very much. I appreciate your time spent helping me out.

Cheers!