It is currently April 24th, 2024, 1:27 am

How to use the WebParser plugin

Tips and Tricks from the Rainmeter Community
User avatar
Sporny
Posts: 1
Joined: October 2nd, 2009, 8:05 am

Re: How to use the WebParser plugin

Post by Sporny »

I'd need some assistance, I'm trying to create a plugin that fetches tv-program list from a website. I used to have a similar plugin in Samurize but since I moved to RM I'd love to have one for it too.

The website is http://www.telvis.fi/ and I'd need to fetch this info. My goal is to get the plugin to print something like this.
Image
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: How to use the WebParser plugin

Post by dragonmage »

It's possible, but will take some work.
Maddo03
Posts: 1
Joined: November 14th, 2012, 11:03 pm

Re: How to use the WebParser plugin

Post by Maddo03 »

Hiya, maybe you can help me out I'm new to using Rainmeter.

So I downloaded a Windows 8 styled setup from deviant art (http://browse.deviantart.com/customization/skins/sysmonitor/rainmeter/?q=windows+8&offset=24#/d5j865a) and have edited it to suit my needs.

I am trying to change the weather to my city, unsuccessfully.
The setup uses WebParser v1.13.0.0

I currently have:
[MeasureCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://www.weather.com/weather/today/UKXX0817
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<ppcp>(.*)</ppcp>.*"
I only changed Url=http://www.weather.com/weather/today/UKXX0817 but that dosen't work. I am trying to get the weather to show Darlington (UK), if you could help me out, that'd be great.

The rest of the weather measures code if you need it.
[MeasureLocationCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=8

[MeasureTempCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=17

[MeasureWeatherDesc1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=9
Substitute=" And ":" and "

[MeasureWeatherToday]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=2

[MeasureTempCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=17

[MeasureIconCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=20

[MeasureWeatherTextCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=19

[MeasureUnits2Current]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=4