It is currently April 1st, 2020, 7:42 am

Challange for the PRO

Help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 10023
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 20th, 2019, 7:29 am
I fixed it by giving the string a border effect in black.
Now the visibility is OK.
Very good idea, congratulations. :thumbup:
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

Hi balala,

Thanks again for your help regarding the weather skin.

I've changed the skin a bit, so every topic is collapsible/expandable separately.
I've done this with the aid of your example coding for the weather skin.
For ALL items, besides the weather skin it's working.
The idea was to put the whole sliding window coding inside a second container but it's not working.
I have done my best but I don't get it working.
I would really appreciate if you could have a look?


I've got it working..
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

I must be stupide.

I don't get it to work making a rectangular window with round corners on the sliding window.

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=1

;================================================================
;-----------------------  META DATA  ----------------------------
;================================================================

[Metadata]
Name=JamX Weather
Author=JamX
Description=Vertical 3 day weather forecast with current day- low/hi, icons and days + description. Automatic weather location code based on IP address, and unit to f or m depending on your preference.
Instructions=** Special credits go to Balala for coding the "sliding" window **
Version=1.0.0

;================================================================
;-----------------------  VARIABLES  ----------------------------
;================================================================

[Variables]
Font=denton
FC1GEN=255,255,255,255
FC2LOW=161,161,161
FCN=255,255,255,255
FCT=13a7c7

FSN=15
FSL=9 
FSLoc=10
FS1=9
FS2=12

RoosTint=255,255,255,230
RoosWidth=20
RoosHeight=20
IconWidth=40
IconHeight=40

WeatherUnit=m

Item=<span class="value">(.*)</span>.*<div class="directionarrow icon-direction-solid-grey .*" title="(.*)&deg;"></div>.*<span class="units-ws">(.*)</span>.*<span class="units-ws">(.*)</span>
ItemE=<span class="value">.*</span>.*<div class="directionarrow icon-direction-solid-grey .*" title=".*&deg;"></div>.*<span class="units-ws">.*</span>.*<span class="units-ws">.*</span>

X=-410
U=[!UpdateMeasure "MeasureSlide"][!UpdateMeterGroup "Wind"][!Redraw]

FCD=13A7C7
BackgroundColor=0,0,0,120
BackgroundColor2=0,0,0,160
Z=-280
V=[!UpdateMeasure "MeasureSlide2"][!UpdateMeterGroup "Wind2"][!Redraw]

Day1=0
Day2=0
Day3=0
Day4=0
Color1=34,52,70
Color2=53,88,122
Color3=76,146,188
Color4=39,203,30
Color5=123,217,37
Color6=193,229,34
Color7=229,187,43
Color8=229,121,39
Color9=231,79,45
Color10=215,59,59
Color11=184,41,68
Color12=128,48,126

;================================================================
;------------------------  STYLES  ------------------------------
;================================================================

[styleTitle]
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,100
FontColor=#FCT#
FontFace=#Font# 
FontSize=#FS2#
AntiAlias=1

[StyleText]
FontColor=#FC1GEN#
FontSize=#FSL#
Fontweight=600
StringAlign=RIGHT
FontFace=#Font#
StringEffect=SHADOW
FontEffectColor=0,0,0,100
Antialias=1
ClipString=1
Container=MeterContainer2
Group=Wind2

[StyleNumbers]
FontColor=#FC1GEN#
FontSize=#FSN#
StringStyle=NORMAL
StringAlign=RIGHT
FontFace=#Font#
StringEffect=SHADOW
FontEffectColor=0,0,0,100
Antialias=1
Container=MeterContainer2
Group=Wind2

[StyleNumbersLow]
FontColor=#FC2LOW#
FontSize=#FSN#
StringStyle=NORMAL
StringAlign=RIGHT
FontFace=#Font#
StringEffect=SHADOW
FontEffectColor=0,0,0,100
Antialias=1
Container=MeterContainer2
Group=Wind2

[StringStyle]
Padding=15,5,15,5
FontColor=#FC1GEN#
StringEffect=BORDER
FontEffectColor=0,0,0,100
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
Text=%1#CRLF#%3 kts#CRLF#%4 kts
Group=Wind
Container=MeterContainer 

[WindDirectionStyle]
X=-25r
Y=2R
W=50
H=30
ImageName=#@#Images\Roos.png
OffsetX=10
OffsetY=10
StartAngle=0
RotationAngle=(2*PI)
Group=Wind
Container=MeterContainer 

[ColorStyle]
W=50
H=12
Group=Wind
Container=MeterContainer 

;================================================================
;-------------  MEASURE WEATHER CODE BASED ON IP  ---------------
;================================================================

;First sliding window
[MeasureSlide2]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat Right,15,50
Right=[!SetVariable Z "(Clamp((#Z#+14),-280,30))"]#V#
ActionList2=Repeat Left,15,50
Left=[!SetVariable Z "(Clamp((#Z#-14),-280,30))"]#V#
DynamicVariables=1

;Second sliding window (windfinder)
[MeasureSlide]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat Right,15,50
Right=[!SetVariable X "(Clamp((#X#+14),-410,30))"]#U#
ActionList2=Repeat Left,15,50
Left=[!SetVariable X "(Clamp((#X#-14),-410,30))"]#U#
DynamicVariables=1

@IncludeWindInfo=#@#Wind.inc

[MeasureLocation]
Measure=WebParser
Url=http://ip-api.com/json
;RegExp=(?siU)"city":"(.*)","country":"(.*)".*,"regionname":"(.*)"
RegExp=(?siU).*"country":"(.*)".*,"region":"(.*)".*,"regionName":"(.*)".*,"city":"(.*)"
FinishAction=[!EnableMeasure MeasureWeatherCode][!CommandMeasure MeasureWeatherCode "Update"]

[MeasureCountry]
Measure=WebParser
Url=[MeasureLocation]
StringIndex=1

[MeasureRegion]
Measure=WebParser
Url=[MeasureLocation]
StringIndex=3

[MeasureRegionName]
Measure=WebParser
URL=[MeasureLocation]
StringIndex=2

[MeasureCity]
Measure=WebParser
URL=[MeasureLocation]
StringIndex=4

[MeasureWeatherCode]
Measure=WebParser
Url=http://wxdata.weather.com/wxdata/search/search?where=[&MeasureCity] [&MeasureRegion] [&MeasureCountry]
DynamicVariables=1
RegExp=(?siU).*<loc id="(.*)"
FinishAction=[!EnableMeasure MeasureWeatherRSS][!CommandMeasure MeasureWeatherRSS "Update"]
Disabled=1

[MeasureCode]
Measure=WebParser
URL=[MeasureWeatherCode]
StringIndex=1

;================================================================
;----------------  MEASURE WEATHER INFORMATION  -----------------
;================================================================

[MeasureWeatherRSS]
Measure=WebParser
Url=http://wxdata.weather.com/wxdata/weather/local/[&MeasureCode]?cc=*&unit=#WeatherUnit#&dayf=6
;http://wxdata.weather.com/wxdata/weather/local/NLXX0272?cc=*&unit=m&dayf=6
RegExp=(?siU)<weather ver="(.*)">(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<d>(.*)</d>.*<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*).*<wind>.*<s>(.*)</s>.*<d>(.*)</d>.*<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*).*<wind>.*<s>(.*)</s>.*<d>(.*)</d>.*<day d="3" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*).*<wind>.*<s>(.*)</s>.*<d>(.*)</d>.*<day d="4" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*).*<wind>.*<s>(.*)</s>.*<d>(.*)</d>
DynamicVariables=1
Disabled=1
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]

;-------  UpdateRate=60 = 1 minute interval  ------
;UpdateRate=180
;-------------  180 = 3 minutes  ------------------

;-------  Write into Log Rainmeter to check  ------
;FinishAction=[!Log "RSS just updated"]
;--------------------------------------------------

;----------------------- CURRENT DAY ---------------------------

[MeasureWeatherTemp]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasureWeatherDesc]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=5

[MeasureWeatherIcon]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=7

[MeasureWDirection]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=11
MinValue=0
MaxValue=360

[MeasureWSpeed]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=10

;----------------------- FIRST FORECAST ------------------------

[MeasureWeatherDesc1]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=21

[MeasureWeatherDay1]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=12

[MeasureWeatherTemp1]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=15

[MeasureWeatherTemplo1]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=17

[MeasureWeatherIcon1]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=19

[MeasureWDirection1]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=24
MinValue=0
MaxValue=360

[MeasureWSpeed1]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=23

;----------------------- SECOND FORECAST -----------------------

[MeasureWeatherDesc2]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=34

[MeasureWeatherDay2]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=25

[MeasureWeatherTemp2]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=28

[MeasureWeatherTemplo2]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=30

[MeasureWeatherIcon2]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=32

[MeasureWDirection2]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=37
MinValue=0
MaxValue=360

[MeasureWSpeed2]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=36

;----------------------- THIRD FORECAST ------------------------

[MeasureWeatherDesc3]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=47

[MeasureWeatherDay3]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=38

[MeasureWeatherTemp3]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=41

[MeasureWeatherTemplo3]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=43

[MeasureWeatherIcon3]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=45

[MeasureWDirection3]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=50
MinValue=0
MaxValue=360

[MeasureWSpeed3]
Measure=WebParser
Url=[MeasureWeatherRSS]
StringIndex=49

;================================================================
;------------------------  METERS  ------------------------------
;================================================================

[meterTitleBox]
Meter=Shape
X=0
Y=596
Shape=Rectangle 0,0,30,236,5 | Fill Color 0,0,0,120 | StrokeWidth 1.5 | Stroke Color #Backgroundcolor#
LeftMouseUpAction=[!CommandMeasure "MeasureSlide2" "Execute 1"][!CommandMeasure "MeasureSlide2" "Stop 2"]
RightMouseUpAction=[!CommandMeasure "MeasureSlide2" "Stop 1"][!CommandMeasure "MeasureSlide2" "Execute 2"]
DynamicVariables=1

[meterTitleText]
Meter=STRING
MeterStyle=styleTitle
X=25r
Y=75r
Text="Weather"
Angle=1.57

[MeterContainer2]
Meter=Image
SolidColor=0,0,0
X=7r
Y=-75r
W=280
H=236

[MeterSlidingBackground2]
Meter=Shape
Shape=Rectangle 0,0,280,236,5 | Fill Color #Backgroundcolor2# | StrokeWidth 1.5 | Stroke Color #Backgroundcolor#
X=(#Z#-30)
Y=r
DynamicVariables=1
Container=MeterContainer2
Group=Wind2

[meterCity]
MeasureName=MeasureCity
MeterStyle=styleText
FontSize=#FSLoc#
StringAlign=LEFT
Meter=STRING
X=10r
Y=5r
Text=%1

[meterRegion]
MeasureName=MeasureRegion
MeterStyle=styleText
FontSize=#FSLoc#
StringAlign=CENTER
Meter=STRING
X=128r
Y=r
Text=%1

[meterCountry]
MeasureName=MeasureCountry
MeterStyle=styleText
FontSize=#FSLoc#
StringAlign=RIGHT
Meter=STRING
X=135r
Y=r
Text=%1

[MeterTemp]
MeasureName=MeasureWeatherTemp
MeterStyle=StyleNumbers
Meter=STRING
X=-130r
Y=30r
Postfix="°"

[MeterDay]
Meter=STRING
MeterStyle=StyleText
X=-40r
Y=-5r
Prefix=Today

[MeterDesc]
MeasureName=MeasureWeatherDesc
MeterStyle=StyleText
Meter=STRING
X=r
Y=20r

[MeterIconNA]
ImagePath=#@#WeatherIcons\
ImageName=na.png
Meter=IMAGE
X=50r
Y=-20r
W=#IconWidth#
H=#IconHeight#
Container=MeterContainer2
Group=Wind2

[MeterIcon]
ImagePath=#@#WeatherIcons\
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=r
Y=r
W=#IconWidth#
H=#IconHeight#
Hidden=1
LeftMouseUpAction=[https://www.buienradar.nl/]
Container=MeterContainer2
Group=Wind2

[MeterWindPointer]
Meter=Rotator
MeasureName=MeasureWDirection
ImageName=#@#Images\Roos.png
Imagetint=#RoosTint#
AntiAlias=1
StartAngle=(0*PI)
RotationAngle=(2*PI)
X=55r
Y=5r
OffsetX=(#RoosWidth# / 2)
OffsetY=(#RoosHeight# / 2)
W=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
H=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
LeftMouseUpAction=[https://www.windfinder.com/forecast/olderplas_ool]
Container=MeterContainer2
Group=Wind2

[MeasureWS]
Measure=Calc
Formula=MeasureWSpeed / 1.852

[MeterWindSpeed]
MeasureName=MeasureWS
MeterStyle=StyleText
Meter=STRING
X= 65r
Y= 5r
Postfix=" kts"
SolidColor=0,0,0,1
MouseOverAction=[!SetVariable Day1 "1"][!SetVariable Day2 "0"][!SetVariable Day3 "0"][!SetVariable Day4 "0"][!SetOption MeterDate MeasureName "MeasureDate1"][!SetOption MeterHour11 MeasureName "MeasureTime11"][!SetOption MeterHour11 MeasureName2 "MeasureWindDirection11"][!SetOption MeterHour11 MeasureName3 "MeasureWindSpeed11"][!SetOption MeterHour11 MeasureName4 "MeasureWindGusts11"][!SetOption MeterHour12 MeasureName "MeasureTime12"][!SetOption MeterHour12 MeasureName2 "MeasureWindDirection12"][!SetOption MeterHour12 MeasureName3 "MeasureWindSpeed12"][!SetOption MeterHour12 MeasureName4 "MeasureWindGusts12"][!SetOption MeterHour13 MeasureName "MeasureTime13"][!SetOption MeterHour13 MeasureName2 "MeasureWindDirection13"][!SetOption MeterHour13 MeasureName3 "MeasureWindSpeed13"][!SetOption MeterHour13 MeasureName4 "MeasureWindGusts13"][!SetOption MeterHour14 MeasureName "MeasureTime14"][!SetOption MeterHour14 MeasureName2 "MeasureWindDirection14"][!SetOption MeterHour14 MeasureName3 "MeasureWindSpeed14"][!SetOption MeterHour14 MeasureName4 "MeasureWindGusts14"][!SetOption MeterHour15 MeasureName "MeasureTime15"][!SetOption MeterHour15 MeasureName2 "MeasureWindDirection15"][!SetOption MeterHour15 MeasureName3 "MeasureWindSpeed15"][!SetOption MeterHour15 MeasureName4 "MeasureWindGusts15"][!SetOption MeterHour16 MeasureName "MeasureTime16"][!SetOption MeterHour16 MeasureName2 "MeasureWindDirection16"][!SetOption MeterHour16 MeasureName3 "MeasureWindSpeed16"][!SetOption MeterHour16 MeasureName4 "MeasureWindGusts16"][!SetOption MeterHour17 MeasureName "MeasureTime17"][!SetOption MeterHour17 MeasureName2 "MeasureWindDirection17"][!SetOption MeterHour17 MeasureName3 "MeasureWindSpeed17"][!SetOption MeterHour17 MeasureName4 "MeasureWindGusts17"][!SetOption MeterHour18 MeasureName "MeasureTime18"][!SetOption MeterHour18 MeasureName2 "MeasureWindDirection18"][!SetOption MeterHour18 MeasureName3 "MeasureWindSpeed18"][!SetOption MeterHour18 MeasureName4 "MeasureWindGusts18"][!SetOption MeterWindDirection11 MeasureName "MeasureWindDirection11"][!SetOption MeterWindDirection12 MeasureName "MeasureWindDirection12"][!SetOption MeterWindDirection13 MeasureName "MeasureWindDirection13"][!SetOption MeterWindDirection14 MeasureName "MeasureWindDirection14"][!SetOption MeterWindDirection15 MeasureName "MeasureWindDirection15"][!SetOption MeterWindDirection16 MeasureName "MeasureWindDirection16"][!SetOption MeterWindDirection17 MeasureName "MeasureWindDirection17"][!SetOption MeterWindDirection18 MeasureName "MeasureWindDirection18"][!UpdateMeterGroup "Wind"][!Redraw][!CommandMeasure "MeasureSlide" "Execute 1"][!CommandMeasure "MeasureSlide" "Stop 2"][!UpdateMeasureGroup "WindColor"]
MouseLeaveAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"]
DynamicVariables=1

;------------------------- Second Day

[MeterTemp1]
MeasureName=MeasureWeatherTemp1
MeterStyle=StyleNumbers
Meter=STRING
X=-130r
Y=37r
Postfix="°"

[MeterTemplo1]
MeasureName=MeasureWeatherTemplo1
MeterStyle=StyleNumbersLow
Meter=STRING
X=r
Y=20r
Postfix="°"

[MeterDay1]
MeasureName=MeasureWeatherDay1
MeterStyle=StyleText
Meter=STRING
X=-40r
Y=-15r

[MeterDesc1]
MeasureName=MeasureWeatherDesc1
MeterStyle=StyleText
Meter=STRING
X=r
Y=20r

[MeterIcon1]
ImagePath=#@#WeatherIcons\
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
X=50r
Y=-20r
W=#IconWidth#
H=#IconHeight#
Container=MeterContainer2
Group=Wind2

[MeterWindPointer1]
Meter=Rotator
MeasureName=MeasureWDirection1
ImageName=#@#Images\Roos.png
Imagetint=#RoosTint#
AntiAlias=1
StartAngle=0
RotationAngle=6.2832
X=55r
Y=5r
OffsetX=(#RoosWidth# / 2)
OffsetY=(#RoosHeight# / 2)
W=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
H=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
Container=MeterContainer2
Group=Wind2

[MeasureWS1]
Measure=Calc
Formula=MeasureWSpeed1 / 1.852

[MeterWindSpeed1]
MeasureName=MeasureWS1
MeterStyle=StyleText
Meter=STRING
X= 65r
Y= 5r
Postfix=" kts"
SolidColor=0,0,0,1
MouseOverAction=[!SetVariable Day1 "0"][!SetVariable Day2 "1"][!SetVariable Day3 "0"][!SetVariable Day4 "0"][!SetOption MeterDate MeasureName "MeasureDate2"][!SetOption MeterHour11 MeasureName "MeasureTime21"][!SetOption MeterHour11 MeasureName2 "MeasureWindDirection21"][!SetOption MeterHour11 MeasureName3 "MeasureWindSpeed21"][!SetOption MeterHour11 MeasureName4 "MeasureWindGusts21"][!SetOption MeterHour12 MeasureName "MeasureTime22"][!SetOption MeterHour12 MeasureName2 "MeasureWindDirection22"][!SetOption MeterHour12 MeasureName3 "MeasureWindSpeed22"][!SetOption MeterHour12 MeasureName4 "MeasureWindGusts22"][!SetOption MeterHour13 MeasureName "MeasureTime23"][!SetOption MeterHour13 MeasureName2 "MeasureWindDirection23"][!SetOption MeterHour13 MeasureName3 "MeasureWindSpeed23"][!SetOption MeterHour13 MeasureName4 "MeasureWindGusts23"][!SetOption MeterHour14 MeasureName "MeasureTime24"][!SetOption MeterHour14 MeasureName2 "MeasureWindDirection24"][!SetOption MeterHour14 MeasureName3 "MeasureWindSpeed24"][!SetOption MeterHour14 MeasureName4 "MeasureWindGusts24"][!SetOption MeterHour15 MeasureName "MeasureTime25"][!SetOption MeterHour15 MeasureName2 "MeasureWindDirection25"][!SetOption MeterHour15 MeasureName3 "MeasureWindSpeed25"][!SetOption MeterHour15 MeasureName4 "MeasureWindGusts25"][!SetOption MeterHour16 MeasureName "MeasureTime26"][!SetOption MeterHour16 MeasureName2 "MeasureWindDirection26"][!SetOption MeterHour16 MeasureName3 "MeasureWindSpeed26"][!SetOption MeterHour16 MeasureName4 "MeasureWindGusts26"][!SetOption MeterHour17 MeasureName "MeasureTime27"][!SetOption MeterHour17 MeasureName2 "MeasureWindDirection27"][!SetOption MeterHour17 MeasureName3 "MeasureWindSpeed27"][!SetOption MeterHour17 MeasureName4 "MeasureWindGusts27"][!SetOption MeterHour18 MeasureName "MeasureTime28"][!SetOption MeterHour18 MeasureName2 "MeasureWindDirection28"][!SetOption MeterHour18 MeasureName3 "MeasureWindSpeed28"][!SetOption MeterHour18 MeasureName4 "MeasureWindGusts28"][!SetOption MeterWindDirection11 MeasureName "MeasureWindDirection21"][!SetOption MeterWindDirection12 MeasureName "MeasureWindDirection22"][!SetOption MeterWindDirection13 MeasureName "MeasureWindDirection23"][!SetOption MeterWindDirection14 MeasureName "MeasureWindDirection24"][!SetOption MeterWindDirection15 MeasureName "MeasureWindDirection25"][!SetOption MeterWindDirection16 MeasureName "MeasureWindDirection26"][!SetOption MeterWindDirection17 MeasureName "MeasureWindDirection27"][!SetOption MeterWindDirection18 MeasureName "MeasureWindDirection28"][!UpdateMeterGroup "Wind"][!Redraw][!CommandMeasure "MeasureSlide" "Execute 1"][!CommandMeasure "MeasureSlide" "Stop 2"][!UpdateMeasureGroup "WindColor"]
MouseLeaveAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"]
DynamicVariables=1

;------------------------- Thrid Day

[MeterTemp2]
MeasureName=MeasureWeatherTemp2
MeterStyle=StyleNumbers
Meter=STRING
X=-130r
Y=37r
Postfix="°"

[MeterTemplo2]
MeasureName=MeasureWeatherTemplo2
MeterStyle=StyleNumbersLow
Meter=STRING
X=r
Y=20r
Postfix="°"

[MeterDay2]
MeasureName=MeasureWeatherDay2
MeterStyle=StyleText
Meter=STRING
X=-40r
Y=-15r

[MeterDesc2]
MeasureName=MeasureWeatherDesc2
MeterStyle=StyleText
Meter=STRING
X=r
Y=20r

[MeterIcon2]
ImagePath=#@#WeatherIcons\
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
X=50r
Y=-20r
W=#IconWidth#
H=#IconHeight#
Container=MeterContainer2
Group=Wind2

[MeterWindPointer2]
Meter=Rotator
MeasureName=MeasureWDirection2
ImageName=#@#Images\Roos.png
Imagetint=#RoosTint#
AntiAlias=1
StartAngle=0
RotationAngle=6.2832
X=55r
Y=5r
OffsetX=(#RoosWidth# / 2)
OffsetY=(#RoosHeight# / 2)
W=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
H=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
Container=MeterContainer2
Group=Wind2

[MeasureWS2]
Measure=Calc
Formula=MeasureWSpeed2 / 1.852

[MeterWindSpeed2]
MeasureName=MeasureWS2
MeterStyle=StyleText
Meter=STRING
X= 65r
Y= 5r
Postfix=" kts"
SolidColor=0,0,0,1
MouseOverAction=[!SetVariable Day1 "0"][!SetVariable Day2 "0"][!SetVariable Day3 "1"][!SetVariable Day4 "0"][!SetOption MeterDate MeasureName "MeasureDate3"][!SetOption MeterHour11 MeasureName "MeasureTime31"][!SetOption MeterHour11 MeasureName2 "MeasureWindDirection31"][!SetOption MeterHour11 MeasureName3 "MeasureWindSpeed31"][!SetOption MeterHour11 MeasureName4 "MeasureWindGusts31"][!SetOption MeterHour12 MeasureName "MeasureTime32"][!SetOption MeterHour12 MeasureName2 "MeasureWindDirection32"][!SetOption MeterHour12 MeasureName3 "MeasureWindSpeed32"][!SetOption MeterHour12 MeasureName4 "MeasureWindGusts32"][!SetOption MeterHour13 MeasureName "MeasureTime33"][!SetOption MeterHour13 MeasureName2 "MeasureWindDirection33"][!SetOption MeterHour13 MeasureName3 "MeasureWindSpeed33"][!SetOption MeterHour13 MeasureName4 "MeasureWindGusts33"][!SetOption MeterHour14 MeasureName "MeasureTime34"][!SetOption MeterHour14 MeasureName2 "MeasureWindDirection34"][!SetOption MeterHour14 MeasureName3 "MeasureWindSpeed34"][!SetOption MeterHour14 MeasureName4 "MeasureWindGusts34"][!SetOption MeterHour15 MeasureName "MeasureTime35"][!SetOption MeterHour15 MeasureName2 "MeasureWindDirection35"][!SetOption MeterHour15 MeasureName3 "MeasureWindSpeed35"][!SetOption MeterHour15 MeasureName4 "MeasureWindGusts35"][!SetOption MeterHour16 MeasureName "MeasureTime36"][!SetOption MeterHour16 MeasureName2 "MeasureWindDirection36"][!SetOption MeterHour16 MeasureName3 "MeasureWindSpeed36"][!SetOption MeterHour16 MeasureName4 "MeasureWindGusts36"][!SetOption MeterHour17 MeasureName "MeasureTime37"][!SetOption MeterHour17 MeasureName2 "MeasureWindDirection37"][!SetOption MeterHour17 MeasureName3 "MeasureWindSpeed37"][!SetOption MeterHour17 MeasureName4 "MeasureWindGusts37"][!SetOption MeterHour18 MeasureName "MeasureTime38"][!SetOption MeterHour18 MeasureName2 "MeasureWindDirection38"][!SetOption MeterHour18 MeasureName3 "MeasureWindSpeed38"][!SetOption MeterHour18 MeasureName4 "MeasureWindGusts38"][!SetOption MeterWindDirection11 MeasureName "MeasureWindDirection31"][!SetOption MeterWindDirection12 MeasureName "MeasureWindDirection32"][!SetOption MeterWindDirection13 MeasureName "MeasureWindDirection33"][!SetOption MeterWindDirection14 MeasureName "MeasureWindDirection34"][!SetOption MeterWindDirection15 MeasureName "MeasureWindDirection35"][!SetOption MeterWindDirection16 MeasureName "MeasureWindDirection36"][!SetOption MeterWindDirection17 MeasureName "MeasureWindDirection37"][!SetOption MeterWindDirection18 MeasureName "MeasureWindDirection38"][!UpdateMeterGroup "Wind"][!Redraw][!CommandMeasure "MeasureSlide" "Execute 1"][!CommandMeasure "MeasureSlide" "Stop 2"][!UpdateMeasureGroup "WindColor"]
MouseLeaveAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"]
DynamicVariables=1

;------------------------- Fourth Day

[MeterTemp3]
MeasureName=MeasureWeatherTemp3
MeterStyle=StyleNumbers
Meter=STRING
X=-130r
Y=37r
Postfix="°"

[MeterTemplo3]
MeasureName=MeasureWeatherTemplo3
MeterStyle=StyleNumbersLow
Meter=STRING
X=r
Y=20r
Postfix="°"

[MeterDay3]
MeasureName=MeasureWeatherDay3
MeterStyle=StyleText
Meter=STRING
X=-40r
Y=-15r

[MeterDesc3]
MeasureName=MeasureWeatherDesc3
MeterStyle=StyleText
Meter=STRING
X=r
Y=20r

[MeterIcon3]
ImagePath=#@#WeatherIcons\
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
X=50r
Y=-20r
W=#IconWidth#
H=#IconHeight#
Container=MeterContainer2
Group=Wind2

[MeterWindPointer3]
Meter=Rotator
MeasureName=MeasureWDirection3
ImageName=#@#Images\Roos.png
Imagetint=#RoosTint#
AntiAlias=1
StartAngle=0
RotationAngle=6.2832
X=55r
Y=5r
OffsetX=(#RoosWidth# / 2)
OffsetY=(#RoosHeight# / 2)
W=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
H=(SQRT(#RoosWidth# ** 2 + #RoosHeight# ** 2))
Container=MeterContainer2
Group=Wind2

[MeasureWS3]
Measure=Calc
Formula=MeasureWSpeed3 / 1.852

[MeterWindSpeed3]
MeasureName=MeasureWS3
MeterStyle=StyleText
Meter=STRING
X= 65r
Y= 5r
Postfix=" kts"
SolidColor=0,0,0,1
MouseOverAction=[!SetVariable Day1 "0"][!SetVariable Day2 "0"][!SetVariable Day3 "0"][!SetVariable Day4 "1"][!SetOption MeterDate MeasureName "MeasureDate4"][!SetOption MeterHour11 MeasureName "MeasureTime41"][!SetOption MeterHour11 MeasureName2 "MeasureWindDirection41"][!SetOption MeterHour11 MeasureName3 "MeasureWindSpeed41"][!SetOption MeterHour11 MeasureName4 "MeasureWindGusts41"][!SetOption MeterHour12 MeasureName "MeasureTime42"][!SetOption MeterHour12 MeasureName2 "MeasureWindDirection42"][!SetOption MeterHour12 MeasureName3 "MeasureWindSpeed42"][!SetOption MeterHour12 MeasureName4 "MeasureWindGusts42"][!SetOption MeterHour13 MeasureName "MeasureTime43"][!SetOption MeterHour13 MeasureName2 "MeasureWindDirection43"][!SetOption MeterHour13 MeasureName3 "MeasureWindSpeed43"][!SetOption MeterHour13 MeasureName4 "MeasureWindGusts43"][!SetOption MeterHour14 MeasureName "MeasureTime44"][!SetOption MeterHour14 MeasureName2 "MeasureWindDirection44"][!SetOption MeterHour14 MeasureName3 "MeasureWindSpeed44"][!SetOption MeterHour14 MeasureName4 "MeasureWindGusts44"][!SetOption MeterHour15 MeasureName "MeasureTime45"][!SetOption MeterHour15 MeasureName2 "MeasureWindDirection45"][!SetOption MeterHour15 MeasureName3 "MeasureWindSpeed45"][!SetOption MeterHour15 MeasureName4 "MeasureWindGusts45"][!SetOption MeterHour16 MeasureName "MeasureTime46"][!SetOption MeterHour16 MeasureName2 "MeasureWindDirection46"][!SetOption MeterHour16 MeasureName3 "MeasureWindSpeed46"][!SetOption MeterHour16 MeasureName4 "MeasureWindGusts46"][!SetOption MeterHour17 MeasureName "MeasureTime47"][!SetOption MeterHour17 MeasureName2 "MeasureWindDirection47"][!SetOption MeterHour17 MeasureName3 "MeasureWindSpeed47"][!SetOption MeterHour17 MeasureName4 "MeasureWindGusts47"][!SetOption MeterHour18 MeasureName "MeasureTime48"][!SetOption MeterHour18 MeasureName2 "MeasureWindDirection48"][!SetOption MeterHour18 MeasureName3 "MeasureWindSpeed48"][!SetOption MeterHour18 MeasureName4 "MeasureWindGusts48"][!SetOption MeterWindDirection11 MeasureName "MeasureWindDirection41"][!SetOption MeterWindDirection12 MeasureName "MeasureWindDirection42"][!SetOption MeterWindDirection13 MeasureName "MeasureWindDirection43"][!SetOption MeterWindDirection14 MeasureName "MeasureWindDirection44"][!SetOption MeterWindDirection15 MeasureName "MeasureWindDirection45"][!SetOption MeterWindDirection16 MeasureName "MeasureWindDirection46"][!SetOption MeterWindDirection17 MeasureName "MeasureWindDirection47"][!SetOption MeterWindDirection18 MeasureName "MeasureWindDirection48"][!UpdateMeterGroup "Wind"][!Redraw][!CommandMeasure "MeasureSlide" "Execute 1"][!CommandMeasure "MeasureSlide" "Stop 2"][!UpdateMeasureGroup "WindColor"]
MouseLeaveAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"]
DynamicVariables=1


[MeterContainer]
Meter=Image
SolidColor=0,0,0
X=282r
Y=670
W=450
H=120

[MeterSlidingBackground]
Meter=Shape
Shape=Rectangle 0,0,450,120,5 | Fill Color #Backgroundcolor2# | StrokeWidth 1.5 | Stroke Color #Backgroundcolor#
X=(#X#-41)
Y=r
DynamicVariables=1
Container=MeterContainer
Group=Wind

[MeterDate]
Meter=STRING
MeterStyle=StringStyle
X=230r
Y=0
Text=%1
;DynamicVariables=1
Group=Wind

[MeterWindColor11]
Meter=Image
MeterStyle=ColorStyle
X=-207r
Y=47r

[MeterWindColor12]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour11]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection11]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11

[MeterWindColor21]
Meter=Image
MeterStyle=ColorStyle
X=52r
Y=-35r

[MeterWindColor22]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour12]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection12]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11

[MeterWindColor31]
Meter=Image
MeterStyle=ColorStyle
X=52r
Y=-35r

[MeterWindColor32]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour13]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection13]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11

[MeterWindColor41]
Meter=Image
MeterStyle=ColorStyle
X=52r
Y=-35r

[MeterWindColor42]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour14]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection14]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11

[MeterWindColor51]
Meter=Image
MeterStyle=ColorStyle
X=52r
Y=-35r

[MeterWindColor52]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour15]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection15]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11

[MeterWindColor61]
Meter=Image
MeterStyle=ColorStyle
X=52r
Y=-35r

[MeterWindColor62]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour16]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection16]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11

[MeterWindColor71]
Meter=Image
MeterStyle=ColorStyle
X=52r
Y=-35r

[MeterWindColor72]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour17]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection17]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11

[MeterWindColor81]
Meter=Image
MeterStyle=ColorStyle
X=52r
Y=-35r

[MeterWindColor82]
Meter=Image
MeterStyle=ColorStyle
X=0r
Y=14r

[MeterHour18]
Meter=STRING
MeterStyle=StringStyle
X=25r
Y=-35r
W=20
H=44

[MeterWindDirection18]
Meter=Rotator
MeterStyle=WindDirectionStyle
MeasureName=MeasureWindDirection11
As can be seen the corners on the right are OK.
The corners on the left are square and NOT rounded.
Capture01.png
All other rectangle's I get rounded edges but not on the sliding window.

What am I doing wrong?
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 10023
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 24th, 2019, 3:25 pm
All other rectangle's I get rounded edges but not on the sliding window.

What am I doing wrong?
But yes, that rectangle as well has rounded corners. You don't see this is because it slides too less and / or the container is too small.
To fix, replace the upper limits of the Clamp functions used into the Right and Left options of the [MeasureSlide] measure, using 45 instead of the original 30:

Code: Select all

[MeasureSlide]
...
Right=[!SetVariable X "(Clamp((#X#+14),-410,45))"]#U#
...
Left=[!SetVariable X "(Clamp((#X#-14),-410,45))"]#U#
...
Also add 10 to the value of the W option of the [MeterContainer] meter, replacing the original W=450 with W=460:

Code: Select all

[MeterContainer]
...
W=460
...
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

Balala,

Thank you very much. That did the trick.
After a whole afternoon trying to accomplish this you fixed it in seconds.

Maybe I should have asked earlier. :lol:
User avatar
balala
Rainmeter Sage
Posts: 10023
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 24th, 2019, 5:33 pm
Maybe I should have asked earlier. :lol:
It's not a bad idea to try to fix it by yourself and ask for help only if you don't succeed. Might help later, because this way you're gaining experience.
I'm glad if you got it working as you like it. Feel free to come back whenever you have further questions. :great:
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

For those who are interested, this is how the complete skin looks like:
Capture02.png
For those who are interested, here is the Skin packager:
Monitor_.rmskin
You'll need HWINFO installed and use "spicetify" to run the webnowplaying application for spotify options
Spicetify you should install over Powershell, with no CSS modifications of spotify to prevent UI disturbance's.
You do not have the required permissions to view the files attached to this post.
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

balala wrote:
October 24th, 2019, 5:38 pm
It's not a bad idea to try to fix it by yourself and ask for help only if you don't succeed. Might help later, because this way you're gaining experience.
I'm glad if you got it working as you like it. Feel free to come back whenever you have further questions. :great:
Thanks, I will.... :welcome:
User avatar
balala
Rainmeter Sage
Posts: 10023
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 24th, 2019, 5:57 pm
For those who are interested, here is the Skin packager:
Monitor_.rmskin
Congrats for this package. :great: