It is currently March 28th, 2024, 10:45 pm

How do I change the feeds?

Get help with creating, editing & fixing problems with skins
lifeofbrian
Posts: 10
Joined: April 22nd, 2017, 10:09 pm

How do I change the feeds?

Post by lifeofbrian »

How do I change the feeds? I can see the "gamespot" text for example, but not where I change the link to the feed.

Thanks. :)

Code: Select all

google[Rainmeter]
Update=1000
Author=99villages
ContextTitle="Neon Settings"
ContextAction=[!ToggleConfig "Neon Space\-Settings" "Option.ini"]



[Variables]
@Include=#ROOTCONFIGPATH#\@Resources\Variables.inc
@Include2=#ROOTCONFIGPATH#\@Resources\Styles.inc
@Include3=#ROOTCONFIGPATH#\@Resources\Links.inc

Color1=#UniPrime#
Color2=#UniSec#
Color3=#Uni3D#
Color4=#UniBorder#
Color5=#UniReflec#
UpDiv=20

FeedsBGSingle=#@#Images/Feeds/FeedsBg.png
FeedsBGDouble=#@#Images/Feeds/FeedsBG2.png
FeedsBG3D=#@#Images/Feeds/Feeds3D.png
Glassborder=#@#Images/Feeds/Glassborder.png
Glassreflec=#@#Images/Feeds/GlassReflec.png
pix=#@#\Images/Feeds/pix.png
Bright=#@#\Images/Feeds/Bright.png
Scanlines=#@#\Images/Feeds/Scanlines.png
Hive=#@#\Images/Feeds/Hive.png
Aero=#@#\Images/Feeds/Aero Glass.png



SubstituteFeed="&apos;":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","&#228;":"ä","&#246;":"ö","&#8211;":"–"
SubstituteLink="&":"&","<![CDATA[":"","]]>":""


Width=270
RSS=http://news.google.com/news?pz=1&ned=us&hl=en&topic=h&num=10&output=rss
RSStitle=Google News

;--------------------------------------BGs

[MeterFeedsBG]
Meter=Image
ImageName=#FeedsBGSingle#
ImageTint=#Color1#
X=0
Y=0
UpdateDivider=-1

[MeterGlassborder]
Meter=Image
ImageName=#pix#
ImageTint=#Color4#
X=9
Y=9
UpdateDivider=-1
Hidden=0

[MeterGlassreflec]
Meter=Image
ImageName=#pix#
ImageTint=#Color5#
X=-2r
Y=r
UpdateDivider=-1
Hidden=0


;-------------------------------------------------Details-------------------------------------------------

[MeterBright]
Meter=Image
ImageName=#Bright#
ImageTint=#Color1#,
x=0
y=0
UpdateDivider=-1


[MeterScanlines]
Meter=Image
ImageName=#Pix#
ImageTint=#Color1#
x=r
y=r
UpdateDivider=-1


[MeterHive]
Meter=Image
ImageName=#pix#
ImageTint=#Color1#,
x=r
y=r
UpdateDivider=-1


[MeterAero]
Meter=Image
ImageName=#pix#
ImageTint=#Color1#,
x=r
y=r
UpdateDivider=-1



[Metericonrss]
Meter=Image
ImageName=#@#Images/Feeds/iconrss.png
ImageTint=#Color2#
X=25
Y=20
UpdateDivider=-1


[Feed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#RSS#
RegExp="(?siU)<title.*>(.*)</title>.*<link.*>(.*)</link>.*<item.*<title.*>(.*)</title>.*<link.*>(.*)</link>(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)(?(?=.*<item).*<title.*>(.*)</title>.*<link.*>(.*)</link>)"
UpdateRate=1200
StringIndex=1
Substitute=#SubstituteFeed#

[FeedURL]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=2
Substitute=#SubstituteFeed#

[MeasureItem1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=3
Substitute=#SubstituteFeed#

[MeasureLink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=4
Substitute=#SubstituteLink#

---

[MeasureItem2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=5
Substitute=#SubstituteFeed#

[MeasureLink2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=6
Substitute=#SubstituteLink#

---

[MeasureItem3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=7
Substitute=#SubstituteFeed#

[MeasureLink3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=8
Substitute=#SubstituteLink#

---

[MeasureItem4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=9
Substitute=#SubstituteFeed#

[MeasureLink4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=10
Substitute=#SubstituteLink#

---

[MeasureItem5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=11
Substitute=#SubstituteFeed#

[MeasureLink5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=12
Substitute=#SubstituteLink#

---

[MeasureItem6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=13
Substitute=#SubstituteFeed#

[MeasureLink6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=14
Substitute=#SubstituteLink#

---

[MeasureItem7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=15
Substitute=#SubstituteFeed#

[MeasureLink7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=16
Substitute=#SubstituteLink#

---

[MeasureItem8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=17
Substitute=#SubstituteFeed#

[MeasureLink8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=18
Substitute=#SubstituteLink#

---

[MeasureItem9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=19
Substitute=#SubstituteFeed#

[MeasureLink9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=20
Substitute=#SubstituteLink#

---



; ------------------------------------------------------------------------------------------------
; STYLES

[StyleItem]
X=50
Y=20r
H=18
W=#width#
ClipString=1
StringStyle=NORMAL
FontColor=#Color1#
FontSize=11
FontFace=#Font1#
AntiAlias=1

MouseOverAction=[!SetOption "#CURRENTSECTION#" FontColor "#color2#"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" FontColor "#color1#"][!UpdateMeter #CURRENTSECTION#][!Redraw]

[StyleLink]
X=r
Y=r
H=18
W=#width#
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=11
FontFace=#Font1#
AntiAlias=1
Hidden=1
MouseOverAction=[!SetOption "#CURRENTSECTION#" FontColor "#color2#"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" FontColor "#color1#"][!UpdateMeter #CURRENTSECTION#][!Redraw]

; ------------------------------------------------------------------------------------------------
; METERS




[Title]
Meter=STRING
MeasureName=Feed
Text="#RSStitle#"
X=330
Y=20
H=15
W=150
FontColor=#Color2#
FontSize=18
FontFace=#Font1#
AntiAlias=1
StringAlign=Right

[TitleActive]
Meter=STRING
MeterStyle=Title
MeasureName=Feed
FontColor=#ColorActive#
SolidColor=0,0,0,1
Hidden=1
StringEffect=SHADOW



;-----------------------
; ITEMS

[Item1]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem1
Y=55
LeftMouseDownAction=!execute [!RainmeterShowMeter Link1][!RainmeterHideMeter Item1][!RainmeterRedraw]


[Link1]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem1
LeftMouseUpAction=!Execute [[MeasureLink1]][!RainmeterShowMeter Item1][!RainmeterHideMeter Link1][!RainmeterRedraw]

[Item2]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem2
LeftMouseDownAction=!execute [!RainmeterShowMeter Link2][!RainmeterHideMeter Item2][!RainmeterRedraw]

[Link2]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem2
LeftMouseUpAction=!Execute [[MeasureLink2]][!RainmeterShowMeter Item2][!RainmeterHideMeter Link2][!RainmeterRedraw]

[Item3]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem3
LeftMouseDownAction=!execute [!RainmeterShowMeter Link3][!RainmeterHideMeter Item3][!RainmeterRedraw]

[Link3]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem3
LeftMouseUpAction=!Execute [[MeasureLink3]][!RainmeterShowMeter Item3][!RainmeterHideMeter Link3][!RainmeterRedraw]

[Item4]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem4
LeftMouseDownAction=!execute [!RainmeterShowMeter Link4][!RainmeterHideMeter Item4][!RainmeterRedraw]

[Link4]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem4
LeftMouseUpAction=!Execute [[MeasureLink4]][!RainmeterShowMeter Item4][!RainmeterHideMeter Link4][!RainmeterRedraw]

[Item5]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem5
LeftMouseDownAction=!execute [!RainmeterShowMeter Link5][!RainmeterHideMeter Item5][!RainmeterRedraw]

[Link5]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem5
LeftMouseUpAction=!Execute [[MeasureLink5]][!RainmeterShowMeter Item5][!RainmeterHideMeter Link5][!RainmeterRedraw]

[Item6]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem6
LeftMouseDownAction=!execute [!RainmeterShowMeter Link6][!RainmeterHideMeter Item6][!RainmeterRedraw]

[Link6]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem6
LeftMouseUpAction=!Execute [[MeasureLink6]][!RainmeterShowMeter Item6][!RainmeterHideMeter Link6][!RainmeterRedraw]

[Item7]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem7
LeftMouseDownAction=!execute [!RainmeterShowMeter Link7][!RainmeterHideMeter Item7][!RainmeterRedraw]

[Link7]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem7
LeftMouseUpAction=!Execute [[MeasureLink7]][!RainmeterShowMeter Item7][!RainmeterHideMeter Link7][!RainmeterRedraw]

[Item8]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem8
LeftMouseDownAction=!execute [!RainmeterShowMeter Link8][!RainmeterHideMeter Item8][!RainmeterRedraw]

[Link8]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem8
LeftMouseUpAction=!Execute [[MeasureLink8]][!RainmeterShowMeter Item8][!RainmeterHideMeter Link8][!RainmeterRedraw]

[Item9]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem9
LeftMouseDownAction=!execute [!RainmeterShowMeter Link9][!RainmeterHideMeter Item9][!RainmeterRedraw]

[Link9]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem9
LeftMouseUpAction=!Execute [[MeasureLink9]][!RainmeterShowMeter Item9][!RainmeterHideMeter Link9][!RainmeterRedraw]

;----------------------------------------------Buttons

[Button1]
meter=Image
x=48
y=241
w=16
h=16
ImageName=#@#Images/Feeds/ButtonBG.png
ToolTipText=BBC News
ImageTint=#Color1#
AntiAlias=1
DynamicVariables=1
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseDownAction=[!WriteKeyValue Variables RSS "#RSS1#"][!WriteKeyValue Variables RSStitle "#RSStitle1#"][!Refresh "Neon Space\Feeds"]

[Button2]
meter=Image
x=22r
y=r
w=16
h=16
ImageName=#@#Images/Feeds/ButtonBG.png
ImageTint=#Color1#
ToolTipText=LifeHacker
AntiAlias=1
DynamicVariables=1
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseDownAction=[!WriteKeyValue Variables RSS "#RSS2#"][!WriteKeyValue Variables RSStitle "#RSStitle2#"][!Refresh "Neon Space\Feeds"]

[Button3]
meter=Image
x=22r
y=r
w=16
h=16
ImageName=#@#Images/Feeds/ButtonBG.png
ImageTint=#Color1#
AntiAlias=1
ToolTipText=NY Times
DynamicVariables=1
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseDownAction=[!WriteKeyValue Variables RSS "#RSS3#"][!WriteKeyValue Variables RSStitle "#RSStitle3#"][!Refresh "Neon Space\Feeds"]

[Button4]
meter=Image
x=23r
y=r
w=16
h=16
ImageName=#@#Images/Feeds/ButtonBG.png
ImageTint=#Color1#
AntiAlias=1
ToolTipText=MSN News
DynamicVariables=1
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseDownAction=[!WriteKeyValue Variables RSS "#RSS4#"][!WriteKeyValue Variables RSStitle "#RSStitle4#"][!Refresh "Neon Space\Feeds"]

[Button5]
meter=Image
x=23r
y=r
w=16
h=16
ImageName=#@#Images/Feeds/ButtonBG.png
ImageTint=#Color1#
AntiAlias=1
ToolTipText=Google News
DynamicVariables=1
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseDownAction=[!WriteKeyValue Variables RSS "#RSS5#"][!WriteKeyValue Variables RSStitle "#RSStitle5#"][!Refresh "Neon Space\Feeds"]

[Button6]
meter=Image
x=23r
y=r
w=16
h=16
ImageName=#@#Images/Feeds/ButtonBG.png
ImageTint=#Color1#
AntiAlias=1
ToolTipText=GameSpot
DynamicVariables=1
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseDownAction=[!WriteKeyValue Variables RSS "#RSS6#"][!WriteKeyValue Variables RSStitle "#RSStitle6#"][!Refresh "Neon Space\Feeds"]


;-------------------------------------------------Settings----------------------------------------------------


[MeterSiconA]
Meter=Image
ImageName=#@#Images/Settings/SettingsIcon.png
ImageTint=#Color1#
X=330
Y=15
ToolTipText=Settings
LeftMouseDownAction=[!ActivateConfig "Neon Space\Settings Skins" "FeedsSettings.ini"][!HideMeter MeterSiconA][!ShowMeter MeterSiconD]
UpdateDivider=#UpDiv#

[MeterSiconD]
Meter=Image
ImageName=#@#Images/Settings/SettingsIcon.png
ImageTint=#Color1#
X=r
Y=r
ToolTipText=Settings
LeftMouseDownAction=[!DeactivateConfig "Neon Space\Settings Skins" "FeedsSettings.ini"][!HideMeter MeterSiconD][!ShowMeter MeterSiconA]
Hidden=1
UpdateDivider=#UpDiv#
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: How do I change the feeds?

Post by fonpaolo »

This is inside your code:

Code: Select all

SubstituteLink="&":"&","<![CDATA[":"","]]>":""


Width=270
RSS=http://news.google.com/news?pz=1&ned=us&hl=en&topic=h&num=10&output=rss
RSStitle=Google News

;--------------------------------------BGs
As you can see, there's an RSS variable, change http://news.google.com/news?pz=1&ned=us&hl=en&topic=h&num=10&output=rss to whathever you want.
Edit also RSStitle to match the current feed you're using.

I hope to have understood the question properly.

edit: this seems an old skin, you need to clean some code no more needed and also now deprecated:
- Remove all the !Execute bangs from LeftMouseUpAction and also LeftMouseDownAction.
- Better don't use LeftMouseDownAction but only LeftMouseUpAction.
- Remove !Rainmeter prefix from the other bangs, now it's only !ShowMeter, !HideMeter, !Redraw and so on.
lifeofbrian
Posts: 10
Joined: April 22nd, 2017, 10:09 pm

Re: How do I change the feeds?

Post by lifeofbrian »

But there are six feeds, I can only see the url for google. there are button sections with the other feeds but no urls?

EDIT: I found the urls in links, thanks.

Code: Select all

[Button1]
meter=Image
x=48
y=241
w=16
h=16
ImageName=#@#Images/Feeds/ButtonBG.png
ToolTipText=BBC News
ImageTint=#Color1#
AntiAlias=1
DynamicVariables=1
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color2#"][!Update]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# ImageTint "#Color1#"][!Update]
LeftMouseDownAction=[!WriteKeyValue Variables RSS "#RSS1#"][!WriteKeyValue Variables RSStitle "#RSStitle1#"][!Refresh "Neon Space\Feeds"]
fonpaolo wrote:This is inside your code:

Code: Select all

SubstituteLink="&":"&","<![CDATA[":"","]]>":""


Width=270
RSS=http://news.google.com/news?pz=1&ned=us&hl=en&topic=h&num=10&output=rss
RSStitle=Google News

;--------------------------------------BGs
As you can see, there's an RSS variable, change http://news.google.com/news?pz=1&ned=us&hl=en&topic=h&num=10&output=rss to whathever you want.
Edit also RSStitle to match the current feed you're using.

I hope to have understood the question properly.

edit: this seems an old skin, you need to clean some code no more needed and also now deprecated:
- Remove all the !Execute bangs from LeftMouseUpAction and also LeftMouseDownAction.
- Better don't use LeftMouseDownAction but only LeftMouseUpAction.
- Remove !Rainmeter prefix from the other bangs, now it's only !ShowMeter, !HideMeter, !Redraw and so on.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How do I change the feeds?

Post by balala »

lifeofbrian wrote:But there are six feeds, I can only see the url for google. there are button sections with the other feeds but no urls?

EDIT: I found the urls in links, thanks.
I'd like to propose an update of the code, to help you easier change the URLs, without continuous skin refresh, as you do now, with the [Button1] - [Button6] buttons. Refreshing a skin isn't almost never a desirable action: https://forum.rainmeter.net/viewtopic.php?p=119966#p119966
Are you interested?