It is currently April 27th, 2024, 10:40 pm

Rain meter skin doesnt work

Get help with creating, editing & fixing problems with skins
cintax18
Posts: 2
Joined: December 31st, 2023, 5:51 am

Rain meter skin doesnt work

Post by cintax18 »

Hello, I downloaded a skin and it's not working. I tried to fix it by myself but I still lack knowledge in coding it. Here's the code of the skin.

Code: Select all

[Rainmeter]
Update=1000
@include=#@#Measures/CurrentConditions.inc
@include2=#@#Measures/Location.inc
@include3=#@#Measures/Alerts.inc
@include4=#@#Measures/7DayForecast.inc
@include5=#@#Measures/AirQuality.inc
@include6=#@#Measures/Pollen.inc
ContextTitle="Open Settings"
ContextAction=[!ActivateConfig Home\weather\Settings "Home.ini"]
LeftMouseDoubleClickAction=!ToggleConfig "Home\weather\Settings" "Home.ini"

[Variables]
@include=#@#UserSettings.inc
AlertsOffset=0
AlertsHide=1
7DayOffset=210
7DayHide=0
7DaySize=200
7DayMiniHide=1
HourlyOffset=210
HourlyHide=0
HourlySize=200
MiniHourlyHide=1
ReverseUnicode="\u002F":"/","\u005C":"\","\u003C":"<","\u003E":">","\u00FC":"[\x00FC]","\u00F6":"[\x00F6]","\u00EA":"[\x00EA]","\u00EB":"[\x00EB]","\00E4":"[\00E4]","\00DF":"[\00DF]","\u00E0":"[\x00E0]","\u00E9":"[\x00E9]","\u00E8":"[\x00E8]","\u0142":"[\x0142]","\u0105":"[\x0105]","\u0107":"[\x0107]","\u0119":"[\x0119]","\u0144":"[\x0144]","\u00F3":"[\x00F3]","\u015B":"[\x015B]","\u017A":"[\x017A]","\u017C":"[\x017C]","\u00E2":"[\x00E2]","\u00EB":"[\x00EB]","\u00EE":"[\x00EE]","\u00EF":"[\x00EF]","\u00F4":"[\x00F4]","\u00FB":"[\x00FB]","\u00E7":"[\x00E7]","\u00E1":"[\x00E1]","\u00ED":"[\x00ED]","\u00FA":"[\x00FA]",'"':""
HourlyMiniHide=1
HideOffset=210

[ColorTitleParent]
Measure=Plugin
Plugin=Chameleon
Type=Desktop

[DynamicAccentColorMeasure]
Measure=Plugin
Plugin=Chameleon
Parent=ColorTitleParent
Color=#AccentGradient#
Format=Dec

[StaticAccentColorMeasure]
Measure=String
String=#StaticAccentColor#

[StyleTitles]
FontFace = "Montserrat Semibold"
FontColor= [[#AccentColor]AccentColorMeasure]
FontSize = (18*#scale#)
AntiAlias = 1

[StyleContent]
FontFace = "Montserrat light"
FontColor = [[#AccentColor]AccentColorMeasure]
FontSize = (11*#scale#)
AntiAlias = 1

[WebParserParent]
Measure=WebParser
URL=https://weather.com/weather/today/l/#Location#
UserAgent="Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko)
RegExp=(?s).*
DynamicVariables=1
FinishAction=[!EnableMeasureGroup Parents][!UpdateMeter *][!Redraw]
OnUpdateAction=[!UpdateMeasureGroup Parents][!UpdateMeasureGroup Rain][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
UpdateRate=60
UpdateDivider=#UpdateEvery#
DecodeCharacterReference=1

[SubParentLocation]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunV3LocationPointUrlConfig\\":(.*)\\"status\\".*
Group=Parents
UpdateDivider=-1

[WebParserLocation]
Measure=WebParser
URL=https://weather.com/weather/today/l/#Location#
RegExp=(?siU).*\\"getSunV3LocationPointUrlConfig\\".*\\"displayName\\":\\"(.*)\\".*
UpdateDivider=-1
StringIndex=1

[WebParserCountry]
Measure=WebParser
URL=https://weather.com/weather/today/l/#Location#
RegExp=(?siU).*\\"getSunV3LocationPointUrlConfig\\".*\\"country\\":\\"(.*)\\".*
UpdateDivider=-1
StringIndex=1


[SubParentAlerts]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunWeatherAlertHeadlinesUrlConfig\\":(.*)\\"statusText\\".*
Group=Parents
UpdateDivider=-1

[SubParentHourly]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunV3HourlyForecastUrlConfig\\":(.*)\\"status\\".*
Group=Parents
UpdateDivider=-1

[SubParentCurrent]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunV3CurrentObservationsUrlConfig\\":(.*)\\"status\\".*
Group=Parents
UpdateDivider=-1

[SubParentDateTime]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunV3CurrentDateTimeByGeocodeUrlConfig\\":(.*)\\"status\\".*
Group=Parents
UpdateDivider=-1

[SubParentForecast]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunV3DailyForecastWithHeadersUrlConfig\\":(.*)\\"status\\".*
Group=Parents
UpdateDivider=-1

[SubParentRadarInfo]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunV1WWIRByGeocodeUrlConfig\\":(.*)\\"status\\".*
Group=Parents
UpdateDivider=-1

[SubParentAirQuality]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunV3GlobalAirQualityUrlConfig\\":(.*)\\"statusText\\".*
Group=Parents
UpdateDivider=-1

[SubParentPollen]
Measure=WebParser
URL=[WebParserParent]
RegExp=(?siU)\\"getSunIndexPollenDaypartUrlConfig\\":(.*)\\"status\\".*
Group=Parents
UpdateDivider=-1
FinishAction=[!EnableMeasure PollenParent]

[USStringIndexes]
Measure=String
String=#Language#
IfMatch=en_US
IfMatchAction=[!SetOption RunningParent StringIndex 9][!SetOption PollenParent StringIndex 8][!SetOption AirQualityParent StringIndex 10]
UpdateDivider=-1

[DateTimeParent]
Measure=WebParser
Group=Parents
URL=[SubParentDateTime]
StringIndex=1
Disabled=1
RegExp=(?siU).*\\"dateTime\\":.*T(.*)\..*
UpdateDivider=-1

[CurrentTime]
Measure=WebParser
URL=[DateTimeParent]
StringIndex=1
UpdateDivider=-1
Group=Children

[Next6HoursMeasure]
Measure=WebParser
Group=Children
URL=[Next6HoursParent]
StringIndex=1
UpdateDivider=-1

[Next6HoursParent]
Measure=WebParser
Group=Parents
URL=[SubParentRadarInfo]
StringIndex=1
Disabled=1
RegExp=(?siU).*\\"terse_phrase\\":\\"(.*)\\".*
UpdateDivider=-1

[Next6HoursMeasure]
Measure=WebParser
URL=[Next6HoursParent]
StringIndex=1
UpdateDivider=-1
Group=Children

[Background]
Meter=Shape
Shape=Rectangle 0,0,(500*#scale#),((300 - 100*#CompactCurrentConditions#)*#scale#),(#RoundedCorners#*#scale#),(#RoundedCorners#*#scale#) | Fill Color #BackgroundColor#,0 | StrokeWidth 0
DynamicVariables=1
UpdateDivider=-1

[CityNameMeter]
Meter=String
MeasureName=WebParserLocation
MeasureName2=WebParserCountry
inlineSetting=Shadow | 0 | 0 | 2 | #ImgTintColor
X=(550*#scale#)
Y=(2*#scale#)
Text=%1, %2
W=(400*#scale#)
TransformationMatrix=1;0.13;0;1;0;0				
Clipstring=2
StringAlign=Right
MeterStyle=StyleTitles
DynamicVariables=1
UpdateDivider=-1

[CurrentWeatherIconHighlight]
Meter=Image
ImageName=#@#Highlight/[CurrentIconCode].png
X=(20*#scale#)
Y=(15*#scale#)
w=(75*#scale#)
TransformationMatrix=1;0.12;-0.03;1;0;0				
ImageTint=[[#AccentColor]AccentColorMeasure]
DynamicVariables=1
UpdateDivider=-1

[CurrentWeatherIconClouds]
Meter=Image
ImageName=#@#Clouds/[CurrentIconCode].png
X=(20*#scale#)
Y=(15*#scale#)
w=(75*#scale#)
TransformationMatrix=1;0.12;-0.03;1;0;0				
ImageTint=#ImgTintColor#
DynamicVariables=1
UpdateDivider=-1

[CurrentWeatherMeter]
Meter=String
MeterStyle=StyleTitles	
MeasureName=CurrentWeather
inlineSetting=Shadow | 0 | 0 | 2 | #ImgTintColor#
X=(15*#scale#)
StringAlign=Left
Y=(95*#scale#)
TransformationMatrix=1;0.10;0;1;0;0				
UpdateDivider=-1

[CurrentTemperatureMeter]
Meter=String
MeasureName=CurrentTemp
MeterStyle=StyleTitles
inlineSetting=Shadow | 0 | 0 | 2 | #ImgTintColor#
FontColor = [[#AccentColor]AccentColorMeasure]
FontSize=(36*#scale#)
X=(120*#scale#)
Y=(5*#scale#)
TransformationMatrix=1;0.12;0;1;0;0				
DynamicVariables=1
UpdateDivider=-1

[CurrentTempUnitMeter]
Meter=String
MeasureName = TemperatureUnit
MeterStyle=StyleTitles
inlineSetting=Shadow | 0 | 0 | 2 | #ImgTintColor#
FontSize=(14*#scale#)
Text=[\x00B0]%1
X=-10R
Y=(15*#scale#)
TransformationMatrix=1;0.12;0;1;0;0				
DynamicVariables=1
UpdateDivider=-1

[CurrentFlikTempMeter]
Meter=String
MeasureName=CurrentFLikeTemp
MeasureName2=TemperatureUnit
Text=Feels like %1[\x00B0]%2
MeterStyle=StyleContent
X=(125*#scale#)
Y=(55*#scale#)
TransformationMatrix=1;0.12;0;1;0;0				
DynamicVariables=1
UpdateDivider=-1

[Next6HoursMeter]
Meter=String
MeasureName=Next6HoursMeasure
MeterStyle=StyleContent
X=(125*#scale#)
Y=(75*#scale#)
TransformationMatrix=1;0.12;0;1;0;0				
DynamicVariables=1
UpdateDivider=-1

[BarometerBackground]
Meter=Image
ImageName=#@#UI/BarometreFixed.png
X=((220+250*#CompactCurrentConditions#)*#scale#)
Y=((145-100*#CompactCurrentConditions#)*#scale#)
W=(60*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
ImageTint=[[#AccentColor]AccentColorMeasure]
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1

[BarometerForeground]
Meter=Image
ImageName=#@#UI/BarometreMoving[CurrentPressureTrend].png
X=(((250+250*#CompactCurrentConditions#)*#scale#)-(30*#scale# + (16 * sin(2*rad([CurrentPressureAngle])) ** 2)))
Y=(((175-100*#CompactCurrentConditions#)*#scale#)-(30*#scale# + (16 * sin(2*rad([CurrentPressureAngle])) ** 2)))
W=(60*#scale# + 32 * sin(2*rad([CurrentPressureAngle])) ** 2)
ImageRotate=[CurrentPressureAngle]
AntiAlias=1
TransformationMatrix=0.9;0.12;0;0.8;0;0				
ImageTint=[[#AccentColor]AccentColorMeasure]
DynamicVariables=1
UpdateDivider=-1

[WindBackground]
Meter=Image
ImageName=#@#UI/WindFixed.png
X=((300 + 250*#CompactCurrentConditions#)*#scale#)
Y=((142 - 100 * #CompactCurrentConditions#)*#scale#)
w=(60*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
ImageTint=[[#AccentColor]AccentColorMeasure]
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1

[WindForeground]
Meter=Image
ImageName=#@#UI/WindMoving.png
X=(((330 + 250*#CompactCurrentConditions#)*#scale#)-(30*#scale# + (16 * sin(2*rad([CurrentWindCalc])) ** 2)))
Y=(((170 - 100*#CompactCurrentConditions#)*#scale#)-(30*#scale# + (16 * sin(2*rad([CurrentWindCalc])) ** 2)))
w=(60*#scale# + 32 * sin(2*rad([CurrentWindCalc])) ** 2)
ImageRotate=[CurrentWindCalc]
TransformationMatrix=0.9;0.12;0;0.8;0;0				
AntiAlias=1
ImageTint=[[#AccentColor]AccentColorMeasure]
DynamicVariables=1
UpdateDivider=-1

[HumidityBackground]
Meter=Image
ImageName=#@#UI/HumidityFixed.png
X=((380 + 250 * #CompactCurrentConditions#)*#scale#)
Y=((140 - 100 * #CompactCurrentConditions#)*#scale#)
w=(60*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
AntiAlias=1
ImageTint=[[#AccentColor]AccentColorMeasure]
DynamicVariables=1
UpdateDivider=-1

[HumidityRoundline]
Meter=Roundline
X=((380 + 250 * #CompactCurrentConditions#)*#scale#)
Y=((140 - 100 * #CompactCurrentConditions#)*#scale#)
W=(60*#scale#)
H=(60*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
MeasureName=CurrentHumidity
StartAngle=(3 * Pi / 2)
RotationAngle=(2*pi)
LineLength=(25*#scale#)
LineColor=[[#AccentColor]AccentColorMeasure]
Solid=1
DynamicVariables=1
UpdateDivider=-1

[HumidityForeground]
Meter=Image
ImageName=#@#UI/HumidityMoving.png
X=0
Y=0
W=(60*#scale#)
H=(60*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
ImageTint=[[#AccentColor]AccentColorMeasure]
Container=HumidityRoundline
DynamicVariables=1
UpdateDivider=-1

[CurrentPressureMeter]
Meter=String
MeterStyle=StyleContent
MeasureName=CurrentPressure
MeasureName2=PressureUnit
Text=%1 %2
X=((250+250*#CompactCurrentConditions#)*#scale#)
Y=((205 - 100*#CompactCurrentConditions#)*#scale#)
W=(70*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
Clipstring=2
StringAlign=Center
UpdateDivider=-1

[CurrentWindMeter]
Meter=String
MeterStyle=StyleContent
MeasureName=CurrentWindSpeed
MeasureName2=WindUnit
Text=%1 #CRLF# %2
X=((330+250*#CompactCurrentConditions#)*#scale#)
Y=((202-100*#CompactCurrentConditions#)*#scale#)
W=(50*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
Clipstring=2
StringAlign=Center
UpdateDivider=-1

[CurrentHumidityMeter]
Meter=String
MeterStyle=StyleContent
MeasureName=CurrentHumidity
Text=%1%
X=((410 + 250 * #CompactCurrentConditions#)*#scale#)
Y=((200 - 100 * #CompactCurrentConditions#)*#scale#)
W=(60*#scale#)
TransformationMatrix=0.9;0.12;0;0.8;0;0				
Clipstring=2
StringAlign=Center
UpdateDivider=-1


[Separators]
Meter=Shape
Shape=Line (115*#scale#),(15*#scale#),(115*#scale#),(90*#scale#) | Stroke Color [[#AccentColor]AccentColorMeasure] | StrokeWidth 2
Shape2=Line (255*#scale#),(125*#scale#),(255*#scale#),(290*#scale#) | Stroke Color [[#AccentColor]AccentColorMeasure] | StrokeWidth (2 - 2*#CompactCurrentConditions#)
TransformationMatrix=1;0.12;-0.03;1;0;0
UpdateDivider=-1



I believe there's something outdated code written in there. any help will be highly appreciated. Thank you
Last edited by cintax18 on December 31st, 2023, 12:41 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16182
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Rain meter skin doesnt work

Post by balala »

cintax18 wrote: December 31st, 2023, 5:56 am Here's the code of the skin.
It's extremely hard to say anything meaningful, because we don't have the whole config and the code has lot of not-known included resources. But first of all what you should check if the location is correctly set: check if in one of the included files (most probably in the @Resourcs\Measures\Location.inc file) you have a Location variable set. If it's there, most probably it should have to look like Location=#Latitude#,#Longitude# and the Latitude and Longitude variables should have also be set to certain numeric values.
If you don't know how to check all this, add the following extremely simple String meter to the end of the above posted code and refresh the skin:

Code: Select all

[Uptime]
Meter=STRING
X=10
Y=10
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,140
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=Location: #Location##CRLF#Latitude: #Latitude##CRLF#Longitude: #Longitude#
DynamicVariables=1
If all are correctly set, you should have to see something like this (obviously you'll see different numeric values, this is just an example):

Code: Select all

Location: 41.5225,18.02584
Latitude: 41.5225
Longitude: 18.02584
I assume these variables are not set properly. Please check and if you can't find them, try opening the above mentioned @Resourcs\Measures\Location.inc file and try looking for the left empty variables (maybe are there, just have no values set - just an assumption). If you find them, add manually the appropriate valuesand refresh the skin.
Finally, if you can't get it working, pack the whole package / config and upload the package. This way we'll have all needed files to can check.

Additional note: whenever are you posting codes, use please the Code display button (looks this way: </> in the menu), not Spoiler.
cintax18
Posts: 2
Joined: December 31st, 2023, 5:51 am

Re: Rain meter skin doesnt work

Post by cintax18 »

balala wrote: December 31st, 2023, 7:17 am It's extremely hard to say anything meaningful, because we don't have the whole config and the code has lot of not-known included resources. But first of all what you should check if the location is correctly set: check if in one of the included files (most probably in the @Resourcs\Measures\Location.inc file) you have a Location variable set. If it's there, most probably it should have to look like Location=#Latitude#,#Longitude# and the Latitude and Longitude variables should have also be set to certain numeric values.
If you don't know how to check all this, add the following extremely simple String meter to the end of the above posted code and refresh the skin:

Code: Select all

[Uptime]
Meter=STRING
X=10
Y=10
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,140
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=Location: #Location##CRLF#Latitude: #Latitude##CRLF#Longitude: #Longitude#
DynamicVariables=1
If all are correctly set, you should have to see something like this (obviously you'll see different numeric values, this is just an example):

Code: Select all

Location: 41.5225,18.02584
Latitude: 41.5225
Longitude: 18.02584
I assume these variables are not set properly. Please check and if you can't find them, try opening the above mentioned @Resourcs\Measures\Location.inc file and try looking for the left empty variables (maybe are there, just have no values set - just an assumption). If you find them, add manually the appropriate valuesand refresh the skin.
Finally, if you can't get it working, pack the whole package / config and upload the package. This way we'll have all needed files to can check.

Additional note: whenever are you posting codes, use please the Code display button (looks this way: </> in the menu), not Spoiler.
Hello! thank you so much for helping.

I tried adding the additional codes above and it shows

Location: 14.757**
Latitude: #Latitude#
Longitude: #Longitude#

I'm going to attach the skin I downloaded
remi_s_home_by_shorbete_df0pzxt.rmskin
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16182
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Rain meter skin doesnt work

Post by balala »

cintax18 wrote: December 31st, 2023, 12:40 pm I'm going to attach the skin I downloaded
I tried loading the Home\Weather\Only Current Conditions.ini skin. Perfectly works, from the beginning. It shows the weather conditions for Sol, Spain, but works, even if there are a few errors in the log. Are you sure it doesn't work on your side? If it doesn't, try completely closing Rainmeter and restarting it. I mean right click its icon in the Notification Area and click Exit. Then restart it from the Start menu. Does it work this way?