It is currently April 18th, 2024, 8:40 pm

Weather Skins Not Working

Get help with creating, editing & fixing problems with skins
User avatar
y0himba
Posts: 66
Joined: September 25th, 2016, 3:35 pm
Location: At a desk

Re: Weather Skins Not Working

Post by y0himba »

:jawdrop Oh nice!

I guess you can teach an old dog new tricks...

Thanks for this!
---
Once up a time there was a now playing signature here. Now it is no more. Maybe someone can make a now playing sig gen for Last.fm? :thumbup:
patoriku66
Posts: 4
Joined: January 15th, 2022, 4:04 am

Re: Weather Skins Not Working

Post by patoriku66 »

Not wanting to sound lazy but there's 43 pages off stuff about fixing this issue. I run modern gadgets as it does everything I want. I'll have to have a think about where I got modern gadgets from to contact the developer.

If someone can point me to a one click solution though, I'd be most appreciative of that.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather Skins Not Working

Post by eclectic-tech »

patoriku66 wrote: January 15th, 2022, 4:08 am Not wanting to sound lazy but there's 43 pages off stuff about fixing this issue. I run modern gadgets as it does everything I want. I'll have to have a think about where I got modern gadgets from to contact the developer.

If someone can point me to a one click solution though, I'd be most appreciative of that.

The files you need to edit are located in Skins\ModernGadgets\WeatherMeter\Includes.
The file names are:
AstroMeasures.inc
WeatherComJSONMeasures.inc

Open the files in a text editor, replace the APIKey value in those files to
apiKey=21d8a80b3d6b444998a80b3d6b1449d3

Save the files and refresh the weather skin.
User avatar
Yincognito
Rainmeter Sage
Posts: 7125
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Weather Skins Not Working

Post by Yincognito »

patoriku66 wrote: January 15th, 2022, 4:08 amNot wanting to sound lazy but there's 43 pages off stuff about fixing this issue.
Just so you know, the 43 pages are an aggregate of various issues with getting weather stuff in skins over time, with this particular issue only the latest of those. The answer to your question is literally mentioned on the 42nd page. 8-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
d3ath_s1gn
Posts: 2
Joined: January 15th, 2022, 1:56 pm
Location: Sri Lanka

Re: Weather Skins Not Working

Post by d3ath_s1gn »

jsmorley wrote: January 10th, 2022, 8:48 pm I think you will find that if you change the API Key to 21d8a80b3d6b444998a80b3d6b1449d3, it will begin to work again.
Thank You, You save the day :bow:
patoriku66
Posts: 4
Joined: January 15th, 2022, 4:04 am

Re: Weather Skins Not Working

Post by patoriku66 »

Hooray!!!! It's seems to have been fixed. Mine works now :wave :beer:
pbutler6
Posts: 100
Joined: April 27th, 2020, 8:10 pm

Re: Weather Skins Not Working

Post by pbutler6 »

Here is a small WebParser Measure that sets the APIKey variable dynamically.

Code: Select all

[@APIKey]
Measure=WebParser
Url=https://weather.com/
RegExp=(?siU)V3_API_KEY.*:"(.*)"
StringIndex=1
FinishAction=[!SetVariable "APIKey" [@APIKey]][!EnableMeasureGroup Parents][!UpdateMeasure "@EntireSiteSuperParent"]
Perhaps this might prevent problems if the APiKey is changed in the future.
User avatar
Yincognito
Rainmeter Sage
Posts: 7125
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Weather Skins Not Working

Post by Yincognito »

pbutler6 wrote: February 4th, 2022, 10:41 pm Here is a small WebParser Measure that sets the APIKey variable dynamically.

Code: Select all

[@APIKey]
Measure=WebParser
Url=https://weather.com/
RegExp=(?siU)V3_API_KEY.*:"(.*)"
StringIndex=1
FinishAction=[!SetVariable "APIKey" [@APIKey]][!EnableMeasureGroup Parents][!UpdateMeasure "@EntireSiteSuperParent"]
Perhaps this might prevent problems if the APiKey is changed in the future.
I take it that you adapted this a bit to specifically suit jsmorley's .inc files, didn't you? if so, good idea, it didn't cross my mind, unfortunately. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
Skafiend

Re: Weather Skins Not Working

Post by Skafiend »

Hello, guys. Does anyone have the same problem? https://prnt.sc/26smu78
User avatar
Yincognito
Rainmeter Sage
Posts: 7125
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Weather Skins Not Working

Post by Yincognito »

Skafiend wrote: February 10th, 2022, 8:31 am Hello, guys. Does anyone have the same problem? https://prnt.sc/26smu78
I do have the same problem, when trying to get the weather info from the JSON embedded in the weather.com's page source instead of the separate JSON file. It appears one has to try various flags and such to get a proper response (one that can be parsed) on the weather.com webpage source... :???:

EDIT: The weather.com's webpage source appears fine in the browser (Chrome here) though, and the embedded JSON is still there, so it's not a matter of weather.com changing the page source format, but rather of page source accessibility.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth