It is currently April 13th, 2021, 10:33 pm

⭐ Weather.com

Weather skins
User avatar
Yincognito
Posts: 3054
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ Weather.com

Post by Yincognito »

fonpaolo wrote: May 28th, 2020, 2:43 pm Well, I'm asking, just because I don't use your method, and I'm doubtful if maybe I'm just lucky...

Anyway, can you please try this as RegExp code, instead of the usual "(?siU)^(.*)$", and see if it works for you?

Code: Select all

(?siU)^.*,"CmsStates":{"env:prod:locale:global":{.*,"data":{.*},"ttl":.*,"date":.*}},(.*)}},"ContentMediaQuery":{.*$
I have saves of each of the page source formats (and more, LOL), and the CmsStates string is not found in the "new" format.
EDIT: It is called getCMSLinkListUrlConfig in the "new" (but still shaky) format.
User avatar
fonpaolo
Moderator
Posts: 1388
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: ⭐ Weather.com

Post by fonpaolo »

Yincognito wrote: May 28th, 2020, 2:49 pm I have saves of each of the page source formats (and more, LOL), and the CmsStates string is not found in the "new" format.
EDIT: It is called getCMSLinkListUrlConfig in the "new" (but still shaky) format.
I don't know what to say... probably my skin is working just for some kind of magic... :confused:

I'm using https://weather.com/#LangLoc#/weather/today/l/#LocationCode#, with my old eight digits location code.
The only difference is that I don't want to download all the clutter from the site.
dvo
Posts: 1031
Joined: February 7th, 2016, 6:08 am

Re: ⭐ Weather.com

Post by dvo »

fonpaolo's magic fingers .... :thumbup:
User avatar
Yincognito
Posts: 3054
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ Weather.com

Post by Yincognito »

fonpaolo wrote: May 28th, 2020, 2:53 pm I don't know what to say... probably my skin is working just for some kind of magic... :confused:
Yeah, like jsmorley already said, the issue doesn't happen for everybody (yet). It's quite erratic at the moment, which is why we still don't know if we should begin parsing the new way or not, something jsmorley also alluded to. Personally, I was late the first time (the wxdata deprecation, at the start of the year), I'm starting early this time. My reasoning is that it can't hurt, since I do things to work for whatever format is thrown at WebParser.
User avatar
fonpaolo
Moderator
Posts: 1388
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: ⭐ Weather.com

Post by fonpaolo »

I tried now with both en-GB and en-US and it downloads just fine.
Can you point me to any location where there are problems to download?

I don't even think about uploading a skin for a fix that only works for a couple of days!
Wim
Posts: 69
Joined: September 22nd, 2010, 8:30 pm

Re: ⭐ Weather.com

Post by Wim »

If it's any help

I had a look under my own url

https://weather.com/nl-NL/weer/vandaag/l/faf2085544837e50ac18277c439ed18adcb75a1741d90280781897ef78a22878

I'm getting this.
CmsStates.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
Yincognito
Posts: 3054
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ Weather.com

Post by Yincognito »

fonpaolo wrote: May 28th, 2020, 3:05 pm I tried now with both en-GB and en-US and it downloads just fine.
Can you point me to any location where there are problems to download?

I don't even think about uploading a skin for a fix that only works for a couple of days!
It's not about locations, it's about the user's computer - more specifically, the cookies created by Internet Explorer, which seem to affect how the page is received from the site. Check the posts in recent days about this, you'll find info about it.
User avatar
Yincognito
Posts: 3054
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ Weather.com

Post by Yincognito »

Wim wrote: May 28th, 2020, 3:09 pm If it's any help

I had a look under my own url

https://weather.com/nl-NL/weer/vandaag/l/faf2085544837e50ac18277c439ed18adcb75a1741d90280781897ef78a22878

I'm getting this.

CmsStates.PNG
And jsmorley's skin from the first page of this thread works for you, doesn't it?
Wim
Posts: 69
Joined: September 22nd, 2010, 8:30 pm

Re: ⭐ Weather.com

Post by Wim »

Yes. It's the one i'm using.

I don't pretend to fully understand the issue. What's the thing with that 'CmsStates'. I was curious so i went to look, hence the post i made.

Sincere question: care to explain ?
dvo
Posts: 1031
Joined: February 7th, 2016, 6:08 am

Re: ⭐ Weather.com

Post by dvo »

it's just a change in the site the old replaced by new name... that's all

i'm still testing the :
[@ForecastAll]

Measure=WebParser
URL=#URLForecast#
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0
ForceReload=1
DecodeCharacterReference=1
UpdateRate=#UpdateRate#
LogSubstringErrors=0
RegExp=(?siU)^(.*)$
StringIndex=1
FinishAction=[!EnableMeasureGroup Parents]
;Debug=2
;Debug2File=#@#EntireSite.txt
and runs oke for now no new hickups till now maybe this evening again like last days ...
Last edited by dvo on May 28th, 2020, 4:15 pm, edited 1 time in total.