It is currently March 28th, 2024, 10:35 pm

Can't get weather skins to work

Get help with creating, editing & fixing problems with skins
osmija
Posts: 38
Joined: July 1st, 2016, 3:57 pm

Can't get weather skins to work

Post by osmija »

Code: Select all

[Rainmeter]
Author=partibrejkers
Update=1000
----------------------------------------------
The default weather code is set to Belgrade , to get your Weather Code visit (weather.yahoo.com) type in your Zip, click the RSS button, your code will be in the address bar. Click on "Edit Skin" below to enter your code. 
- Or try to find your weather code at (edg3.co.uk/snippets/weather-location-codes/)
----------------------------------------------------
[Variables]
Location=EIXX0024
Metric=M
Font=Century Gothic
FontColor=254, 204, 23


[bg]
ImageName=bg.png
Meter=IMAGE
X=0
Y=0



--------------

[Current]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=0
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"

[Today]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=1
RegExp="(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"



----------------

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=17

[MeasureWeatherDesc]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=19
Substitute=" And ":" and ","Lgt.":"Light ","Snow/":"Snow & "

[MeasureWeatherIcon]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=20

[MeasureWeatherRealFeel]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=18

------------------

[MeasureWeatherDesc1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=9
Substitute=" And ":" and "

[MeasureWeatherDay1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=2

[MeasureWeatherTemp1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=4
Substitute="N/A":"666"

[MeasureWeatherIcon1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=8

[CheckNATemp]
Measure=Calc
Formula=[MeasureWeatherTemp1]
IfBelowValue=665
IfBelowAction=!execute [!RainmeterHideMeter MeterNightTemp1][!RainmeterHideMeter MeterNightDay1][!RainmeterHideMeter MeterNightDesc1][!RainmeterHideMeter MeterNightIcon1][!RainmeterShowMeter MeterTemp1][!RainmeterShowMeter MeterDay1][!RainmeterShowMeter MeterDesc1][!RainmeterShowMeter MeterIcon1]
IfEqualValue=666
IfEqualAction=!execute [!RainmeterHideMeter MeterTemp1][!RainmeterHideMeter MeterDay1][!RainmeterHideMeter MeterDesc1][!RainmeterHideMeter MeterIcon1][!RainmeterShowMeter MeterNightTemp1][!RainmeterShowMeter MeterNightDay1][!RainmeterShowMeter MeterNightDesc1][!RainmeterShowMeter MeterNightIcon1]
DynamicVariables=1

----------------

[MeasureWeatherNightDesc]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=18
Substitute=" And ":" and "

[MeasureWeatherNightTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=5

[MeasureWeatherNightIcon]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=17

-----------------


-------------

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=225
Y=110
FontColor=211, 219, 229,140
StringStyle=BOLD
FontSize=40
StringAlign=Center
StringEffect=Shadow
FontEffectColor=0,0,0,100
FontFace=Century Gothic
Antialias=1
Postfix="°C"

[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=225
Y=170
H=30
W=450
FontColor=211, 219, 229,140
FontSize=30
StringAlign=center
StringStyle=BOLD
StringEffect=Shadow
FontEffectColor=0,0,0,100
FontFace=Century Gothic
Antialias=1



[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=150
Y=0

------------

is the skin, heres my errors:

Image
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Can't get weather skins to work

Post by fonpaolo »

User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't get weather skins to work

Post by balala »

The errors are caused by the [CheckNATemp] measure, which depending on the value of the [MeasureWeatherTemp1] measure (used into the formula of the [CheckNATemp] measure), will want to show / hide some nonexistent meters (like [MeterNightTemp1], [MeterNightDay1], [MeterNightDesc1], [MeterNightIcon1], [MeterTemp1], [MeterDay1], [MeterDesc1] and [MeterIcon1]). Because these meters not exist, the skin gives those error messages. The simplest solution would be to simply disable the [CheckNATemp] measure (to be honest, I don't even could figure out its reason). So, simply add a Disable=1 option to this measure.
A few other things about your code:
  • I doubt this skin is working, because the URL option of the [Current] measure is wrong (at least for me it's not at all). Replace it with the following one: Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Metric#&dayf=0.
  • The !Rainmeter bang prefix and the !Execute bang are deprecated, both of them. You should remove them (but these prefixes and bangs appear just on the [CheckNATemp] measure, which I said to disable and if you do so, there's no need to replace / remove the bangs).
EDIT: It seems fonpaolo beat me (again).
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Can't get weather skins to work

Post by fonpaolo »

balala wrote:...
EDIT: It seems fonpaolo beat me (again).
...but, as always, your explanation is more detailed than mine. :)
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't get weather skins to work

Post by balala »

fonpaolo wrote:...but, as always, your explanation is more detailed than mine. :)
Thanks fonpaolo.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Can't get weather skins to work

Post by fonpaolo »

You're very welcome.
...and merry Christmas. :D
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't get weather skins to work

Post by balala »

fonpaolo wrote:You're very welcome.
...and merry Christmas. :D
Merry Christmas to you too.
osmija
Posts: 38
Joined: July 1st, 2016, 3:57 pm

Re: Can't get weather skins to work

Post by osmija »

thank you balala <3
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't get weather skins to work

Post by balala »

You're welcome osmija, but thank fonpaolo too, who also helped.