I downloaded this skin and intend to make some changes.
https://kilofoxtrot.deviantart.com/art/KF-Radar-for-Rainmeter-334914463
To do so requires me to download quite a few (inanimate) .gifs from here:
https://radar.weather.gov/ridge/RadarImg/NCR/TWX/
Thus far, I've failed to come up with the correct RegExp. The issue is that these are all named with dates instead of numbers.
TWX_20180519_1418_NCR.gif
On top of that, I sort of need to be able to substitute TWX with a variable key based on the user's selected local radar site. Are register expressions compatible with that sort of thing?
The primary reason for this specific site is because the layers are all downloaded separately, and as such I can apply various effects like blur or other images to the background, with the radar itself, the counties, highways, etc all showing on a transparent backdrop.
Here is the code I have been tinkering with thus far. I saw a couple of old posts, and did try to figure this out, but have come up short so far. I didn't modify anything past the MeasureImage3, as I keep getting errors.
https://forum.rainmeter.net/viewtopic.php?t=9862
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=0
[Variables]
;closest radar site name, from http://forecast.weather.gov/jetstream/doppler/ridge_download.htm
Site=TWX
;update rate multiplier (i.e., seconds... formula: Update x Rate)
Rate=60
;Radar range (can be Short or Long)
Range=Short
;product type, from http://forecast.weather.gov/jetstream/doppler/ridge_download.htm
;if using Long range, Type MUST be N0Z
Type=NCR
;Desired Width variable, to keep all layers uniform
;550 pixels normal width, 600 pixels normal height
Width=600
[MeasureImages]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=https://radar.weather.gov/ridge/RadarImg/NCR/TWX/
RegExp="(?siU)TWX_(.*)"
[MeasureImage1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=https://radar.weather.gov/ridge/RadarImg/NCR/TWX/TWX_[MeasureImages]_NCR.gif
RegExp=(?siU)TWX_(.*)
StringIndex=1
Download=1
[MeasureImage2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=https://radar.weather.gov/ridge/RadarImg/NCR/TWX/TWX_[MeasureImages]_NCR.gif
RegExp=(?siU)TWX_(.*)
StringIndex=2
Download=1
[MeasureImage3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=https://radar.weather.gov/ridge/RadarImg/NCR/TWX/TWX_[MeasureImages]_NCR.gif
RegExp="(?siU)TWX_="_NCR"
StringIndex=1
Download=1
[Highways]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://radar.weather.gov/ridge/Overlays/Highways/#Range#/#Site#_Highways_#Range#.gif
Download=1
DownloadFile=highways.gif
[Cities]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://radar.weather.gov/ridge/Overlays/Cities/#Range#/#Site#_City_#Range#.gif
Download=1
DownloadFile=cities.gif
[Counties]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://radar.weather.gov/ridge/Overlays/County/#Range#/#Site#_County_Short.gif
Download=1
DownloadFile=counties.gif
;[Meter_TopoDisplay]
;Meter=Image
;ImageName="#CURRENTPATH#DownloadFile\topo.jpg"
;X=0
;Y=0
;W=#Width#
;PreserveAspectRatio=1
[Meter_RadarDisplay]
Meter=Image
MeasureName=RadarImage
ImageName="#CURRENTPATH#DownloadFile\radar.gif"
X=0
Y=0
W=#Width#
PreserveAspectRatio=1
[Meter_CountiesDisplay]
Meter=Image
MeasureName=Counties
ImageName="#CURRENTPATH#DownloadFile\counties.gif"
X=0
Y=0
W=#Width#
PreserveAspectRatio=1
[Meter_HighwaysDisplay]
Meter=Image
ImageName="#CURRENTPATH#DownloadFile\highways.gif"
X=0
Y=0
W=#Width#
PreserveAspectRatio=1
[Meter_CitiesDisplay]
Meter=Image
ImageName="#CURRENTPATH#DownloadFile\cities.gif"
X=0
Y=0
W=#Width#
PreserveAspectRatio=1