It is currently March 29th, 2024, 12:25 pm

Weather Skin Stopped Working

Get help with creating, editing & fixing problems with skins
TheDeceiver
Posts: 4
Joined: January 7th, 2019, 7:40 pm

Weather Skin Stopped Working

Post by TheDeceiver »

Hello everyone,

Im running the same skins for a year or so and my weather skin stopped working.
I had problems in the past but now it looks like this everyday, all day. http://prntscr.com/pfgw1o

Debug looks like this http://prntscr.com/pfgxvs

P.S I just noticed that this is a known problem. I ve forgotten all the coding i ve learnt and i cant fix it on my own i post the code below.
Thanks in advance.

The skin folder contains 3 Folders Fonts, Variables and Weather.

-Variables- (3 files)

Default.inc

Code: Select all

[Variables]
Color=255,255,255,155
Color2=255,255,255,55
Color3=0,0,0,35
Font=ITC Avant Garde Pro XLt
Font2=Century Gothic
Style=NORMAL
Rus=1
Eng=0

;Weather (Loc.code - код города на weather.com для погоды)
WeatherCode=UPXX0010
Type=m
Image1=WeatherIcons\[MeasureImageThe].png

;Balance Internet "Fregat"
Login = t2_k1ler
Pass = NhT4Mzn

;Hdd
disk1=C
disk2=S
-Fonts.inc i guess thats not needed

-settings.inc

Code: Select all

[Refresh]
Command=/!RainmeterRefresh
[Color]
Hex=0xF4F4F4
[Font]
FontFace=Century Gothic
[AppTitle]
Title=Config
And inside weather folder there are 50 pictures of weather and Weather.ini. Find code below.
TheDeceiver
Posts: 4
Joined: January 7th, 2019, 7:40 pm

Re: Weather Skin Stopped Working

Post by TheDeceiver »

Code: Select all

;----------------------------------------------------------
; Genteel - Yahoo Weather Skin

[Rainmeter]
Author=QuantumFoam
AppVersion=1
Update=1
@include=#SKINSPATH#Genteel\Variables\Fonts.inc

[Metadata]
Name=SM 2
Config=
Description=Yahoo Weather Skin
Instructions=Edit the /Weather/Weather.ini file, and replace the weather codes lines 23 and 24. Line 23 is the Yahoo weather code and 24 is the Weather.com code. Both codes can be obtained from their respective sites by searching your city and looking at the URL in the address bar Default is set to New York
Version=1
Tags=Clean, minimal, YahooWeather-like skin.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Credits=This skin has been adapted from the RGC Minimal and VeryFlatWeather Skins.

[Variables]
@include=#SKINSPATH#Genteel\Variables\Default.inc
YahooWeatherCode=955531
WeatherCode=GRXX0385:1:GR
MyFont=255,233,123,210


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

[mWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1600
Url=http://xml.weather.com/weather/local/#WeatherCode#?cc=*&unit=#Type#&dayf=6
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>.*"
StringIndex=1
;Debug=1


[mIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeatherRSS]
StringIndex=20

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://weather.yahooapis.com/forecastrss?w=#YahooWeatherCode#&u=f
RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*sunrise=\"(.*)\".*sunset=\"(.*)\".*<image>.*<url>(.*)</url>.*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*yweather:condition.*text=\"(.*)\".*code=\"(.*)\".*temp=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*
StringIndex=1

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeatherRSS]
StringIndex=19

[mIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeatherRSS]
StringIndex=20

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeatherRSS]
StringIndex=17


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

[Background]
Meter=IMAGE
;SolidColor=0,0,0,100
W=600
H=250
X=0
Y=0
LeftMouseUpAction=[C:\Users\Tasos\Desktop\PingTest]

[Temp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=45
Y=10
FontColor=#MyFont#
;FontColor=#ffffff original
FontSize=60
StringAlign=Left
FontFace=#Font#
AntiAlias=1


[Temp2]
Meter=STRING
X=-22R
Y=0r
FontSize=33
FontColor=#MyFont#
;FontColor=#33b5e5
StringAlign=Left
FontFace=#Font#
AntiAlias=1
Postfix="°"


[MeterIcon]
MeasureName=mIcon
Meter=IMAGE
ImageTint=#MyFont#
X=0r
Y=-5r
w=90
h=66
Antialias=1
;PreserveAspectRatio=0


[Desc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=33r
Y=60r
FontColor=#MyFont#
FontSize=17
StringAlign=Left
StringStyle=Bold
FontFace=#Font#
AntiAlias=1

;X=118
;Y=66


[TempActive]
Meter=STRING
MeterStyle=Temp
MeasureName=MeasureWeatherTemp
FontColor=#e5e5e5
LeftMouseDownAction=
Hidden=1
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weather Skin Stopped Working

Post by balala »

The URL option of the [mWeatherRSS] measure is wrong. Replace it with Url=http://wxdata.weather.com/wxdata/weather/local/#WeatherCode#?cc=*&unit=#Type#&dayf=6.
The URL option of the [MeasureWeatherRSS] measure on the other hand, is completely wrong, because it is set to weather.yahooapis.com, which doesn't work anymore. You should rewrite the measure to use wxdata as well.
And note one more error: the [mIcon] measure is added twice. No need of this, remove one of them.
Also note that although once WebParser was a plugin, in meantime it became a measure. For backward compatibility reasons, the old construction, with these measures written as plugin measures still work, however it is preferably to rewrite them as WebParser measures. This means that you should replace the Measure=Plugin and Plugin=Plugins\WebParser.dll options on all measures with Measure=WebParser. Simply so.