It is currently September 15th, 2019, 11:03 pm

Weather not working?

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

Re: Weather not working?

balala » May 30th, 2017, 3:11 pm

picasso21 wrote:Please skin Enigma weather update , error thank you :welcome:
Not very sure what is the problem. Have you updated the skin? Where from? Did it work before and now it doesn't?
Please give us some more information.
User avatar
picasso21
Posts: 13
Joined: July 28th, 2009, 11:58 pm

Re: Weather not working?

picasso21 » May 31st, 2017, 2:22 am

balala wrote:Not very sure what is the problem. Have you updated the skin? Where from? Did it work before and now it doesn't?
Please give us some more information.
Enigma weather

Code: Select all

https://enigma.kaelri.com/downloads/
User avatar
picasso21
Posts: 13
Joined: July 28th, 2009, 11:58 pm

Re: Weather not working?

picasso21 » May 31st, 2017, 7:48 am

I have another weather skin I could not work for pais brasil sp ,thanks :confused:

Code: Select all

http://toastbrotpascal.deviantart.com/art/SDT-161064442
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weather not working?

balala » May 31st, 2017, 11:49 am

picasso21 wrote:I have another weather skin I could not work for pais brasil sp ,thanks :confused:

Code: Select all

http://toastbrotpascal.deviantart.com/art/SDT-161064442
This skin is very old and it uses Yahoo Weather and as such, although mak_kawa said in an earlier post that it is still working, I couldn't figure out how can it be made to properly work. So, probably the code of the skin should be completely rewritten, to make it to work.

About the Enigma Weather, it also used Yahoo Weather. A while ago I (partially) rewrote it, to make it to use the Weather.com.
So, I think the only thing which should be done is to replace the code of the YahooWeather.inc file (within the @Resources\Measures folder), with the following one:

Code: Select all

[MeasureYahooWeather]
Measure=Plugin
Plugin=WebParser
UpdateRate=1800
Url=http://wxdata.weather.com/wxdata/weather/local/#LocationCode#?cc=*&unit=#Unit#&dayf=4
RegExp=(?siU)<weather ver="(.*)">.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<dnam>(.*)</dnam>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*</bar>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*</wind>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*</moon>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>
StringIndex=1

;-----------------------
; LOCATION
 
[MeasureWeatherLocation]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=7

[MeasureWeatherCity]
Measure=String
String=[MeasureWeatherLocation]
RegExpSubstitute=1
Substitute="^(.*), (.*), (.*)$":"\1"
DynamicVariables=1

[MeasureWeatherRegion]
Measure=String
String=[MeasureWeatherLocation]
RegExpSubstitute=1
Substitute="^(.*), (.*), (.*)$":"\2"
DynamicVariables=1

[MeasureWeatherCountry]
Measure=String
String=[MeasureWeatherLocation]
RegExpSubstitute=1
Substitute="^(.*), (.*), (.*)$":"\3"
DynamicVariables=1

;-----------------------
; UNITS

[MeasureWeatherUnitTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=2

[MeasureWeatherUnitDistance]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=3

[MeasureWeatherUnitPressure]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=5

[MeasureWeatherUnitSpeed]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=4

;-----------------------
; WIND

[MeasureWeatherWindChill]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=14

[MeasureWeatherWindDirection]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=21

[MeasureWeatherWindDirectionCardinal]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=22
;Measure=Calc
;Formula=FLOOR(((MeasureWeatherWindDirection/11.25)+1.5) < 33 ? ((MeasureWeatherWindDirection/11.25)+1.5) : ((MeasureWeatherWindDirection/11.25)+1.5)-32)
;Substitute="10":"EbS","11":"ESE","12":"SEbE","13":"SE","14":"SEbS","15":"SSE","16":"SbE","17":"S","18":"SbW","19":"SSW","20":"SWbS","21":"SW","22":"SWbW","23":"WSW","24":"WbSW","25":"W","26":"WbN","27":"WNW","28":"NWbW","29":"NW","30":"NWbN","31":"NNW","32":"NbW","1":"N","2":"NbE","3":"NNE","4":"NEbN","5":"NE","6":"NEbE","7":"ENE","8":"EbN","9":"E"

[MeasureWeatherWindSpeed]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=19

;-----------------------
; ATMOSPHERE

[MeasureWeatherAtmoHumidity]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=23

[MeasureWeatherAtmoVisibility]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=24

[MeasureWeatherAtmoPressure]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=17

;--------------------------------
; SUN

[MeasureWeatherSunrise]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=10

[MeasureWeatherSunset]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=11

;--------------------------------
; REGION

[MeasureWeatherTimeZone]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=12

[MeasureWeatherLatitude]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=8

[MeasureWeatherLongitude]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=9

;--------------------------------
; CURRENT

[MeasureWeatherDesc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=15

[MeasureWeatherIcon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=16

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=13

;-------------------------
; DAY 2

[MeasureWeatherDay2Date]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=33
;Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"

[MeasureWeatherDay2Low]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=36

[MeasureWeatherDay2High]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=35

[MeasureWeatherDay2Average]
Measure=Calc
Formula=ROUND((MeasureWeatherDay2Low+MeasureWeatherDay2High)/2)

[MeasureWeatherDay2Desc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=38

[MeasureWeatherDay2Icon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=37

;-------------------------
; DAY 3

[MeasureWeatherDay3Date]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=39
;Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"

[MeasureWeatherDay3Low]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=42

[MeasureWeatherDay3High]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=41

[MeasureWeatherDay3Average]
Measure=Calc
Formula=ROUND((MeasureWeatherDay3Low+MeasureWeatherDay3High)/2)

[MeasureWeatherDay3Desc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=44

[MeasureWeatherDay3Icon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=43

;-----------------------
; LOGO
; Yahoo! Weather requires that any application which uses their API include the Y!W logo and a link to their website. This section will automatically insert those elements into any skin which uses this measure module. Please do not remove these elements if you are redistributing this file with your own skin.

[YahooWeatherLogo]
Meter=IMAGE
MeterStyle=Style#Variant#Icon
Group=EnigmaMouseover
ImageName=#@#Images\MoxaWeather\Logo.png
H=25
W=25
Hidden=1
LeftMouseUpAction=["http://weather.yahoo.com/"][!Redraw]
ToolTipText=Powered by Yahoo! Weather.
Check the LocationCode and Unit variables. The first is your location code, which can be found here: https://weather.codes/
The Unit can be either m (metric - temperatures in Celsius degrees), or i (imperial - temperatures in Fahrenheit degrees). These variables are located into the @Resources\User\Options.inc file, you should replace them there.
sierratango
Posts: 2
Joined: December 27th, 2016, 1:21 am

Re: Weather not working?

sierratango » January 8th, 2019, 4:31 am

balala wrote:
May 31st, 2017, 11:49 am
This skin is very old and it uses Yahoo Weather and as such, although mak_kawa said in an earlier post that it is still working, I couldn't figure out how can it be made to properly work. So, probably the code of the skin should be completely rewritten, to make it to work.

About the Enigma Weather, it also used Yahoo Weather. A while ago I (partially) rewrote it, to make it to use the Weather.com.
So, I think the only thing which should be done is to replace the code of the YahooWeather.inc file (within the @Resources\Measures folder), with the following one:
Thank you very much for revising Enigma Weather to use Weather.com, it works perfectly! Yahoo recently ended their weather API so it is great to be able to switch to Weather.com.
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weather not working?

balala » January 8th, 2019, 8:42 am

sierratango wrote:
January 8th, 2019, 4:31 am
Yahoo recently ended their weather API so it is great to be able to switch to Weather.com.
Yes, Yahoo Weather in the meantime indeed hanged up. Some other users (I'm thinking about eclectic-tech right now) also rewrote Enigma Weather: https://forum.rainmeter.net/viewtopic.php?f=5&t=30807#p157183. Review his reply too, especially that it's newer then my one and a half year old post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3536
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather not working?

eclectic-tech » January 8th, 2019, 8:14 pm

balala wrote:
January 8th, 2019, 8:42 am
Yes, Yahoo Weather in the meantime indeed hanged up. Some other users (I'm thinking about eclectic-tech right now) also rewrote Enigma Weather: https://forum.rainmeter.net/viewtopic.php?f=5&t=30807#p157183. Review his reply too, especially that it's newer then my one and a half year old post.
@ balala
I didn't realize you had posted this a year ago, when I posted my recent corrections. If I had known I would have definitely pointed to this post for the correction. :confused:

I did add a few other "tweaks" to Enigma's related skins, but this post will help get the weather working. Either method is going to get the skin working. Nicely done! :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weather not working?

balala » January 8th, 2019, 8:21 pm

eclectic-tech wrote:
January 8th, 2019, 8:14 pm
@ balala
I didn't realize you had posted this a year ago, when I posted my recent corrections. If I had known I would have definitely pointed to this post for the correction. :confused:

I did add a few other "tweaks" to Enigma's related skins, but this post will help get the weather working. Either method is going to get the skin working. Nicely done! :thumbup:
Don't worry, it's a good thing you've posted your own solution, this way sierratango can choose the solution he likes more.
Reveiller
Posts: 3
Joined: January 22nd, 2019, 8:19 am

Re: Weather not working?

Reveiller » January 22nd, 2019, 8:26 am

I've been using this skin for several years: https://www.deviantart.com/lilshizzy/art/Rainmeter-Encoded-v1-2-3-215992941
Several times the weather widget has stopped working and one way or another I've managed to find some solution somewhere.
But this time around it seems to have stopped working again as of a few weeks ago and I can't seem to find anything to fix it.

I'm not very experienced with how the coding in Rainmeter works, I've usually just found solutions that tell me what to copy-paste into the code and that's generally gotten me by so far.

I was skimming through this entire thread as it's the first I had seen/heard of the issues of the Yahoo Weather API in detail but seeing as it spans over 3 years, I'm having difficulty keeping up with what is no longer valid anymore, etc.

Below is the frankensteinian mess of code I've put together trying out a couple solutions I saw in this thread. At the moment while I've gotten the widget to at least do something instead of nothing, all it does is display the temperature, and in a different font, which isn't a problem for me really, but I just noticed it

Code: Select all

[Rainmeter]
Author=lilshizzy@gmail.com
Update=1000
MouseOverAction=!Execute [!RainmeterShowMeter TempActive][!RainmeterHideMeter Temp][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter TempActive][!RainmeterShowMeter Temp][!RainmeterRedraw]
MiddleMouseDownAction=!RainmeterActivateConfig #CURRENTCONFIG# Weather_grey_div-top.ini
@include=#SKINSPATH#Encoded\Variables\Fonts.inc

[Metadata]
Name=Encoded - Weather Black (Divider-top)
Config=
Description=
Instructions=The default weather code is set to Los Angeles, 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.
Version=1000
Tags=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=

[Variables]
@include=#SKINSPATH#Encoded\Variables\Default.inc

[Styles]
@include=#SKINSPATH#Encoded\Variables\Styles.inc

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


[WeatherDataXML]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1600
Url=http://wxdata.weather.com/wxdata/weather/local/JAXX0055?cc=*&unit=m&dayf=0
RegExp=(?siU)<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>

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

[mIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[WeatherDataXML]
StringIndex=6

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://xml.weather.yahoo.com/forecastrss?w=1117811&u=C
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=[WeatherDataXML]
StringIndex=5

[mIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[WeatherDataXML]
StringIndex=6

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[WeatherDataXML]
StringIndex=3




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

[Background]
Meter=IMAGE
;SolidColor=0,0,0,50
W=300
H=50
X=0
Y=0

[Temp]
MeasureName=MeasureWeatherTemp
Meter=STRING
MeterStyle=blkboldr
FontSize=23
X=330
Y=15
Postfix="°"

[Desc]
MeasureName=MeasureWeatherDesc
Meter=STRING
MeterStyle=blklightr
;SolidColor=0,0,0,150
FontSize=23
X=-55r
Y=r
W=250
H=50
ClipString=1

[TempActive]
Meter=STRING
MeasureName=MeasureWeatherTemp
MeterStyle=blkboldr
FontSize=23
X=330
Y=r
FontColor=#Color4#
LeftMouseDownAction=!Execute [[MeasureWeatherRSS]]
Postfix="°"
Hidden=1

[Spacer]
Meter=IMAGE
MeterStyle=styleSeperator
SolidColor=#color5#
X=35
Y=5
W=300
H=2

�
And this is what the code was originally like way back when

Code: Select all

[Rainmeter]
Author=lilshizzy@gmail.com
Update=1000
MouseOverAction=!Execute [!RainmeterShowMeter TempActive][!RainmeterHideMeter Temp][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter TempActive][!RainmeterShowMeter Temp][!RainmeterRedraw]
MiddleMouseDownAction=!RainmeterActivateConfig #CURRENTCONFIG# Weather_red_div-top.ini
@include=#SKINSPATH#Encoded\Variables\Fonts.inc

[Metadata]
Name=Encoded - Weather Red (Divider-top)
Config=
Description=
Instructions=The default weather code is set to Los Angeles, 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.
Version=1000
Tags=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=

[Variables]
@include=#SKINSPATH#Encoded\Variables\Default.inc

[Styles]
@include=#SKINSPATH#Encoded\Variables\Styles.inc

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

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://weather.yahooapis.com/forecastrss?p=USCA1192&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
; The default weather is set to Los Angeles (code=USCA1192), to get your Weather Code visit (weather.yahoo.com)
; type in your Zip Code, click the RSS button, your code will be in the address bar.
; At the end of the weather URL above you'll see "f" for Fahrenheit, change it to "c" for Celsius.

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

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


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

[Background]
Meter=IMAGE
;SolidColor=0,0,0,50
W=300
H=50
X=0
Y=0

[Temp]
MeasureName=MeasureWeatherTemp
Meter=STRING
MeterStyle=boldr
FontSize=23
X=290
Y=15
Postfix="�"

[Desc]
MeasureName=MeasureWeatherDesc
Meter=STRING
MeterStyle=lightr
;SolidColor=0,0,0,150
FontSize=23
X=-55r
Y=r
W=230
H=30
ClipString=1

[TempActive]
Meter=STRING
MeasureName=MeasureWeatherTemp
MeterStyle=boldr
FontSize=23
X=290
Y=r
FontColor=#Color4#
LeftMouseDownAction=!Execute [[MeasureWeatherRSS]]
Postfix="�"
Hidden=1

[Spacer]
Meter=IMAGE
MeterStyle=styleSeperator
SolidColor=#color3#
X=35
Y=5
W=255
H=1
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3536
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather not working?

eclectic-tech » January 22nd, 2019, 1:37 pm

Reveiller wrote:
January 22nd, 2019, 8:26 am
I've been using this skin for several years: https://www.deviantart.com/lilshizzy/art/Rainmeter-Encoded-v1-2-3-215992941
Several times the weather widget has stopped working and one way or another I've managed to find some solution somewhere.
But this time around it seems to have stopped working again as of a few weeks ago and I can't seem to find anything to fix it.

I'm not very experienced with how the coding in Rainmeter works, I've usually just found solutions that tell me what to copy-paste into the code and that's generally gotten me by so far.

I was skimming through this entire thread as it's the first I had seen/heard of the issues of the Yahoo Weather API in detail but seeing as it spans over 3 years, I'm having difficulty keeping up with what is no longer valid anymore, etc.

Below is the frankensteinian mess of code I've put together trying out a couple solutions I saw in this thread. At the moment while I've gotten the widget to at least do something instead of nothing, all it does is display the temperature, and in a different font, which isn't a problem for me really, but I just noticed it
You had some old code that should be removed and I updated [MeasureWeatherRSS] and StringIndexes for meters.

Here is the entire code for 'Encoded\Headers\Weather_black-div-top.ini'

Code: Select all

[Rainmeter]
Author=lilshizzy@gmail.com
Update=1000
MouseOverAction=[!ShowMeter TempActive][!HideMeter Temp][!Redraw]
MouseLeaveAction=[!HideMeter TempActive][!ShowMeter Temp][!Redraw]
MiddleMouseDownAction=!ActivateConfig #CURRENTCONFIG# Weather_grey_div-top.ini
@include=#SKINSPATH#Encoded\Variables\Fonts.inc

[Metadata]
Name=Encoded - Weather Black (Divider-top)
Config=
Description=
Instructions=To get your Weather Code visit (weathercodes.com) type in your Zip, or City. Click on "Edit Skin" below to enter your code.
Version=1000
Tags=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=

[Variables]
@include2=#SKINSPATH#Encoded\Variables\Default.inc

[Styles]
@include3=#SKINSPATH#Encoded\Variables\Styles.inc

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


[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1600
Url=http://wxdata.weather.com/wxdata/weather/local/JAXX0055?cc=*&unit=m&dayf=1
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>.*

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

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

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




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

[Background]
Meter=IMAGE
;SolidColor=0,0,0,50
W=300
H=50
X=0
Y=0

[Temp]
MeasureName=MeasureWeatherTemp
Meter=STRING
MeterStyle=blkboldr
FontSize=23
X=330
Y=15
Postfix="°"

[Desc]
MeasureName=MeasureWeatherDesc
Meter=STRING
MeterStyle=blklightr
;SolidColor=0,0,0,150
FontSize=23
X=-55r
Y=r
W=250
H=50
ClipString=1

[TempActive]
Meter=STRING
MeasureName=MeasureWeatherTemp
MeterStyle=blkboldr
FontSize=23
X=330
Y=r
FontColor=#Color4#
LeftMouseDownAction=["https://weather.com/"]
Postfix="°"
Hidden=1

[Spacer]
Meter=IMAGE
MeterStyle=styleSeperator
SolidColor=#color5#
X=35
Y=5
W=300
H=2
I remove deprecated code (!Execute and !Rainmeter...) I also changed the temp link to take you to "https://weather.com".
Your sizes are different from the original version I have, but that should not prevent you from modifying the other 19 weather skins using the updated [MeasureWeatherRSS] and the updated StringIndex numbers.

Aside: These skins use 'LocalFonts' which is deprecated, see this link for more info: https://docs.rainmeter.net/manual/skins/rainmeter-section/#LocalFont