It is currently March 28th, 2024, 12:06 pm

RSS Feed - how to save output to file?

Get help with installing and using Rainmeter.
peterkovac827
Posts: 9
Joined: August 7th, 2017, 11:41 pm

RSS Feed - how to save output to file?

Post by peterkovac827 »

Is it possible to save the output of an RSS feed to a file? If so, is it also possible to tell Rainmeter if the feed equals nothing, then retrieve the content from the file. The goal is here is to create a sort of cacheing of the RSS feed so if I am without internet connection, my RSS feed won't be displaying nothing.

Here is the code I'm using:

Code: Select all

[Rainmeter]
Update=1000
MiddleMouseDownAction=!RainmeterRefresh#CURRENTCONFIG#

[Metadata]
Name=
Version=
License=

[Variables]

[Feed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://rss.cnn.com/rss/cnn_topstories.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=3600
StringIndex=1

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

[MeasureItem1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=3
Substitute="'":"'","&":"and","'":"'",""":"”"

[MeasureLink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=4
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=5
Substitute="'":"'","&":"and","'":"'",""":"”"

[MeasureLink2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=6
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=7
Substitute="'":"'","&":"and","'":"'",""":"”"

[MeasureLink3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=8
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=9
Substitute="'":"'","&":"and","'":"'",""":"”"

[MeasureLink4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=10
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=11
Substitute="'":"'","&":"and","'":"'",""":"”"

[MeasureLink5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=12
Substitute="'":"'","&":"and","'":"'",""":"”"

; ------------------------------------------------------------------------------------------------
; 

[StyleItem]
X=0
Y=18r
H=18
W=630
ClipString=0
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
AntiAlias=1

[StyleLink]
X=r
Y=r
H=18
W=630
ClipString=0
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
Hidden=1
AntiAlias=1

; ------------------------------------------------------------------------------------------------
; 

[Title]
Meter=STRING
Text=CNN
X=0
Y=0
H=18
W=630
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
AntiAlias=1

; ------------------------------------------------------------------------------------------------
; 

[Item1]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem1
Y=18
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]
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: RSS Feed - how to save output to file?

Post by eclectic-tech »

You posted the same question in four different topics... a bit overdone, don't you think? :x

You can use Debug=2 in the webparser measure to download a copy of the webpage to the current folder; it is saved as 'WebParserDump.txt'.

Then create 2 variables, one with the original URL and another pointing to the downloaded file.

Then add OnConnectErrorAction to the webparser measure to change the URL to the local file if the site cannot be connected to... it will take a few seconds to error out, then the file will be used as the source. It will be necessary to manually refresh the skin every once in a while, because it will use the local file once it fails to connect until you refresh.

I removed deprecated parts of your code (!Rainmeter... & !Execute) and replaced the substitution and added DecodeCharacterReference=1 on your item measures. Also added SolidColor=0,0,0,1 to your styles to make it easier to click/move text items.

Here is the modified code...

Code: Select all

[Rainmeter]
Update=1000
MiddleMouseDownAction=!Refresh#CURRENTCONFIG#

[Metadata]
Name=
Version=
License=

[Variables]
Live=http://rss.cnn.com/rss/cnn_topstories.rss
Saved=file://#RootConfigPath#WebParserDump.txt

[Feed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#Live#
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=3600
StringIndex=1
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""
Debug=2
OnConnectErrorAction=[!SetOption #CurrentSection# URL "#Saved#"][!CommandMeasure #CurrentSection# "Update"]

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

[MeasureItem1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=3
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=4
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=5
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=6
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=7
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=8
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=9
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=10
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=11
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=12
Substitute="'":"'","&":"and","'":"'",""":"”"

; ------------------------------------------------------------------------------------------------
;

[StyleItem]
X=0
Y=18r
H=18
W=630
ClipString=0
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
AntiAlias=1
SolidColor=0,0,0,1

[StyleLink]
X=r
Y=r
H=18
W=630
ClipString=0
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
Hidden=1
AntiAlias=1
SolidColor=0,0,0,1

; ------------------------------------------------------------------------------------------------
;

[Title]
Meter=STRING
Text=CNN
X=0
Y=0
H=18
W=630
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
AntiAlias=1

; ------------------------------------------------------------------------------------------------
;

[Item1]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem1
Y=18
LeftMouseDownAction=[!ShowMeter Link1][!HideMeter Item1][!Redraw]

[Link1]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem1
LeftMouseUpAction=[[MeasureLink1]][!ShowMeter Item1][!HideMeter Link1][!Redraw]

[Item2]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem2
LeftMouseDownAction=[!ShowMeter Link2][!HideMeter Item2][!Redraw]

[Link2]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem2
LeftMouseUpAction=[[MeasureLink2]][!ShowMeter Item2][!HideMeter Link2][!Redraw]

[Item3]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem3
LeftMouseDownAction=[!ShowMeter Link3][!HideMeter Item3][!Redraw]

[Link3]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem3
LeftMouseUpAction=[[MeasureLink3]][!ShowMeter Item3][!HideMeter Link3][!Redraw]

[Item4]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem4
LeftMouseDownAction=[!ShowMeter Link4][!HideMeter Item4][!Redraw]

[Link4]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem4
LeftMouseUpAction=[[MeasureLink4]][!ShowMeter Item4][!HideMeter Link4][!Redraw]

[Item5]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem5
LeftMouseDownAction=[!ShowMeter Link5][!HideMeter Item5][!Redraw]

[Link5]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem5
LeftMouseUpAction=[[MeasureLink5]][!ShowMeter Item5][!HideMeter Link5][!Redraw]
:welcome:
Last edited by eclectic-tech on August 8th, 2017, 2:30 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RSS Feed - how to save output to file?

Post by jsmorley »

Please do not shotgun the same question to multiple topics. I deleted all the extra ones, next time I will just delete them all... ;-)
peterkovac827
Posts: 9
Joined: August 7th, 2017, 11:41 pm

Re: RSS Feed - how to save output to file?

Post by peterkovac827 »

It does not work. It displays nothing from the local file when there is no internet.
peterkovac827
Posts: 9
Joined: August 7th, 2017, 11:41 pm

Re: RSS Feed - how to save output to file?

Post by peterkovac827 »

eclectic-tech wrote:You posted the same question in four different topics... a bit overdone, don't you think? :x

You can use Debug=2 in the webparser measure to download a copy of the webpage to the current folder; it is saved as 'WebParserDump.txt'.

Then create 2 variables, one with the original URL and another pointing to the downloaded file.

Then add OnConnectErrorAction to the webparser measure to change the URL to the local file if the site cannot be connected to... it will take a few seconds to error out, then the file will be used as the source. It will be necessary to manually refresh the skin every once in a while, because it will use the local file once it fails to connect until you refresh.

I removed deprecated parts of your code (!Rainmeter... & !Execute) and replaced the substitution and added DecodeCharacterReference=1 on your item measures. Also added SolidColor=0,0,0,1 to your styles to make it easier to click/move text items.

Here is the modified code...

Code: Select all

[Rainmeter]
Update=1000
MiddleMouseDownAction=!Refresh#CURRENTCONFIG#

[Metadata]
Name=
Version=
License=

[Variables]
Live=http://rss.cnn.com/rss/cnn_topstories.rss
Saved=file://#RootConfigPath#WebParserDump.txt

[Feed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#Live#
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=3600
StringIndex=1
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""
Debug=2
OnConnectErrorAction=[!SetOption #CurrentSection# URL "#Saved#"][!CommandMeasure #CurrentSection# "Update"]

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

[MeasureItem1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=3
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=4
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=5
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=6
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=7
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=8
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=9
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=10
Substitute="'":"'","&":"and","'":"'",""":"”"

---

[MeasureItem5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=11
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":"","![CDATA[":"","]]":""

[MeasureLink5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=12
Substitute="'":"'","&":"and","'":"'",""":"”"

; ------------------------------------------------------------------------------------------------
;

[StyleItem]
X=0
Y=18r
H=18
W=630
ClipString=0
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
AntiAlias=1
SolidColor=0,0,0,1

[StyleLink]
X=r
Y=r
H=18
W=630
ClipString=0
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
Hidden=1
AntiAlias=1
SolidColor=0,0,0,1

; ------------------------------------------------------------------------------------------------
;

[Title]
Meter=STRING
Text=CNN
X=0
Y=0
H=18
W=630
StringStyle=Bold
FontColor=18,151,254
FontSize=12
FontFace=Arial
AntiAlias=1

; ------------------------------------------------------------------------------------------------
;

[Item1]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem1
Y=18
LeftMouseDownAction=[!ShowMeter Link1][!HideMeter Item1][!Redraw]

[Link1]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem1
LeftMouseUpAction=[[MeasureLink1]][!ShowMeter Item1][!HideMeter Link1][!Redraw]

[Item2]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem2
LeftMouseDownAction=[!ShowMeter Link2][!HideMeter Item2][!Redraw]

[Link2]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem2
LeftMouseUpAction=[[MeasureLink2]][!ShowMeter Item2][!HideMeter Link2][!Redraw]

[Item3]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem3
LeftMouseDownAction=[!ShowMeter Link3][!HideMeter Item3][!Redraw]

[Link3]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem3
LeftMouseUpAction=[[MeasureLink3]][!ShowMeter Item3][!HideMeter Link3][!Redraw]

[Item4]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem4
LeftMouseDownAction=[!ShowMeter Link4][!HideMeter Item4][!Redraw]

[Link4]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem4
LeftMouseUpAction=[[MeasureLink4]][!ShowMeter Item4][!HideMeter Link4][!Redraw]

[Item5]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem5
LeftMouseDownAction=[!ShowMeter Link5][!HideMeter Item5][!Redraw]

[Link5]
Meter=STRING
MeterStyle=StyleLink
MeasureName=MeasureItem5
LeftMouseUpAction=[[MeasureLink5]][!ShowMeter Item5][!HideMeter Link5][!Redraw]
:welcome:
It does not work. I tried lots of things but that modified code you posted does not work. I tried lots of code tweaks like

Code: Select all

OnConnectErrorAction=[!SetVariable ...
and tried installing the latest version of Rainmeter, but it still doesn't work. It displays nothing from the local file when there is no internet.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: RSS Feed - how to save output to file?

Post by eclectic-tech »

The code works... not sure why not for you. :uhuh:

What do you mean by doesn't work?
Do you see the feed when your internet is active? If not you may need to restart Rainmeter, or reboot everything.

Do you have the WebParserDump.txt in your skin folder?
Are you seeing any errors in the Log? You should see a connect error when your internet is not active... but you have to have a good connection first, in order to create the dump file.
peterkovac827
Posts: 9
Joined: August 7th, 2017, 11:41 pm

Re: RSS Feed - how to save output to file?

Post by peterkovac827 »

eclectic-tech wrote:The code works... not sure why not for you. :uhuh:

What do you mean by doesn't work?
Do you see the feed when your internet is active? If not you may need to restart Rainmeter, or reboot everything.

Do you have the WebParserDump.txt in your skin folder?
Are you seeing any errors in the Log? You should see a connect error when your internet is not active... but you have to have a good connection first, in order to create the dump file.

It doesn't display anything when there is no internet connection. I did try rebooting and I tried on multiple computers and with different versions of Rainmeter just in case. I didn't check the logs. I do have the WebParserDump.txt in my skin folder.
I am open to writing an entirely new skin though - if that will get me an RSS feed that can cache and display that last retrieved feed when there is no connection.
peterkovac827
Posts: 9
Joined: August 7th, 2017, 11:41 pm

Re: RSS Feed - how to save output to file?

Post by peterkovac827 »

OK, I just found out what the problem was.

Code: Select all

#RootConfigPath#
does not work properly - it saves the file properly but results in an error when trying to retrieve the file. So I put in a hard link instead (file://C:\Users\Peter\Desktop\Rainmeter\...). Strange, I would have preferred not having to use a hard link in case I ever move my Rainmeter folder to a different location.

I also came across another similar problem: The

Code: Select all

UpdateRate
is not working. I'm trying to change it to 5 or 10 so I can test if everything works (instead of waiting a full 3600 seconds) and it is not working properly. :-(
peterkovac827
Posts: 9
Joined: August 7th, 2017, 11:41 pm

Re: RSS Feed - how to save output to file?

Post by peterkovac827 »

Any ideas how to fix the problem with

Code: Select all

Saved=file://#RootConfigPath#WebParserDump.txt
? I would prefer to use a relative link such as that.
peterkovac827
Posts: 9
Joined: August 7th, 2017, 11:41 pm

Re: RSS Feed - how to save output to file?

Post by peterkovac827 »

Nevermind, I found that using

Code: Select all

#CURRENTPATH#
instead of

Code: Select all

#RootConfigPath#
worked. Now if only I can figure out why it seems the

Code: Select all

UpdateRate
is corrupted.
Post Reply