WOW! it works! this is amazing! I love it!
Thank you!!!!
Still I have a few notes
Can you make it that the date and time of the last image is shown at the right bottom corner.
Something like this: 2020-05-21 09:15 val.
https://imgur.com/Zh7VAgv
That would be perfect!
It is currently April 20th, 2024, 1:59 am
WEATHER RADAR
-
- Posts: 12
- Joined: May 13th, 2020, 11:15 am
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: WEATHER RADAR
This can easily be done. Just add a Dist=15 variable (use whatever value do you want - will describe immediately what this is) to the [Variables] section and the following String meter to the end of the code:Tracidas-2020 wrote: ↑May 21st, 2020, 7:23 am Still I have a few notes
Can you make it that the date and time of the last image is shown at the right bottom corner.
Something like this: 2020-05-21 09:15 val.
https://imgur.com/Zh7VAgv
That would be perfect!
Code: Select all
[MeterDateTime]
Meter=STRING
X=(#CURRENTCONFIGWIDTH#-#Dist#)
Y=(#CURRENTCONFIGHEIGHT#-#Dist#)
Padding=15,5,15,5
FontColor=0,0,220
FontEffectColor=220,220,220
StringEffect=Shadow
SolidColor=0,0,0,1
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=RightBottom
AntiAlias=1
Text=#Date# #Hour#:#Minute#
DynamicVariables=1
-
- Posts: 12
- Joined: May 13th, 2020, 11:15 am
Re: WEATHER RADAR
Easy for you i'm quite new here.
Not sure if i'm doing it right. In my rainmeter skin folder. I created a folder for this skin, i put the ini file with the code you sent me earlier, and I should put that additional code for the date and time in the same ini file, right?
Well I dit put the additional code, but the date and time won't show..
Not sure if i'm doing it right. In my rainmeter skin folder. I created a folder for this skin, i put the ini file with the code you sent me earlier, and I should put that additional code for the date and time in the same ini file, right?
Well I dit put the additional code, but the date and time won't show..
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: WEATHER RADAR
Don't worry, if you keep working, you gonna figure out how to do many things...
Exactly. Copy and paste the code of the [MeterDateTime] meter to the end of the same .ini file.Tracidas-2020 wrote: ↑May 21st, 2020, 9:16 am Not sure if i'm doing it right. In my rainmeter skin folder. I created a folder for this skin, i put the ini file with the code you sent me earlier, and I should put that additional code for the date and time in the same ini file, right?
Did you refresh the skin? I suppose you didn't, so refresh it.Tracidas-2020 wrote: ↑May 21st, 2020, 9:16 am Well I dit put the additional code, but the date and time won't show..
The refresh is required whenever are you changing the code, in order to apply the changes.
-
- Posts: 12
- Joined: May 13th, 2020, 11:15 am
Re: WEATHER RADAR
Saved it. Refreshed it. No luck...
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: WEATHER RADAR
Post the whole code, please.
-
- Posts: 12
- Joined: May 13th, 2020, 11:15 am
Re: WEATHER RADAR
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
ImageSize=300
[MeasureMap]
Measure=WebParser
Url=https://m.meteo.lt/?act=js/map_image&t=main
Download=1
DownloadFile=Map.png
[MeasureSite]
Measure=WebParser
UpdateRate=900
Url=https://m.meteo.lt/faktine-informacija/radaras/14
RegExp=(?si)<div class="hour" data-time=".*" data-full-date="Gegužės .* d.">(.*)</div>
DecodeCharacterReference=3
FinishAction=[!SetVariable Hour "[MeasureHour]"][!SetVariable Minute "[MeasureMinute]"][!SetVariable Date "[MeasureDate]"][!UpdateMeasure "MeasureImage"][!EnableMeasure "MeasureImage"][!CommandMeasure "MeasureImage" "Update"]
[MeasureHour]
Measure=WebParser
Url=[MeasureSite]
DecodeCharacterReference=3
StringIndex=1
RegExpSubstitute=1
Substitute="\r\n":"","^(..):(..).*$":"\1"
[MeasureMinute]
Measure=WebParser
Url=[MeasureSite]
DecodeCharacterReference=3
StringIndex=1
RegExpSubstitute=1
Substitute="\r\n":"","^(..):(..).*$":"\2"
[MeasureDate]
Measure=Time
Format=%Y-%m-%d
[MeasureImage]
Measure=WebParser
Url=https://m.meteo.lt/?act=js/map_image&t=radar&d=#Date#+#Hour#%3A#Minute#%3A00
DynamicVariables=1
Download=1
Disabled=1
DownloadFile=Static.png
FinishAction=[!ShowMeter "MeterStatic"][!Redraw]
UpdateRate=30
[MeterMap]
Meter=Image
MeasureName=MeasureMap
X=0
Y=0
W=#ImageSize#
DynamicVariables=1
SolidColor=255,255,255
[MeterStatic]
Meter=Image
MeasureName=MeasureImage
X=0r
Y=0r
W=#ImageSize#
DynamicVariables=1
Hidden=1
[MeterDateTime]
Meter=STRING
X=(#CURRENTCONFIGWIDTH#-#Dist#)
Y=(#CURRENTCONFIGHEIGHT#-#Dist#)
Padding=15,5,15,5
FontColor=0,0,220
FontEffectColor=220,220,220
StringEffect=Shadow
SolidColor=0,0,0,1
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=RightBottom
AntiAlias=1
Text=#Date# #Hour#:#Minute#
DynamicVariables=1
Last edited by balala on May 21st, 2020, 10:58 am, edited 1 time in total.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: WEATHER RADAR
The Dist variable is missing from the [Variables] section. Add it as described here.Tracidas-2020 wrote: ↑May 21st, 2020, 10:42 amCode: Select all
[Rainmeter] Update=1000 DynamicWindowSize=1 [Variables] ImageSize=300 [MeasureMap] Measure=WebParser Url=https://m.meteo.lt/?act=js/map_image&t=main Download=1 DownloadFile=Map.png [MeasureSite] Measure=WebParser UpdateRate=900 Url=https://m.meteo.lt/faktine-informacija/radaras/14 RegExp=(?si)<div class="hour" data-time=".*" data-full-date="Gegužės .* d.">(.*)</div> DecodeCharacterReference=3 FinishAction=[!SetVariable Hour "[MeasureHour]"][!SetVariable Minute "[MeasureMinute]"][!SetVariable Date "[MeasureDate]"][!UpdateMeasure "MeasureImage"][!EnableMeasure "MeasureImage"][!CommandMeasure "MeasureImage" "Update"] [MeasureHour] Measure=WebParser Url=[MeasureSite] DecodeCharacterReference=3 StringIndex=1 RegExpSubstitute=1 Substitute="\r\n":"","^(..):(..).*$":"\1" [MeasureMinute] Measure=WebParser Url=[MeasureSite] DecodeCharacterReference=3 StringIndex=1 RegExpSubstitute=1 Substitute="\r\n":"","^(..):(..).*$":"\2" [MeasureDate] Measure=Time Format=%Y-%m-%d [MeasureImage] Measure=WebParser Url=https://m.meteo.lt/?act=js/map_image&t=radar&d=#Date#+#Hour#%3A#Minute#%3A00 DynamicVariables=1 Download=1 Disabled=1 DownloadFile=Static.png FinishAction=[!ShowMeter "MeterStatic"][!Redraw] UpdateRate=30 [MeterMap] Meter=Image MeasureName=MeasureMap X=0 Y=0 W=#ImageSize# DynamicVariables=1 SolidColor=255,255,255 [MeterStatic] Meter=Image MeasureName=MeasureImage X=0r Y=0r W=#ImageSize# DynamicVariables=1 Hidden=1 [MeterDateTime] Meter=STRING X=(#CURRENTCONFIGWIDTH#-#Dist#) Y=(#CURRENTCONFIGHEIGHT#-#Dist#) Padding=15,5,15,5 FontColor=0,0,220 FontEffectColor=220,220,220 StringEffect=Shadow SolidColor=0,0,0,1 FontSize=8 FontFace=Segoe UI StringStyle=BOLD StringAlign=RightBottom AntiAlias=1 Text=#Date# #Hour#:#Minute# DynamicVariables=1
-
- Posts: 12
- Joined: May 13th, 2020, 11:15 am
Re: WEATHER RADAR
You mean like this? I added, refreshed, nothing has changed
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
ImageSize=300
[MeasureMap]
Measure=WebParser
Url=https://m.meteo.lt/?act=js/map_image&t=main
Download=1
DownloadFile=Map.png
[MeasureSite]
Measure=WebParser
UpdateRate=900
Url=https://m.meteo.lt/faktine-informacija/radaras/14
RegExp=(?si)<div class="hour" data-time=".*" data-full-date="Gegužės .* d.">(.*)</div>
DecodeCharacterReference=3
FinishAction=[!SetVariable Hour "[MeasureHour]"][!SetVariable Minute "[MeasureMinute]"][!SetVariable Date "[MeasureDate]"][!UpdateMeasure "MeasureImage"][!EnableMeasure "MeasureImage"][!CommandMeasure "MeasureImage" "Update"]
[MeasureHour]
Measure=WebParser
Url=[MeasureSite]
DecodeCharacterReference=3
StringIndex=1
RegExpSubstitute=1
Substitute="\r\n":"","^(..):(..).*$":"\1"
[MeasureMinute]
Measure=WebParser
Url=[MeasureSite]
DecodeCharacterReference=3
StringIndex=1
RegExpSubstitute=1
Substitute="\r\n":"","^(..):(..).*$":"\2"
[MeasureDate]
Measure=Time
Format=%Y-%m-%d
[MeasureImage]
Measure=WebParser
Url=https://m.meteo.lt/?act=js/map_image&t=radar&d=#Date#+#Hour#%3A#Minute#%3A00
DynamicVariables=1
Download=1
Disabled=1
DownloadFile=Static.png
FinishAction=[!ShowMeter "MeterStatic"][!Redraw]
UpdateRate=30
[MeterMap]
Meter=Image
MeasureName=MeasureMap
X=0
Y=0
W=#ImageSize#
DynamicVariables=1
SolidColor=255,255,255
[MeterStatic]
Meter=Image
MeasureName=MeasureImage
X=0r
Y=0r
W=#ImageSize#
DynamicVariables=1
Hidden=1
[MeterDateTime]
Meter=STRING
X=(#CURRENTCONFIGWIDTH#-#Dist#)
Y=(#CURRENTCONFIGHEIGHT#-#Dist#)
Padding=15,5,15,5
FontColor=0,0,220
FontEffectColor=220,220,220
StringEffect=Shadow
SolidColor=0,0,0,1
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=RightBottom
AntiAlias=1
Text=#Date# #Hour#:#Minute#
DynamicVariables=1
Dist=15
Last edited by balala on May 21st, 2020, 11:27 am, edited 1 time in total.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: WEATHER RADAR
Dist is a variable and as such it has to be added to the [Variables] section, not to the [MeterDateTime] meter, where you have added it. Move it to [Variables] and refresh the skin.Tracidas-2020 wrote: ↑May 21st, 2020, 11:20 am You mean like this? I added, refreshed, nothing has changed
And whenever are you posting codes, please use the </> button, to delimitate the code. It's on the forum menu, when you're editing / writing your post.