It is currently September 23rd, 2020, 8:34 am

⭐ Weather.com - Parsing the V3 JSON - NEW!

Our most popular Tips and Tricks from the Rainmeter Team and others
User avatar
balala
Rainmeter Sage
Posts: 11386
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: ⭐ weather.com - Parsing the JSON

Post by balala »

fonpaolo wrote: April 4th, 2020, 7:55 pm If yes, I don't remember if I can upload a zip file here....
Yes, you can, however you always can give it a try, if you are not sure...
User avatar
fonpaolo
Moderator
Posts: 1397
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

Thanks balala. :D
I'm sorry, inactivity made me forget many things... :oops:
User avatar
balala
Rainmeter Sage
Posts: 11386
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: ⭐ weather.com - Parsing the JSON

Post by balala »

fonpaolo wrote: April 4th, 2020, 8:22 pm I'm sorry, inactivity made me forget many things... :oops:
:thumbup: :great:
User avatar
Yincognito
Posts: 2584
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 4th, 2020, 7:55 pm Don't worry, no troubles for me, it's solely to avoid confusion.

Do you also need (or want) the related icons?

If yes, I don't remember if I can upload a zip file here....
Yep, I want the whole thing. I'm an all or nothing kind of guy. Either is fine.
User avatar
fonpaolo
Moderator
Posts: 1397
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

Ok, I managed to create a simple rmskin, Yincognito. here it is.
Let me know if you have any problems.
You do not have the required permissions to view the files attached to this post.
User avatar
Yincognito
Posts: 2584
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 5th, 2020, 8:02 pm Ok, I managed to create a simple rmskin, Yincognito. here it is.
Let me know if you have any problems.
Thanks a lot. Will test it later on and will let you know how it goes. :thumbup:
alvarowaro14
Posts: 2
Joined: April 7th, 2020, 9:53 am

Re: ⭐ weather.com - Parsing the JSON

Post by alvarowaro14 »

Hi, I'm new to Rainmeter and just registered in the forum to thank you very much for your work. Thanks to you I could fix the weather from the NUXHD skin. This is how it looks now ↓↓

Image
User avatar
Yincognito
Posts: 2584
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 5th, 2020, 8:02 pm Ok, I managed to create a simple rmskin, Yincognito. here it is.
Let me know if you have any problems.
Got the time to look over your skin and the site providing the alerts. You did an excellent job with the skin and the source site for sure is comprehensive. Will keep the skin in case I'll need it to further bolster my weather skin - thanks again! :great:
User avatar
fonpaolo
Moderator
Posts: 1397
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

You're welcome Yincognito. :D
I'm glad you find this useful.

The loss of wxdata could give me the hope to now finally finish my weather skin with alerts, not only for Europe.

But I need to find a valid documentation as reference...
GeekySavage
Posts: 2
Joined: April 22nd, 2020, 3:25 am

Re: ⭐ weather.com - Parsing the JSON

Post by GeekySavage »

Hello I have a skin im trying to figure out to have the weather shown up....Im having a hard time. This is not mine.

Code: Select all

[Raimeter]
Author=Darknesfreak.deviantart.com
Update=1000


-------- # # # # # Begin Measure & Variables # # # # # -------

[Variables]
Location=CAXX0042
Type=M

-----------------------------------------------------------------------
######## change the location to your correspondent area code  #########
######## use this web site ########## http://www.weather.com/ #########
-----------------------------------------------------------------------




[Current]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3000
Url=https://weather.com/en-CA/weather/today/l/6c8919935ebfd53c96bfd77c0c8aa808924a384c26cedebf43cba5da1f063004
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"

--------------------------------------------------------
--------------------------------------------------------


[MeasureTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=17

--------------------------------------------------------
--------------------------------------------------------


[MeasureStatus]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=19
Substitute=" And ":" and ","Lgt.":"Light ","Snow/":"Snow & "


--------------------------------------------------------
--------------------------------------------------------



-------- # # # # # Begin Meters # # # # # --------


--------------------------------------------------------
--------------------------------------------------------



[BG]
Meter=IMAGE
ImageName=#SKINSPATH#\Triangulation\Resources\WeatherTri.png
X=0
Y=0


--------------------------------------------------------
--------------------------------------------------------


Can someone help with this? Thanks