Page 7 of 13

Re: Weather SKIN REQUEST

Posted: December 23rd, 2016, 12:29 pm
by balala
vHAPpY wrote:is there a way on how to use those larger images? then will be resized? then cycled? :(
If an image meter don't has set the W and H options, it'll show the image at its original size. If you set either a width (with the W option), either a height (H option) (or both), the image will be resized to the specified size (note that if you set just the width or just the height, the image will be resized preserving its aspect ratio).

Re: Weather SKIN REQUEST

Posted: December 24th, 2016, 7:33 am
by vHAPpY

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
Background=#@#images\webcam\back.png

[Metadata]
Name=Himawari8RealTimePHSat
Author=vHAPpY;Thanks to:fonpaolo;FreeRaider;balala; mak_kawa for helping me
Information=Imagery by JMA/MSC: Himawari Real-Time Image via CIRA/RAMMB, NOAA NESDIS and CIRA
License=Creative Commons BY-NC-SA 3.0
Version=1

[Variables]
Item=(?(?=.*<tr>).*<td>(.*)</td>.*<td><input type="radio" name="starting_image" value=".*"  /></td>.*<td><a href="(.*)" target="_blank" .*</td>.*</tr>)

[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"]

[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"]

[MeasureImage0]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL0]
Download=1
DownloadFile=Images\Img0.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage1]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL1]
Download=1
DownloadFile=Images\Img1.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage2]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL2]
Download=1
DownloadFile=Images\Img2.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage3]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL3]
Download=1
DownloadFile=Images\Img3.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage4]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL4]
Download=1
DownloadFile=Images\Img4.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage5]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL5]
Download=1
DownloadFile=Images\Img5.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage6]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL6]
Download=1
DownloadFile=Images\Img6.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage7]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL7]
Download=1
DownloadFile=Images\Img7.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage8]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL8]
Download=1
DownloadFile=Images\Img8.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureImage9]
Measure=Plugin
Plugin=WebParser
Url=http://rammb.cira.colostate.edu/ramsdis/online/[&MeasureImageURL9]
Download=1
DownloadFile=Images\Img9.jpg
UpdateRate=-1
Disabled=1
DynamicVariables=1
Group=Images

[MeasureTimer]
Measure=Calc
Formula=(( #Img0# + #Img1# + #Img2# + #Img3# + #Img4# + #Img5# + #Img6# + #Img7# + #Img8# + #Img9# ) - ( COUNT % ( #Img0# + #Img1# + #Img2# + #Img3# + #Img4# + #Img5# + #Img6# + #Img7# + #Img8# + #Img9# )) - 1 )
DynamicVariables=1
Disabled=1

[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

[MeterTop]
Meter=Image
ImageName="#@#images\webcam\top.png"
X=0
Y=0
UpdateDivider=-1
What to change here Mr. Balala in order to download those larger images and be resized then

Re: Weather SKIN REQUEST

Posted: December 24th, 2016, 7:34 am
by vHAPpY
sorry for being a spoonfood :( :(

Re: Weather SKIN REQUEST

Posted: December 24th, 2016, 8:26 pm
by balala
vHAPpY wrote:What to change here Mr. Balala in order to download those larger images and be resized then
To download them, remove the RegExpSusbtitute=1 and the Substitute="images/himawari-8(.*)":"images/thumb/himawari-8\1" options from each of the [MeasureImageURL0] - [MeasureImageURL9] measures. These options say to the appropriate WebParser measures ([MeasureImage0] - [MeasureImage9]) to download not the full images, but the thumbnails. Removing them, will make the WebParser measures to download the full images.
If you do so, you'll have to resize the downloaded images. For this, add a W=200 option to the [MeterImages] meter. This option will determine a reducing of the size of image(s) to a width of 200 pixels. The height will be calculated to not distort the image.
Merry Christmas.

Re: Weather SKIN REQUEST

Posted: January 21st, 2017, 6:49 am
by vHAPpY
Thanks my friend for this Hope it will fix my issue .

Re: Weather SKIN REQUEST

Posted: January 21st, 2017, 12:36 pm
by balala
vHAPpY wrote:Hope it will fix my issue .
Hope? But have you tried it? Does it work?

Re: Weather SKIN REQUEST

Posted: January 23rd, 2017, 8:16 am
by vHAPpY
Tried :( Still having the problem.

Maybe its about this?

Code: Select all

[Variables]
Item=(?(?=.*<tr>).*<td>(.*)</td>.*<td><input type="radio" name="starting_image" value=".*"  /></td>.*<td><a href="(.*)" target="_blank" .*</td>.*</tr>)
Any help?

Re: Weather SKIN REQUEST

Posted: January 23rd, 2017, 5:25 pm
by balala
vHAPpY wrote:Tried :( Still having the problem.
I can't say why have you those problems, here the skin is working well, I have no errors in the log. For first, please check the log after a refresh. Do you see any message related to this skin?
Also try the following Item variable, which don't use lookahead assertion, but maybe it worth a try:

Code: Select all

[Variables]
Item=.*<td>(.*)</td>.*<td><input type="radio" name="starting_image" value=".*"  /></td>.*<td><a href="(.*)" target="_blank" .*</td>.*</tr>
Does this helps?

Re: Weather SKIN REQUEST

Posted: January 26th, 2017, 11:09 am
by vHAPpY
thank you very very much :D :D :D :D :D

Re: Weather SKIN REQUEST

Posted: January 26th, 2017, 1:17 pm
by balala
vHAPpY wrote:thank you very very much :D :D :D :D :D
But it helped you?