It is currently March 29th, 2024, 2:57 pm

WebParser

Get help with installing and using Rainmeter.
bernardovs23
Posts: 28
Joined: April 6th, 2017, 2:43 pm

WebParser

Post by bernardovs23 »

I am currently making a vaporwave based skin and I have a problem with WebParser

This is what I have for the measure

Code: Select all

Measure=Plugin
Plugin=WebParser
URL=http://whatthecommit.com/
RegExp=(?siU)<p>(.*)</p>
UpdateRate=3
And I have this for the meter

Code: Select all

Meter=String
MeasureName=Measure.Quote
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=15
AntiAlias=1
DynamicVariables=1
But when I run the skin it shows
<p>*message*</p>
instead of
*message*
Can you help me out? Thanks! :thumbup:
Last edited by bernardovs23 on April 7th, 2017, 7:36 pm, edited 1 time in total.
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: WebParser

Post by CyberTheWorm »

bernardovs23 wrote:I am currently making a vaporwave based skin and I have a problem with WebParser

This is what I have for the measure

Code: Select all

Measure=Plugin
Plugin=WebParser
URL=http://whatthecommit.com/
RegExp=(?siU)<p>(.*)</p>
UpdateRate=3
Try this

Code: Select all

(?siU).*<p>(.*)</p>
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: WebParser

Post by CyberTheWorm »

Sorry was not paying attention. Have not finished my first cup of Coffee O.O

Add this measure

Code: Select all

[MeasureQuote]
Measure=Plugin
Plugin=WebParser
URL=[Measure.Quote]
StringIndex=1
And change the meter to this

Code: Select all

Meter=String
MeasureName=MeasureQuote
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=15
AntiAlias=1
DynamicVariables=1
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
bernardovs23
Posts: 28
Joined: April 6th, 2017, 2:43 pm

Re: WebParser

Post by bernardovs23 »

CyberTheWorm wrote:Sorry was not paying attention. Have not finished my first cup of Coffee O.O

Add this measure

Code: Select all

[MeasureQuote]
Measure=Plugin
Plugin=WebParser
URL=[Measure.Quote]
StringIndex=1
And change the meter to this

Code: Select all

Meter=String
MeasureName=MeasureQuote
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=15
AntiAlias=1
DynamicVariables=1
Can't I just add StringIndex=1 to Measure.Quote?
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: WebParser

Post by FreeRaider »

Yes, you can

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Measure.Quote]
Measure=Plugin
Plugin=WebParser
URL=http://whatthecommit.com/
RegExp=(?siU)<p>(.*)</p>
UpdateRate=3
StringIndex=1

[Meter.Quote]
Meter=String
MeasureName=Measure.Quote
FontColor=255,255,255
FontFace=VCR OSD Mono
FontSize=15
AntiAlias=1
DynamicVariables=1