for USNY1233 I am showing 10mph wind and 0mph gust at 9:03 EDT.
It is currently September 20th, 2024, 4:06 am
⭐ Weather.com - Parsing the V3 JSON
-
- Developer
- Posts: 22747
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ weather.com - Parsing the JSON
-
- Posts: 60
- Joined: April 15th, 2015, 11:13 pm
Re: ⭐ weather.com - Parsing the JSON
This discussion got my curiosity going about how a wind "gust" is determined. So I did some quick research.
Source: https://en.wikipedia.org/wiki/Wind_gustIt is generally reported in METAR when the peak wind speed reaches at least 16 knots and the variation in wind speed between the peaks and average wind is at least 9 to 10 knots.[1][3] In marine meteorology, the top speed of a burst is expressed in meters per second (m/s) or in knots, while the Beaufort scale is used for reporting the mean speed. When the maximum speed exceeds the average speed by 10 to 15 knots, the term gusts is used while strong gusts is used for departure of 15 to 25 knots, and violent gusts when it exceeds 25 knots.[3]
-
- Posts: 60
- Joined: April 15th, 2015, 11:13 pm
-
- Posts: 31
- Joined: April 5th, 2010, 5:09 am
Re: ⭐ weather.com - Parsing the JSON
USNY1233 comes up null at 9:13a EDT: Location code is in the Variables include. I doubt I'd get any values if that was wrong. Returning nulls: USNY1233, USVA0944, USAL0332, 11762, 33418, 22308 between 9:13a and 9:20a. I have not modified any of the files besides the location code.
Another weather source shows Wind at 5 and Gusts to 6 mph for my area. Saying there are no gusts here just doesn't make any sense. That would be exceptionally rare. Using the old weather.com regex there was ALWAYS wind gusts. Doesn't seem like anything can be done so no need to beat a dead horse.
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16564
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: ⭐ weather.com - Parsing the JSON
Sorry, just realized I messed up something here. Fixed it in meantime.
Right now I have this: Speed: 10, Gust: 0 (empty).
Sorry for the confusion I created.
-
- Posts: 31
- Joined: April 5th, 2010, 5:09 am
Re: ⭐ weather.com - Parsing the JSON
Empty isn't a zero, it's a null. If it was zero, the string value would be zero like shows for current precipitation in the previous image.
-
- Rainmeter Sage
- Posts: 16564
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: ⭐ weather.com - Parsing the JSON
Agree. That's why I said:Sabertooth wrote: ↑March 27th, 2020, 1:35 pm Empty isn't a zero, it's a null. If it was zero, the string value would be zero like shows for current precipitation in the previous image.
-
- Posts: 31
- Joined: April 5th, 2010, 5:09 am
Re: ⭐ weather.com - Parsing the JSON
Removing the null substitution from the Variables include My updated Weather Slider (it can be collapsed to a tag on the edge of the screen):
You do not have the required permissions to view the files attached to this post.
Last edited by Sabertooth on March 27th, 2020, 3:09 pm, edited 1 time in total.
-
- Posts: 60
- Joined: April 15th, 2015, 11:13 pm
Re: ⭐ weather.com - Parsing the JSON
No Need to apologize balala. My Rainmeter skills are "null" in comparison to yours.
I still believe that if the OP waits long enough they will eventually see a wind "Gust" reading.
It is true that I use the substitution for the Wind "gust" measure. I use it because I don't like blank spaces on my Weather skin. My bad for stating that the results I found were "0" rather then "null"
-
- Rainmeter Sage
- Posts: 16564
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: ⭐ weather.com - Parsing the JSON
For sure.