It is currently April 28th, 2024, 12:31 am

[Bug] How do I get the Weather Skin Started?

Report bugs with the Rainmeter application and suggest features.
AtlBo
Posts: 13
Joined: September 19th, 2011, 8:03 pm

[Bug] How do I get the Weather Skin Started?

Post by AtlBo »

Brand new to rainmeter, so I am sorry that I do not know much. I have made some small improvements to the illustro skins that came with rainmeter when I downloaded the program, and I am very happy with the results. Unfortunately, there was no weather skin with the original download. I managed to locate one called desk five that has a great looking television type weather skin, and I added the weather code for my area, but the skin is still not working.

Does anyone have any idea how I might get the skin going? I tried to add the edit file as a Notepad attatchment, but it would not attatch, so here's the contents:

Code: Select all

[Rainmeter]
Author=mindenhova@freemail.hu
AppVersion=1001000
Update=1000
MiddleMouseDownAction=!RainmeterRefresh #CURRENTCONFIG#

[Variables]

; put your city's code here
WeatherCode=USGA0029

Color1=255, 255, 255, 235
FontName=Century Gothic
FontName2=Arial
FontHeight1=100
FontHeight2=50
FontHeight3=24
FontHeight4=16
AntiAlias=1

Color=255, 255, 255, 220
Color2=255, 255, 255, 217
ColorBG=255, 255, 255, 55
ColorBG2=255, 255, 255, 115
Height=10
Height2=8
Face=Trebuchet MS

Icon=0

BgX1=107
;+10
BgX2=117
;+2
BgX3=109
;+11
BgX4=118

BgY1=25
;+2
BgY2=27
;+17
BgY3=43
;+19
BgY4=46

TempX=152
TempY=70
TempX2=250

IconW=32
IconH=32

;-------------------------

[MeasureDate]
Measure=Time
Format="%#d"

[MeasureWeek0]
Measure=Time
Format="%w"

[MeasureWeek]
Measure=Calc
Formula=(MeasureWeek0=0)?7:MeasureWeek0

[MeasureMonth]
Measure=Time
Format="%#m"



[MeasureIndicateMo]
Measure=Calc
Formula=(MeasureWeek=0)
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter IndicateSu][!RainmeterHideMeter IndicateMo][!RainmeterHideMeter IndicateTu][!RainmeterHideMeter IndicateWe][!RainmeterHideMeter IndicateTh][!RainmeterHideMeter IndicateFr][!RainmeterHideMeter IndicateSa]

[MeasureIndicateTu]
Measure=Calc
Formula=(MeasureWeek=1)
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterHideMeter IndicateSu][!RainmeterShowMeter IndicateMo][!RainmeterHideMeter IndicateTu][!RainmeterHideMeter IndicateWe][!RainmeterHideMeter IndicateTh][!RainmeterHideMeter IndicateFr][!RainmeterHideMeter IndicateSa]

[MeasureIndicateWe]
Measure=Calc
Formula=(MeasureWeek=2)
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterHideMeter IndicateSu][!RainmeterHideMeter IndicateMo][!RainmeterShowMeter IndicateTu][!RainmeterHideMeter IndicateWe][!RainmeterHideMeter IndicateTh][!RainmeterHideMeter IndicateFr][!RainmeterHideMeter IndicateSa]

[MeasureIndicateTh]
Measure=Calc
Formula=(MeasureWeek=3)
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterHideMeter IndicateSu][!RainmeterHideMeter IndicateMo][!RainmeterHideMeter IndicateTu][!RainmeterShowMeter IndicateWe][!RainmeterHideMeter IndicateTh][!RainmeterHideMeter IndicateFr][!RainmeterHideMeter IndicateSa]

[MeasureIndicateFr]
Measure=Calc
Formula=(MeasureWeek=4)
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterHideMeter IndicateSu][!RainmeterHideMeter IndicateMo][!RainmeterHideMeter IndicateTu][!RainmeterHideMeter IndicateWe][!RainmeterShowMeter IndicateTh][!RainmeterHideMeter IndicateFr][!RainmeterHideMeter IndicateSa]

[MeasureIndicateSa]
Measure=Calc
Formula=(MeasureWeek=5)
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterHideMeter IndicateSu][!RainmeterHideMeter IndicateMo][!RainmeterHideMeter IndicateTu][!RainmeterHideMeter IndicateWe][!RainmeterHideMeter IndicateTh][!RainmeterShowMeter IndicateFr][!RainmeterHideMeter IndicateSa]

[MeasureIndicateSu]
Measure=Calc
Formula=(MeasureWeek=6)
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterHideMeter IndicateSu][!RainmeterHideMeter IndicateMo][!RainmeterHideMeter IndicateTu][!RainmeterHideMeter IndicateWe][!RainmeterHideMeter IndicateTh][!RainmeterHideMeter IndicateFr][!RainmeterShowMeter IndicateSa]

[MeasureCalcMax]
Measure=Calc
Formula=(MeasureMonth=1)*31+(MeasureMonth=2)*(28+((MeasureYear%4)=0))+(MeasureMonth=3)*31+(MeasureMonth=4)*30+(MeasureMonth=5)*31+(MeasureMonth=6)*30+(MeasureMonth=7)*31+(MeasureMonth=8)*31+(MeasureMonth=9)*30+(MeasureMonth=10)*31+(MeasureMonth=11)*30+(MeasureMonth=12)*31

[MeasureCalcMin]
Measure=Calc
Formula=(MeasureMonth=1)*31+(MeasureMonth=2)*31+(MeasureMonth=3)*(28+((MeasureYear%4)=0))+(MeasureMonth=4)*31+(MeasureMonth=5)*30+(MeasureMonth=6)*31+(MeasureMonth=7)*30+(MeasureMonth=8)*31+(MeasureMonth=9)*31+(MeasureMonth=10)*30+(MeasureMonth=11)*31+(MeasureMonth=12)*30

[MeasureMo]
Measure=Calc
Formula=MeasureDate+(1-MeasureWeek)-((MeasureDate+(1-MeasureWeek))>MeasureCalcMax)*MeasureCalcMax+((MeasureDate+(1-MeasureWeek))<1)*MeasureCalcMin

[MeasureTu]
Measure=Calc
Formula=MeasureDate+(2-MeasureWeek)-((MeasureDate+(2-MeasureWeek))>MeasureCalcMax)*MeasureCalcMax+((MeasureDate+(2-MeasureWeek))<1)*MeasureCalcMin

[MeasureWe]
Measure=Calc
Formula=MeasureDate+(3-MeasureWeek)-((MeasureDate+(3-MeasureWeek))>MeasureCalcMax)*MeasureCalcMax+((MeasureDate+(3-MeasureWeek))<1)*MeasureCalcMin

[MeasureTh]
Measure=Calc
Formula=MeasureDate+(4-MeasureWeek)-((MeasureDate+(4-MeasureWeek))>MeasureCalcMax)*MeasureCalcMax+((MeasureDate+(4-MeasureWeek))<1)*MeasureCalcMin

[MeasureFr]
Measure=Calc
Formula=MeasureDate+(5-MeasureWeek)-((MeasureDate+(5-MeasureWeek))>MeasureCalcMax)*MeasureCalcMax+((MeasureDate+(5-MeasureWeek))<1)*MeasureCalcMin

[MeasureSa]
Measure=Calc
Formula=MeasureDate+(6-MeasureWeek)-((MeasureDate+(6-MeasureWeek))>MeasureCalcMax)*MeasureCalcMax+((MeasureDate+(6-MeasureWeek))<1)*MeasureCalcMin


[MeasureSu]
Measure=Calc
Formula=MeasureDate+(7-MeasureWeek)-((MeasureDate+(7-MeasureWeek))>MeasureCalcMax)*MeasureCalcMax+((MeasureDate+(7-MeasureWeek))<1)*MeasureCalcMin


;-----------------------------------



[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=900
Url=http://rainmeter.accu-weather.com/widget/rainmeter/weather-data.asp?Location=#WeatherCode#&metric=1
RegExp="(?siU)<temperature>(.*)</temperature>.*<weathertext>(.*)</weathertext>.*<weathericon>(.*)</weathericon>.*<daycode>(.*)</daycode>.*<txtshort>(.*)</txtshort>.*<weathericon>(.*)</weathericon>.*<hightemperature>(.*)</hightemperature>.*<nighttime>.*</nighttime>.*<txtshort>(.*)</txtshort>.*<weathericon>(.*)</weathericon>.*<hightemperature>(.*)</hightemperature>.*<nighttime>.*</nighttime>.*<txtshort>(.*)</txtshort>.*<weathericon>(.*)</weathericon>.*<hightemperature>(.*)</hightemperature>.*"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=1

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=4


[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasureWeatherIconMod]
Measure=CALC
Formula=(#Icon#*100)+MeasureWeatherIcon


; innentõl mid 1-el nagyobb

[MeasureWeatherDate1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5

[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=7

[MeasureWeatherIcon1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=6

[MeasureWeatherIcon1Mod]
Measure=CALC
Formula=(#Icon#*100)+MeasureWeatherIcon1

[MeasureWeatherDate1Alt]
Measure=TIME
Format="%#w"
Substitute="5":"Sunday","6":"Monday","0":"Tuesday","1":"Wednesday","2":"Thursday","3":"Friday","4":"Saturday"

;-----------

[MeasureWeatherDate2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=8

[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=10

[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9

[MeasureWeatherIcon2Mod]
Measure=CALC
Formula=(#Icon#*100)+MeasureWeatherIcon2

[MeasureWeatherDate2Alt]
Measure=TIME
Format="%#w"
Substitute="5":"Sunday","6":"Monday","0":"Tuesday","1":"Wednesday","2":"Thursday","3":"Friday","4":"Saturday"
;-----------

[MeasureWeatherDate3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=11

[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=13

[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=12

[MeasureWeatherIcon3Mod]
Measure=CALC
Formula=(#Icon#*100)+MeasureWeatherIcon3

[MeasureWeatherDate3Alt]
Measure=TIME
Format="%#w"
Substitute="5":"Sunday","6":"Monday","0":"Tuesday","1":"Wednesday","2":"Thursday","3":"Friday","4":"Saturday"


;--------------------------


[Backing]
Meter=IMAGE
imagename=bg.png
X=0
Y=0
W=310
H=241

[BackgroundMo]
Meter=IMAGE
X=#BgX1#
Y=#BgY1#
W=20
H=16
SolidColor=#ColorBG#

[BackgroundTu]
Meter=IMAGE
X=27r
Y=r
W=20
H=16
SolidColor=#ColorBG#

[BackgroundWe]
Meter=IMAGE
X=27r
Y=r
W=20
H=16
SolidColor=#ColorBG#

[BackgroundTh]
Meter=IMAGE
X=27r
Y=r
W=20
H=16
SolidColor=#ColorBG#

[BackgroundFr]
Meter=IMAGE
X=27r
Y=r
W=20
H=16
SolidColor=#ColorBG#

[BackgroundSa]
Meter=IMAGE
X=27r
Y=r
W=20
H=16
SolidColor=#ColorBG2#

[BackgroundSu]
Meter=IMAGE
X=27r
Y=r
W=20
H=16
SolidColor=#ColorBG2#

;-----------------------

[LabelMo]
Meter=STRING
Text="Mo"
X=#BgX2#
Y=#BgY2#
FontColor=#Color2#
FontFace=#Face#
FontSize=#Height2#
StringAlign=CENTER
StringEffect=SHADOW
stringStyle=NORMAL
AntiAlias=1

[LabelTu]
Meter=STRING
Text="Tu"
X=27r
Y=#BgY2#
FontColor=#Color2#
FontFace=#Face#
FontSize=#Height2#
StringAlign=CENTER
StringEffect=SHADOW
stringStyle=NORMAL
AntiAlias=1

[LabelWe]
Meter=STRING
Text="We"
X=27r
Y=#BgY2#
FontColor=#Color2#
FontFace=#Face#
FontSize=#Height2#
StringAlign=CENTER
StringEffect=SHADOW
stringStyle=NORMAL
AntiAlias=1

[LabelTh]
Meter=STRING
Text="Th"
X=27r
Y=#BgY2#
FontColor=#Color2#
FontFace=#Face#
FontSize=#Height2#
StringAlign=CENTER
StringEffect=SHADOW
stringStyle=NORMAL
AntiAlias=1

[LabelFr]
Meter=STRING
Text="Fr"
X=27r
Y=#BgY2#
FontColor=#Color2#
FontFace=#Face#
FontSize=#Height2#
StringAlign=CENTER
StringEffect=SHADOW
stringStyle=NORMAL
AntiAlias=1

[LabelSa]
Meter=STRING
Text="Sa"
X=27r
Y=#BgY2#
FontColor=#Color2#
FontFace=#Face#
FontSize=#Height2#
StringAlign=CENTER
StringEffect=SHADOW
stringStyle=NORMAL
AntiAlias=1

[LabelSu]
Meter=STRING
Text="Su"
X=27r
Y=#BgY2#
FontColor=#Color2#
FontFace=#Face#
FontSize=#Height2#
StringAlign=CENTER
StringEffect=SHADOW
stringStyle=NORMAL
AntiAlias=1

;-----------------------

[IndicateMo]
Meter=IMAGE
ImageName=Arrow.png
X=#BgX3#
Y=#BgY3#
Hidden=1

[IndicateTu]
Meter=IMAGE
ImageName=Arrow.png
X=27r
Y=r
Hidden=1

[IndicateWe]
Meter=IMAGE
ImageName=Arrow.png
X=27r
Y=r
Hidden=1

[IndicateTh]
Meter=IMAGE
ImageName=Arrow.png
X=27r
Y=r
Hidden=1

[IndicateFr]
Meter=IMAGE
ImageName=Arrow.png
X=27r
Y=r
Hidden=1

[IndicateSa]
Meter=IMAGE
ImageName=Arrow.png
X=27r
Y=r
Hidden=1

[IndicateSu]
Meter=IMAGE
ImageName=Arrow.png
X=27r
Y=r
Hidden=1

;-----------------------

[Monday]
Meter=STRING
MeasureName=MeasureMo
X=#BgX4#
Y=#BgY4#
FontColor=#Color#
FontFace=#Face#
FontSize=#Height#
StringAlign=CENTER
StringEffect=SHADOW
StringStyle=NORMAL
AntiAlias=1

[Tuesday]
Meter=STRING
MeasureName=MeasureTu
X=27r
Y=r
FontColor=#Color#
FontFace=#Face#
FontSize=#Height#
StringAlign=CENTER
StringEffect=SHADOW
StringStyle=NORMAL
AntiAlias=1

[Wednesday]
Meter=STRING
MeasureName=MeasureWe
X=27r
Y=r
FontColor=#Color#
FontFace=#Face#
FontSize=#Height#
StringAlign=CENTER
StringEffect=SHADOW
StringStyle=NORMAL
AntiAlias=1

[Thursday]
Meter=STRING
MeasureName=MeasureTh
X=27r
Y=r
FontColor=#Color#
FontFace=#Face#
FontSize=#Height#
StringAlign=CENTER
StringEffect=SHADOW
StringStyle=NORMAL
AntiAlias=1

[Friday]
Meter=STRING
MeasureName=MeasureFr
X=27r
Y=r
FontColor=#Color#
FontFace=#Face#
FontSize=#Height#
StringAlign=CENTER
StringEffect=SHADOW
StringStyle=NORMAL
AntiAlias=1

[Saturday]
Meter=STRING
MeasureName=MeasureSa
X=27r
Y=r
FontColor=#Color#
FontFace=#Face#
FontSize=#Height#
StringAlign=CENTER
StringEffect=SHADOW
StringStyle=NORMAL
AntiAlias=1

[Sunday]
Meter=STRING
MeasureName=MeasureSu
X=27r
Y=r
FontColor=#Color#
FontFace=#Face#
FontSize=#Height#
StringAlign=CENTER
StringEffect=SHADOW
StringStyle=NORMAL
AntiAlias=1



;--------------------------------------------------------------------------------------------



[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=#TempX#
Y=#TempY#
FontColor=#Color#
StringStyle=NORMAL
FontSize=#Height#
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=BOLD
FontFace=#Face#
Antialias=1
Postfix="°C"
LeftMouseDownAction=!Execute [!RainmeterShowMeter MeterTempActive][!RainmeterHideMeter MeterTemp][!RainmeterRedraw]

[MeterWeatherDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=#TempX#
Y=15r
FontColor=#Color#
FontSize=#Height2#
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=NORMAL
FontFace=#Face#
Antialias=1

[MeterIcon]
MeasureName=MeasureWeatherIconMod
Meter=IMAGE
X=#TempX#
Y=-20r
W=#IconW#
H=#IconH#
Hidden=1


[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=#TempX#
Y=45r
FontColor=#Color#
StringStyle=NORMAL
FontSize=#Height#
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=BOLD
FontFace=#Face#
Antialias=1
Postfix="°C"

[MeterDate1]
MeasureName=MeasureWeatherDate1Alt
Meter=STRING
X=#TempX#
Y=15r
FontColor=255,255,255,180
FontSize=8
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=NORMAL
FontFace=#Font#
Antialias=1

[MeterIcon1]
MeasureName=MeasureWeatherIcon1Mod
Meter=IMAGE
X=#TempX#
W=#IconW#
H=#IconH#
Y=-15r

;-----------------------------------------

[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=#TempX2#
Y=#TempY#
FontColor=#Color#
StringStyle=NORMAL
FontSize=#Height#
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=BOLD
FontFace=#Face#
Antialias=1
Postfix="°C"

[MeterDate2]
MeasureName=MeasureWeatherDate2Alt
Meter=STRING
X=#TempX2#
Y=15r
FontColor=255,255,255,180
FontSize=8
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=NORMAL
FontFace=#Font#
Antialias=1

[MeterIcon2]
MeasureName=MeasureWeatherIcon2Mod
Meter=IMAGE
X=#TempX#
W=#IconW#
H=#IconH#
Y=-20r


[MeterTemp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=#TempX2#
Y=45r
FontColor=#Color#
StringStyle=NORMAL
FontSize=#Height#
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=BOLD
FontFace=#Face#
Antialias=1
Postfix="°C"

[MeterDate3]
MeasureName=MeasureWeatherDate3Alt
Meter=STRING
X=#TempX2#
Y=15r
FontColor=255,255,255,180
FontSize=8
StringAlign=RIGHT
StringEffect=SHADOW
StringStyle=NORMAL
FontFace=#Font#
Antialias=1

[MeterIcon3]
MeasureName=MeasureWeatherIcon3Mod
Meter=IMAGE
X=#TempX2#
Y=-15r
W=#IconW#
H=#IconH#
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: [Bug] How do I get the Weather Skin Started?

Post by MerlinTheRed »

I think the problem is that the site the skin gets its weather from no longer exists:

http://rainmeter.accu-weather.com/widget/rainmeter/weather-data.asp?Location=USGA0029&metric=1

I believe AccuWeather has shut down this kind of service. You'll have to find another site to get your weather from and parse that.

Check this thread for some alternatives:

http://rainmeter.net/forum/viewtopic.php?f=18&t=1474

Basically, you could also just copy the code from a working weather skin and put it in a skin you like (Enigma and VClouds Weather are some examples. Do a search on deviantART for them). You will have to mess with the string indices though. And if the new site lacks some information the old one had, you'll have to compensate somehow.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
AtlBo
Posts: 13
Joined: September 19th, 2011, 8:03 pm

Re: [Bug] How do I get the Weather Skin Started?

Post by AtlBo »

Thanks for the advice Merlin. I went and found the VClouds skin. It works great. I attatched a picture of the skin I was using, desk five. I guess you are probably aware of it, idk, but it would be perfect. Maybe someone will pick it up as a project if it has been abandoned by its creator. It's the right size, even though it doesn't have much, but I don't want much from that app. Just a couple of days of weather. Thanks again...
You do not have the required permissions to view the files attached to this post.