It is currently August 8th, 2020, 10:52 pm

All Rainmeter Weather Skins refuse to load

Get help with installing and using Rainmeter.
dvo
Posts: 852
Joined: February 7th, 2016, 6:08 am

Re: All Rainmeter Weather Skins refuse to load

Post by dvo »

we have to flush it all once a month to keep the explore hole clean i guess .... :rofl:
User avatar
JohnBurns
Posts: 65
Joined: February 11th, 2011, 4:18 pm
Location: Oklahoma City

Re: All Rainmeter Weather Skins refuse to load

Post by JohnBurns »

dvo wrote:
May 23rd, 2020, 1:20 pm
after running ccleaner it all came back .... thx pul53dr1v3r it worked :D
Same here, CCleaner seemed to fix it.
"They came first for the Communists, and I didn't speak up because I wasn't a Communist. Then they came for the Jews, and I didn't speak up because I wasn't a Jew. Then they came for the trade unionists, and I didn't speak up because I wasn't a trade unionist. Then they came for the Catholics, and I didn't speak up because I was a Protestant. Then they came for me, and by that time no one was left to speak up."Martin Niemöller
Helltech
Posts: 8
Joined: July 5th, 2009, 9:23 pm

Re: All Rainmeter Weather Skins refuse to load

Post by Helltech »

Haha CCleaner worked for me too, thats funny.
User avatar
JohnBurns
Posts: 65
Joined: February 11th, 2011, 4:18 pm
Location: Oklahoma City

Re: All Rainmeter Weather Skins refuse to load

Post by JohnBurns »

This question is not to be critical, but merely being inquisitive - I'm not a techie, so please bear with me. Why do Rainmeter weather skins quit working from time to time, but XWidget weather skins do not? What is the difference that causes the stoppage in Rainmeter?
"They came first for the Communists, and I didn't speak up because I wasn't a Communist. Then they came for the Jews, and I didn't speak up because I wasn't a Jew. Then they came for the trade unionists, and I didn't speak up because I wasn't a trade unionist. Then they came for the Catholics, and I didn't speak up because I was a Protestant. Then they came for me, and by that time no one was left to speak up."Martin Niemöller
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4069
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: All Rainmeter Weather Skins refuse to load

Post by eclectic-tech »

JohnBurns wrote:
June 2nd, 2020, 12:30 am
This question is not to be critical, but merely being inquisitive - I'm not a techie, so please bear with me. Why do Rainmeter weather skins quit working from time to time, but XWidget weather skins do not? What is the difference that causes the stoppage in Rainmeter?
XWidget's use two 'core' files that access a different weather site. One appears to use Accuweather as the source for data, but I could not access the actual code, so I am not sure which other source they use.

Most recent Rainmeter weather skins use a JSON coded portion of weather.com as their source. And over the past week or so, weather.com has been offering different versions of their site, which has caused the issues you are seeing.

I hope things will settle down once weather.com unifies their code, but until then you always have the option to use Rainmeter weather skins that use alternate sources for their data; Yahoo, Dark Sky, Foreca, etc.

Here is a list of updated skins and their associated data source.
User avatar
jsmorley
Developer
Posts: 21218
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: All Rainmeter Weather Skins refuse to load

Post by jsmorley »

I actually went an entire day today without weather.com giving me any trouble. Maybe we are seeing the end of the beginning of this.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4069
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: All Rainmeter Weather Skins refuse to load

Post by eclectic-tech »

jsmorley wrote:
June 2nd, 2020, 2:26 am
I actually went an entire day today without weather.com giving me any trouble. Maybe we are seeing the end of the beginning of this.
Gosh, I hope you are right. I enjoy creating skins, but not having to fiddle with them every couple of months! :twisted:
User avatar
jsmorley
Developer
Posts: 21218
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: All Rainmeter Weather Skins refuse to load

Post by jsmorley »

eclectic-tech wrote:
June 2nd, 2020, 2:38 am
Gosh, I hope you are right. I enjoy creating skins, but not having to fiddle with them every couple of months! :twisted:
:-) I certainly don't look forward to parsing and creating 2,000+ lines of @Include code again if I don't have to.
User avatar
Yincognito
Posts: 2200
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: All Rainmeter Weather Skins refuse to load

Post by Yincognito »

jsmorley wrote:
June 2nd, 2020, 2:26 am
I actually went an entire day today without weather.com giving me any trouble. Maybe we are seeing the end of the beginning of this.
It's been several days for me of not having issues, but then, I only used the "old" weather skin a couple of times during this period.
jsmorley wrote:
June 2nd, 2020, 2:43 am


:-) I certainly don't look forward to parsing and creating 2,000+ lines of @Include code again if I don't have to.
You wouldn't have to. The regexes can be constructed to parse either format (V2 or V3), actually - and after that, you wouldn't need to change it anymore, other than potentially adjusting the brackets count (although that's also quite unlikely, as their JSON format and its structure is pretty stable and straight-forward, despite the name changing and different grouping).

It's all about using elements that never (or are highly unlikely to) change in your patterns (e.g. the number of opening/closing brackets, the "root" of a field name instead of the exact name for a certain format), and look for each element individually instead of grouping it with other elements in a bigger pattern, in order to handle the changing order. For example, something like this (it's just the shortest version of the patterns, not necessarily the best one):

Code: Select all

Location=(?siU)"[^"]*location[^"]*":[^\}]*([\{\[]{1}[^\}]*"[^"]*city[^"]*":\s*"[^"]+".*[\]\}]{2})
Observation=(?siU)"[^"]*observation[^"]*":[^\}]*([\{\[]{1}.*[\]\}]{1})
DateTime=(?siU)"[^"]*datetime[^"]*":[^\}]*([\{\[]{1}.*[\]\}]{1})
DailyForecast=(?siU)"(?=[^"]*daily)(?=[^"]*forecast)[^"]*":(?:(?=.*15day).*15day|)[^\}]*([\{\[]{1}.*[\]\}]{4})
would capture all the common sections in the JSON in the children of a RegExp=^(.*)$ WebParser parent measure, irrespective of version or format. Then, in the children's children, one could have something like (just one example):

Code: Select all

(?siU)"winddir[^"]*(?-i)C[^"]*":(.*)(?:,|\]|\}|$)
which would get the wind's cardinal direction from any of the following forms:

Code: Select all

"windDirCompass": "NNW", (V2 format)
"windDirectionCardinal": "NW", (V3 format)
Iteration is handled relatively easy using day or day part index(es) based quantifiers, like (basic example):

Code: Select all

(?siU)(?:.*"\w+"){3}.*("\w+")
which would get "three" from:

Code: Select all

{"zero","one","two","three","four"}
That is, of course, if one doesn't find such methods hideously overcomplicated, the certainty of weather.com eventually switching to the V3 format to be uncertain, or the fact that I mentioned this in a weather thread to be off topic... :sly: If you do, then sorry for bringing this up. :confused:
User avatar
jsmorley
Developer
Posts: 21218
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: All Rainmeter Weather Skins refuse to load

Post by jsmorley »

I have seen no evidence yet that there is any need to make this super-complicated. If there becomes a real, demonstrable situation where we are randomly getting two distinct, in and of themselves consistent formats from weather.com, and that is the world we have to live in, then something like that would be required. I don't see any benefit for TWC to maintain two different formats of the JSON in the long term, that would have nothing to do with desktop vs. mobile, and while I may be missing something, I don't foresee that going forward.

Time will tell of course, and there may be a single, permanent(ish) change to the format. That wouldn't surprise me in the least. I don't see the cost-benefit for them in maintaining two, and then just randomly sending one of them out based on what, astrological signs or studying sheep entrails?

In any case, it is now going on 36 hours that the format has been stable for me, and I'm keeping my fingers crossed.