It is currently June 16th, 2024, 1:48 am

Make result of substitute available to URL field of webparse

Report bugs with the Rainmeter application and suggest features.
s71ck
Posts: 1
Joined: March 4th, 2010, 12:13 am

Make result of substitute available to URL field of webparse

Post by s71ck »

It would be nice to be able to put the result of a substitute from a measure into the URL field of a webparser measure like in the following code:

Code: Select all

[Variables]
ZipCode=80301

[m.AccuWeather]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=600
Url=http://rainmeter.accu-weather.com/widget/rainmeter/weather-data.asp?Location=#ZipCode#&metric=0
RegExp="(?siU)<weathericon>(.*)<\/weathericon>.*"
FinishAction=!RainmeterRedraw

[m.currentWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[m.AccuWeather]
StringIndex=1
Substitute="03":"su-s.png"

[m.dlCurrentWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://vortex.accuweather.com/adc2010/images/icons-day/[m.currentWeatherIcon]
Download=1
DynamicVariables=1

[i.currentWeatherIcon]
Meter=IMAGE
MeasureName=m.dlCurrentWeatherIcon
X=0
Y=0
This would allow on demand downloading of the weather images based on the weather icon code.

Link to the original post about this issue in the help forum: http://rainmeter.net/forum/viewtopic.php?f=5&t=3128