It is currently June 1st, 2020, 6:28 pm

⭐ Weather.com - Parsing the JSON

Our most popular Tips and Tricks from the Rainmeter Team and others
User avatar
jsmorley
Developer
Posts: 20676
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ⭐ weather.com - Parsing the JSON

Post by jsmorley »

It's returning 18mph as the @CurrentWindGust for me right now... USVA0944.
User avatar
balala
Rainmeter Sage
Posts: 10661
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: ⭐ weather.com - Parsing the JSON

Post by balala »

Sabertooth wrote:
March 26th, 2020, 6:58 pm
I adjusted my weather ini using your JSON parsing and it's working well but I notice that there's no Wind Gust data. @CurrentWindGust doesn't seem to have a value no matter the location (looking at the About Rainmeter/Skins/WeatherComJSON data). I tried different location values (Florida 33418, Virginia 22308, NY 11762) using your provided files but that always seems to come up empty. I only just started looking things over so I'm not sure where the problem is yet.
I also can confirm both measures [@CurrentWindGust] and [@CurrentWindSpeed] return values. Right now for my location they do, but just tried for all three locations posted by you and [@CurrentWindGust] do return value for all three.
User avatar
Sabertooth
Posts: 31
Joined: April 5th, 2010, 5:09 am

Re: ⭐ weather.com - Parsing the JSON

Post by Sabertooth »

jsmorley wrote:
March 26th, 2020, 8:13 pm
It's returning 18mph as the @CurrentWindGust for me right now... USVA0944.
Nice to know someone is seeing values but I have yet to see a single value for any location I tried. This is USVA0944 that I see at 12:47a:
2020-03-27 (2).png
This is what I see for @CurrentWindGust at this time for 11762, 33418, 22308, USVA0944 and USAL0332 also. The regex you created works fine but weather.com is returning nulls ("gust":null) for me for all 5 locations. I'll be looking forward to seeing a value at some point since others are. I'm just posting this to show I'm not crazy. I really don't see any value.
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 10661
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: ⭐ weather.com - Parsing the JSON

Post by balala »

Sabertooth wrote:
March 27th, 2020, 5:11 am
Nice to know someone is seeing values but I have yet to see a single value for any location I tried. This is USVA0944 that I see at 12:47a:
2020-03-27 (2).png

This is what I see for @CurrentWindGust at this time for 11762, 33418, 22308, USVA0944 and USAL0332 also. The regex you created works fine but weather.com is returning nulls ("gust":null) for me for all 5 locations.
Right now (almost 10 AM UTC) I get the following values:
  • 6 for 11762
  • 4 for 33418
  • 1 for 22308
  • 1 for USVA0944
  • 3 for USAL0332
My question is where precisely are you adding those location codes? I have the feeling that you're doing something wrong.
Sabertooth wrote:
March 27th, 2020, 5:11 am
I'm just posting this to show I'm not crazy.
No one told this.
SCR
Posts: 45
Joined: April 15th, 2015, 11:13 pm

Re: ⭐ weather.com - Parsing the JSON

Post by SCR »

balala wrote:
March 27th, 2020, 9:44 am
Right now (almost 10 AM UTC) I get the following values:
  • 6 for 11762
  • 4 for 33418
  • 1 for 22308
  • 1 for USVA0944
  • 3 for USAL0332
My question is where precisely are you adding those location codes? I have the feeling that you're doing something wrong.

No one told this.
I've checked the following at 8:00 am EDT

USVA0944 - Wind: 2 - Gust: 0
USAL0332 - Wind: 3 - Gust: 0
22308 - Wind: 3 - Gust: 0
33418 - Wind: 2 - Gust: 0
11762 - Wind: 2 - Gust: 0

Are you showing a "Gust" speed for those locations? If so then I also have problems.
User avatar
jsmorley
Developer
Posts: 20676
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ⭐ weather.com - Parsing the JSON

Post by jsmorley »

Nope, USVA0944 is 1mph wind and 0mph gust right now.
User avatar
balala
Rainmeter Sage
Posts: 10661
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: ⭐ weather.com - Parsing the JSON

Post by balala »

SCR wrote:
March 27th, 2020, 12:07 pm
Are you showing a "Gust" speed for those locations? If so then I also have problems.
Yes, I am. But still have the same question as previously:
balala wrote:
March 27th, 2020, 9:44 am
My question is where precisely are you adding those location codes?
So where have you added the codes (11762, 33418, 22308, USVA0944 and USAL0332)? Please let us know precisely. I think you're not adding them where they should be.
SCR
Posts: 45
Joined: April 15th, 2015, 11:13 pm

Re: ⭐ weather.com - Parsing the JSON

Post by SCR »

jsmorley wrote:
March 27th, 2020, 12:10 pm
Nope, USVA0944 is 1mph wind and 0mph gust right now.
Thanks. I have not seen a "gust" speed at my location, USNY1233, for the last 2 days which I do not feel is unusual. In fact I may not see a "Gust" speed for a week or more sometimes.
User avatar
jsmorley
Developer
Posts: 20676
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ⭐ weather.com - Parsing the JSON

Post by jsmorley »

Sure, not seeing any value for gust is not unusual or something to be concerned about. Even if the actual wind is significant, that doesn't mean there are gusts that are significant enough to measure.
SCR
Posts: 45
Joined: April 15th, 2015, 11:13 pm

Re: ⭐ weather.com - Parsing the JSON

Post by SCR »

balala wrote:
March 27th, 2020, 12:33 pm
Yes, I am. But still have the same question as previously:

So where have you added the codes (11762, 33418, 22308, USVA0944 and USAL0332)? Please let us know precisely. I think you're not adding them where they should be.
Wow, OK. If you don't mind checking what are you showing for my location USNY1233? I am showing Wind: 7 mph- Gust: 0 mph at 8:40 EDT.