It is currently October 12th, 2024, 3:22 am

Weather Skins Not Working

Get help with creating, editing & fixing problems with skins
SCR
Posts: 60
Joined: April 15th, 2015, 11:13 pm

Weather Skins Not Working

Post by SCR »

Looks like Weather.com has changed something again. None of the weather skins are working at the moment, 11:31 EDT. Maybe it will come back but the errors are very similar to ones that occurred the last time this happened :(
User avatar
jsmorley
Developer
Posts: 22850
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weather Skins Not Working

Post by jsmorley »

I'm looking at it. It looks like the format of the JSON code has changed a bit, with some leading and trailing \ characters added to the keys and values.

I don't know how much effort will be involved in fixing this, and I can't be certain yet that this is in fact a real, permanent change. I will be working on it and watching the site today.

EDIT:

Ok, I think I have fully addressed the new issues with the weather.com site.

Please get the .rmskin at: https://forum.rainmeter.net/viewtopic.php?f=118&t=34628#p171501

Alternatively, if you have a skin that YOU wrote that was based on the @Include .inc files that come with this skin, you can simply get this:

@IncludeFiles.zip

And copy all the .inc files from that .zip into the @Resources folder of your skin.

ONE IMPORTANT NOTE!

The new approach of using the API for the weather.com JSON requires a change to how you access a particular location.

All of the location "codes", like USVA0944 or bbd510e73cb5870f973cea9253bb1f9bfe239a129dfc2b89589cbb6d2d46b4bc or 22308 and such are NO LONGER SUPPORTED.

The new approach requires that you provide a Latitude and Longitude in the WeatherComJSONVariables.inc file. See that file for details on how you can get that for your location.

Please read WeatherCOMJSONVariables.inc carefully, it HAS changed.
You do not have the required permissions to view the files attached to this post.
SCR
Posts: 60
Joined: April 15th, 2015, 11:13 pm

Re: Weather Skins Not Working

Post by SCR »

jsmorley wrote: July 29th, 2020, 3:38 pm I'm looking at it. It looks like the format of the JSON code has changed a bit, with some leading and trailing \ characters added to the keys and values.

I don't know how much effort will be involved in fixing this, and I can't be certain yet that this is in fact a real, permanent change. I will be working on it and watching the site today.
I kind of thought you would be aware of the issue. I appreciate your time spent to research it.

Thanks.
gerryex
Posts: 37
Joined: January 14th, 2018, 8:12 pm

Re: Weather Skins Not Working

Post by gerryex »

jsmorley wrote: July 29th, 2020, 3:38 pm I'm looking at it. It looks like the format of the JSON code has changed a bit, with some leading and trailing \ characters added to the keys and values.

I don't know how much effort will be involved in fixing this, and I can't be certain yet that this is in fact a real, permanent change. I will be working on it and watching the site today.
Hi jsmorley,

I just noticed that the weather skin is not working again and it looks like you're already looking into it. THANKS!

Gerry
User avatar
SilverAzide
Rainmeter Sage
Posts: 2746
Joined: March 23rd, 2015, 5:26 pm

Re: Weather Skins Not Working

Post by SilverAzide »

jsmorley wrote: July 29th, 2020, 3:38 pm I'm looking at it. It looks like the format of the JSON code has changed a bit, with some leading and trailing \ characters added to the keys and values.

I don't know how much effort will be involved in fixing this, and I can't be certain yet that this is in fact a real, permanent change. I will be working on it and watching the site today.
Looks like every single quote in the JSON block has been escaped?
Gadgets Wiki GitHub More Gadgets...
User avatar
jsmorley
Developer
Posts: 22850
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weather Skins Not Working

Post by jsmorley »

SilverAzide wrote: July 29th, 2020, 3:56 pm Looks like every single quote in the JSON block has been escaped?
Seems so...
User avatar
jsmorley
Developer
Posts: 22850
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weather Skins Not Working

Post by jsmorley »

Just FYI, I am not going to have the entire forums flooded with duplicate posts about this issue. Any post in any existing thread, or any new thread about this issue other than THIS one, will just be deleted.
User avatar
kfonda
Posts: 21
Joined: May 8th, 2015, 8:15 pm
Location: Manasquan, NJ USA

Re: Weather Skins Not Working

Post by kfonda »

Thanks, this will make it much easier to follow the status of what is going on with the issue.

P.S. - I really appreciate what you guys are doing to keep this all up to date.
jsmorley wrote: July 29th, 2020, 4:06 pm Just FYI, I am not going to have the entire forums flooded with duplicate posts about this issue. Any post in any existing thread, or any new thread about this issue other than THIS one, will just be deleted.
User avatar
Yincognito
Rainmeter Sage
Posts: 8421
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Weather Skins Not Working

Post by Yincognito »

jsmorley wrote: July 29th, 2020, 4:06 pm Just FYI, I am not going to have the entire forums flooded with duplicate posts about this issue. Any post in any existing thread, or any new thread about this issue other than THIS one, will just be deleted.
Yeah, just wondering why I got mails about non existing posts, LOL. Good idea, to keep it centralized.
And yes, they are just escaping quotes. Switched on my API version in the meantime, and it all works well there, no escaped quotes, so I'm guessing the quote escaping is not yet consistent or stable, thus I'll be patient for the time being.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
jsmorley
Developer
Posts: 22850
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Weather Skins Not Working

Post by jsmorley »

I'm currently a bit stumped... I'm trying to figure out a simple way to fix this, and have this:

Code: Select all

[@EntireSiteSuperParent]
Measure=WebParser
URL=#URLSite#
UpdateRate=#UpdateRate#
Flags=Resync | NoCookies
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
DecodeCharacterReference=1
LogSubstringErrors=0
RegExp=(?siU)^(.*)$
StringIndex=1
FinishAction=[!EnableMeasureGroup Parents]
Substitute="\[\34]":"[\34]"
;Debug=2
;Debug2File=#@#EntireSite.txt

; ========================================
; Units of Measure information
; ========================================

[@UnitsParent]
Measure=WebParser
Group=Parents
URL=[@EntireSiteSuperParent]
Disabled=1
StringIndex=1
RegExp=(?siU)"getSunV3CurrentObservationsUrlConfig":.*units:\s*([meh])
That seems like it should work, but I'm obviously missing some subtlety of WebParser...