It is currently March 30th, 2020, 1:43 pm

Challange for the PRO

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

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 15th, 2019, 7:36 pm
When I try to set a transparent color to these values, as you mentioned the wind direction icon does not have this background color because it's a different meter I guess.

Is there an easy fix for this?
If I add in [WindDirectionStyle] SolidColor=0,0,0,120 there seems to be some kind of overlap
I rewrote some things in the code of Vertical.ini file. Please try it out:

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, sun/moon icon and days + description
Instructions=Automatic weather location code based on IP address, and unit to f or m depending on your preference.
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]
BackgroundColor=0,0,0,120

;================================================================
;------------------------  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#
;StringStyle=BOLD
Fontweight=600
StringAlign=RIGHT
FontFace=#Font#
StringEffect=SHADOW
FontEffectColor=0,0,0,100
Antialias=1
W=110
H=40
ClipString=1

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

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

[StringStyle]
Padding=15,5,15,5
FontColor=220,220,220
;SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
Text=%1#CRLF#%3 kts#CRLF#%4 kts
Container=MeterContainer
Group=Wind
SolidColor=#BackgroundColor#

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

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

[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":"(.*)"
FinishAction=[!EnableMeasure MeasureWeatherCode][!CommandMeasure MeasureWeatherCode "Update"]

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

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

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

[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  ------------------------------
;================================================================

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=25
Y=675
h=100
Text="Weather"
Angle=1.57

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

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

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

[MeterTemp]
MeasureName=MeasureWeatherTemp
MeterStyle=StyleNumbers
Meter=STRING
X=160
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#

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

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

[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=[!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"]
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#

[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))

[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=[!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"]
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#

[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))

[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=[!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"]
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#

[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))

[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=[!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"]
MouseLeaveAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"]
DynamicVariables=1

[MeterContainer]
Meter=Image
SolidColor=0,0,0
X=-70R
Y=670
W=500
;W=450
H=125

[MeterDate]
Meter=STRING
MeterStyle=StringStyle
X=(180+#X#)
Y=0
W=384
H=14
Text=%1
DynamicVariables=1
Group=Wind

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

[MeterWindDirection11]
Meter=Rotator
MeterStyle=WindDirectionStyle

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

[MeterWindDirection12]
Meter=Rotator
MeterStyle=WindDirectionStyle

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

[MeterWindDirection13]
Meter=Rotator
MeterStyle=WindDirectionStyle

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

[MeterWindDirection14]
Meter=Rotator
MeterStyle=WindDirectionStyle

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

[MeterWindDirection15]
Meter=Rotator
MeterStyle=WindDirectionStyle

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

[MeterWindDirection16]
Meter=Rotator
MeterStyle=WindDirectionStyle

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

[MeterWindDirection17]
Meter=Rotator
MeterStyle=WindDirectionStyle

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

[MeterWindDirection18]
Meter=Rotator
MeterStyle=WindDirectionStyle
Set the desired background color, setting the BackgroundColor variable within the [Variables] section.
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

Perfect!
It works like a charm

Wish I could code like that... :thumbup:
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

does the weather skin work at your desktop.

I do not have the webparser results for city, region and country anymore.
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

JamX wrote:
October 15th, 2019, 8:25 pm
does the weather skin work at your desktop.

I do not have the webparser results for city, region and country anymore.
strange:
After replacing
RegExp=(?siU)"city":"(.*)","country":"(.*)".*,"regionName":"(.*)" with
RegExp=(?siU)"country":"(.*)".*,"regionName":"(.*)","city":"(.*)" and changing the string indexes it work again. :???:
User avatar
balala
Rainmeter Sage
Posts: 10017
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 15th, 2019, 8:25 pm
does the weather skin work at your desktop.
It does work for me.
JamX wrote:
October 15th, 2019, 8:41 pm
strange:
After replacing
RegExp=(?siU)"city":"(.*)","country":"(.*)".*,"regionName":"(.*)" with
RegExp=(?siU)"country":"(.*)".*,"regionName":"(.*)","city":"(.*)" and changing the string indexes it work again. :???:
Ok, glad if you got it working again.
User avatar
balala
Rainmeter Sage
Posts: 10017
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 15th, 2019, 8:17 pm
Wish I could code like that... :thumbup:
If you keep working, this will come. :thumbup:
dvo
Posts: 693
Joined: February 7th, 2016, 6:08 am

Re: Challange for the PRO

Post by dvo »

found a fault in the regexp of jamx .... for me he's calling this : country":"Netherlands","countryCode":"NL","region":"ZH","regionName":"South Holland","city":"Rotterdam instead of "regionName" it has to be "region" alone because it has to be "ZH" for the wxdata... :D

http://wxdata.weather.com/wxdata/search/search?where=[&MeasureCity] [&MeasureRegion] [&MeasureCountry]

in my case it would be : Rotterdam ZH Neterlands

you don't have all the hours included so it would be less like that he could color the background with a style that's possible. :phhht
Last edited by dvo on October 15th, 2019, 9:33 pm, edited 3 times in total.
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

I almost do not dare to ask....but do you think the color coding based on the amount of knots is possible?

So you get some kind of colored bar meter for wind speed and wind gusts like.
Windy (2).JPG
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 »

dvo wrote:
October 15th, 2019, 9:22 pm
found a fault in the regexp of jamx .... for me he's calling this : country":"Netherlands","countryCode":"NL","region":"ZH","regionName":"South Holland","city":"Rotterdam instead of "regionName" it has to be "region" alone because it has to be "ZH" for the wxdata... :D

http://wxdata.weather.com/wxdata/search/search?where=[&MeasureCity] [&MeasureRegion] [&MeasureCountry]

in my case it would be : Rotterdam ZH Neterlands
Stange think is that it worked, without errors, flawless.
Suddenly, this night it did not anymore...But I've fixed it and its working
User avatar
JamX
Posts: 108
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

Correct values and working skin example.
Capture8.JPG
Now it's time to go to bed.
:yawn:
You do not have the required permissions to view the files attached to this post.