I really don't know. I think you will have to just test it.Yincognito wrote: ↑May 28th, 2020, 12:43 pm Quick question, jsmorley: does Rainmeter's PCRE Regex support branch reset groups (i.e. in (?|(a)|(b)) both groups - a and b - would be counted as group \1), from what you're aware of? Cause if it does, that would be of tremendous help in designing an adaptive regex.
It is currently December 7th, 2023, 9:50 am
⭐ Weather.com
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com
-
- Rainmeter Sage
- Posts: 6406
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: ⭐ Weather.com
Yep, it appears it does - just tested.

For example, something like below should capture all the forecast data (which can be then split up in smaller pieces using StringIndex and StringIndex2 in WebParser), irrespective of what version (V2 or V3) is the structure of the page source:
Code: Select all
DailyForecast="(?siU).*(?|"DailyForecast":.*".*geocode:.*".*"data":.*{((?:[^}]*{){2}.*(?:}[^{]*){2})}.*|"getSunV3DailyForecastUrlConfig":.*".*15day;geocode:.*".*"data":.*{((?:[^}]*{){1}.*(?:}[^{]*){1})}.*|"v3-wx-forecast-daily-15day":.*{((?:[^}]*{){0}.*(?:}[^{]*){0})}.*)"
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: ⭐ Weather.com
Hi all.
I came here to ask for something different, then I saw this, so I'm asking what's happening...
When did this problem start?
Are you all using the same code?
I guess you're all using it from different countries, am I right?
How often do you "hit" the site, more or less than 30 minutes?
Now that I've finally fixed my skin, I wouldn't want to start over, even if nothing has happened to me yet.
I came here to ask for something different, then I saw this, so I'm asking what's happening...

When did this problem start?
Are you all using the same code?
I guess you're all using it from different countries, am I right?
How often do you "hit" the site, more or less than 30 minutes?
Now that I've finally fixed my skin, I wouldn't want to start over, even if nothing has happened to me yet.

-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com
The problem started about a week ago more or less. I would expect, or at least hope, that everyone replying in this particular thread is using the same @Include files distributed in the .rmskin in the first post. However, it seems like anyone who is parsing the weather.com JSON code in any way is having the same intermittent problems. It doesn't seem to at all be related to where in the world you are, or where in the world your location code points to. I hit the site every 10 minutes, but I don't see that as a factor.fonpaolo wrote: ↑May 28th, 2020, 2:11 pm Hi all.
I came here to ask for something different, then I saw this, so I'm asking what's happening...![]()
When did this problem start?
Are you all using the same code?
I guess you're all using it from different countries, am I right?
How often do you "hit" the site, more or less than 30 minutes?
Now that I've finally fixed my skin, I wouldn't want to start over, even if nothing has happened to me yet.![]()
I'm not thrilled about the thought of re-parsing all this again, it's a fair amount of work. However, if the site ever settles down to one approach, where I can be relatively certain what format any given user is going to get, I'll certainly do it.
In the meantime, I think all we can do is wait to see where this is heading.
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: ⭐ Weather.com
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?
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":{.*$
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com
This is just not the right thread for this.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":{.*$
To be honest, I'm just not willing to put any time into this at all, until things settle down and we see where weather.com is going to end up on this.
-
- Rainmeter Sage
- Posts: 6406
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: ⭐ Weather.com
I have saves of each of the page source formats (and more, LOL), and the CmsStates string is not found in the "new" format.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":{.*$
EDIT: It is called getCMSLinkListUrlConfig in the "new" (but still shaky) format.
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: ⭐ Weather.com
I don't know what to say... probably my skin is working just for some kind of magic...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'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.
-
- Rainmeter Sage
- Posts: 6406
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: ⭐ Weather.com
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.
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: ⭐ Weather.com
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!
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!