Hi Yincognito
Thank you for clarification. I didn't know about METAR.
The cloud ceiling is constantly returned from Weather.com JSON for my country (East Asia, not US), for example now 6705 m (calculated) besides 1676 m in AccuWeather API. What a difference! I feel "6705 m" is unnaturally too high, looking the sky over my house. . Maybe the observation tool (or method?) for my location is not accurate even irresponsible?!
It is currently September 20th, 2024, 7:23 pm
⭐ Weather.com - Parsing the V3 JSON
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
-
- Developer
- Posts: 22749
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com - Parsing the V3 JSON
Yeah, that looks like the one.
The .zip that Mimi33333 sent looks like she might have hacked it up some trying to get the weather to work, and good on her for that. So now my question to her is, do you want the appearance and functionality from the original skin on deviantART, and just want us to help get the weather portion of it working again, or are there appearance and / or functionality changes you actually intend?
-
- Developer
- Posts: 22749
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com - Parsing the V3 JSON
https://www.flymac.co.uk/how-to-estimate-cloud-bases-and-heights/mak_kawa wrote: ↑June 9th, 2020, 12:08 pm Hi Yincognito
Thank you for clarification. I didn't know about METAR.
The cloud ceiling is constantly returned from Weather.com JSON for my country (East Asia, not US), for example now 6705 m (calculated) besides 1676 m in AccuWeather API. What a difference! I feel "6705 m" is unnaturally too high, looking the sky over my house. . Maybe the observation tool (or method?) for my location is not accurate even irresponsible?!
Currently my skies are clear, so cloudCeiling is returning null, but based on that formula (temp-dewpoint) / 2.5 * 1000 my ceiling is estimated at 6,000 feet. That doesn't sound out of line to me.
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: ⭐ Weather.com - Parsing the V3 JSON
Hi jsmorley
It's formula, not observation...surprised.
It's formula, not observation...surprised.
-
- Developer
- Posts: 22749
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com - Parsing the V3 JSON
I expect it is, as the only other method is to triangulate with two fixed points on the ground set at a defined distance from each other. I doubt that they have that set up in the 900,000 locations weather.com "observes".
-
- Rainmeter Sage
- Posts: 8192
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: ⭐ Weather.com - Parsing the V3 JSON
Wow, that's really interesting - didn't know it was that easy to calculate it.jsmorley wrote: ↑June 9th, 2020, 12:14 pm https://www.flymac.co.uk/how-to-estimate-cloud-bases-and-heights/
Currently my skies are clear, so cloudCeiling is returning null, but based on that formula (temp-dewpoint) / 2.5 * 1000 my ceiling is estimated at 6,000 feet. That doesn't sound out of line to me.
-
- Developer
- Posts: 22749
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com - Parsing the V3 JSON
Yeah, there are two formulas there. One to estimate the "ceiling" or in other words the base of the clouds from the ground, and another to estimate the "height" of the clouds, or in other words from the bottom of the cloud base to the top. Both are surprisingly simple, both are very important to pilots.Yincognito wrote: ↑June 9th, 2020, 12:25 pm Wow, that's really interesting - didn't know it was that easy to calculate it.
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: ⭐ Weather.com - Parsing the V3 JSON
Hi jsmorley and Yincognito
I too calculated cloud ceiling using that formula. Current temp=16.7 (celsius), dew point=12.8, and elevation of the location=55 m. So, cloud ceiling is calculated as 1610 m. This value is more relevant than 7620 m from JSON item.
I too calculated cloud ceiling using that formula. Current temp=16.7 (celsius), dew point=12.8, and elevation of the location=55 m. So, cloud ceiling is calculated as 1610 m. This value is more relevant than 7620 m from JSON item.
-
- Developer
- Posts: 22749
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: ⭐ Weather.com - Parsing the V3 JSON
Dunno... I decided against parsing out that bit of information, as I don't know for sure what method they are using for figuring it out, and in any case it isn't of much value unless there are actually big, thick cumulus clouds and such. A good bit of the time the value is "null" in the JSON, even when there are some wispy clouds around or things are just overcast. In any case, the dew point can be the same as the temperature if the air is fully saturated, and while that might well mean it's really misty, foggy or even just raining, it doesn't mean your house is in a cloud. I just don't see it of a lot of value really.
-
- Rainmeter Sage
- Posts: 8192
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: ⭐ Weather.com - Parsing the V3 JSON
Yep, indeed - I didn't parse the item either, as I only focused on the items that were common to V2 and V3 (so that my approach parsing either within the same skin / regex could work). In the end, even weather.com doesn't always have that data in the JSON, depending on location / language, so trying to get it is not going to offer consistent results anyway...
P.S. This is why I didn't try again to parse the moon days (I used to parse them when getting the source from wxdata), despite them being present in V3 (but not V2, for example).
P.S. This is why I didn't try again to parse the moon days (I used to parse them when getting the source from wxdata), despite them being present in V3 (but not V2, for example).