vHAPpY wrote:I'm aware that there are too many images and if it is possible to be a .gif one so that it is easy.
Rainmeter can't handle directly the animated gifs, so this wouldn't be a good approach (you can take a look at
this).
Now a first solution: you'll need a parent WebParser measure, which will take the URLs of the images:
Code: Select all
[MeasureImagesURL]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/archive_with_thumbnails.asp?data_folder=himawari-8/philippines_true_color&width=1020&height=720
RegExp=(?siU)#Item##Item##Item##Item##Item##Item##Item##Item##Item##Item#
FinishAction=[!EnableMeasureGroup "Images"][!CommandMeasure "MeasureImage0" "Update"][!CommandMeasure "MeasureImage1" "Update"][!CommandMeasure "MeasureImage2" "Update"][!CommandMeasure "MeasureImage3" "Update"][!CommandMeasure "MeasureImage4" "Update"][!CommandMeasure "MeasureImage5" "Update"][!CommandMeasure "MeasureImage6" "Update"][!CommandMeasure "MeasureImage7" "Update"][!CommandMeasure "MeasureImage8" "Update"][!CommandMeasure "MeasureImage9" "Update"][!EnableMeasure "MeasureTimer"][!ShowMeterGroup "ImgDat"]
We'll need the FinishAction, a bit later.
The following child measures will take the dates and the URL of the images:
Code: Select all
[MeasureDate0]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=1
[MeasureImageURL0]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=2
IfMatch=^$
IfMatchAction=[!SetVariable Img0 "0"]
IfNotMatchAction=[!SetVariable Img0 "1"]
[MeasureDate1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=3
[MeasureImageURL1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=4
IfMatch=^$
IfMatchAction=[!SetVariable Img1 "0"]
IfNotMatchAction=[!SetVariable Img1 "1"]
[MeasureDate2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=5
[MeasureImageURL2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=6
IfMatch=^$
IfMatchAction=[!SetVariable Img2 "0"]
IfNotMatchAction=[!SetVariable Img2 "1"]
[MeasureDate3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=7
[MeasureImageURL3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=8
IfMatch=^$
IfMatchAction=[!SetVariable Img3 "0"]
IfNotMatchAction=[!SetVariable Img3 "1"]
[MeasureDate4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=9
[MeasureImageURL4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=10
IfMatch=^$
IfMatchAction=[!SetVariable Img4 "0"]
IfNotMatchAction=[!SetVariable Img4 "1"]
[MeasureDate5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=11
[MeasureImageURL5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=12
IfMatch=^$
IfMatchAction=[!SetVariable Img5 "0"]
IfNotMatchAction=[!SetVariable Img5 "1"]
[MeasureDate6]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=13
[MeasureImageURL6]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=14
IfMatch=^$
IfMatchAction=[!SetVariable Img6 "0"]
IfNotMatchAction=[!SetVariable Img6 "1"]
[MeasureDate7]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=15
[MeasureImageURL7]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=16
IfMatch=^$
IfMatchAction=[!SetVariable Img7 "0"]
IfNotMatchAction=[!SetVariable Img7 "1"]
[MeasureDate8]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=17
[MeasureImageURL8]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=18
IfMatch=^$
IfMatchAction=[!SetVariable Img8 "0"]
IfNotMatchAction=[!SetVariable Img8 "1"]
[MeasureDate9]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
StringIndex=19
[MeasureImageURL9]
Measure=Plugin
Plugin=WebParser
Url=[MeasureImagesURL]
RegExpSubstitute=1
Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1"
StringIndex=20
IfMatch=^$
IfMatchAction=[!SetVariable Img9 "0"]
IfNotMatchAction=[!SetVariable Img9 "1"]
When these measures get the URLs, they should be used to download the appropriate images, through the following measures:
Code: Select all
[MeasureImage0]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL0]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage1]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL1]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage2]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL2]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage3]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL3]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage4]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL4]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage5]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL5]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage6]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL6]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage7]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL7]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage8]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL8]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
[MeasureImage9]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL9]
Download=1
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images
Note that these measures are initially disabled, but they will be enabled and updated by the FinishAction option of the[MeasureImagesURL] measure, when it parsing the information.
The total number of the images can be calculated summing the Img0 - Img9 variables. This is done by the following measure and also this measure will count from 0 up to the number of images (when the FinishAction of the [MeasureImagesURL] measure enables it):
Code: Select all
[MeasureTimer]
Measure=Calc
Formula=( COUNT % ( #Img0# + #Img1# + #Img2# + #Img3# + #Img4# + #Img5# + #Img6# + #Img7# + #Img8# + #Img9# ))
DynamicVariables=1
Disabled=1
Now the image and its date should be shown by an image and a string meter:
Code: Select all
[MeterImages]
Meter=Image
MeasureName=MeasureImage[MeasureTimer]
X=0
Y=0
Hidden=1
DynamicVariables=1
Group=ImgDat
[MaterDates]
Meter=STRING
MeasureName=MeasureDate[MeasureTimer]
X=([MeterImages:W]/2)
Y=-3R
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTERBOTTOM
AntiAlias=1
Text=%1
DynamicVariables=1
Hidden=1
Group=ImgDat
I hope you'll be able to create the skin, based on this description. Please let me know if really are.