Replies: 5 comments
-
There is a lot more attributes at https://api.weather.gov/gridpoints/LWX/96,68 |
Beta Was this translation helpful? Give feedback.
-
Thanks @jfbauer432 ! |
Beta Was this translation helpful? Give feedback.
-
I have been trying to parse data from the url such as But I have found that my translations break when I switch to another grid point that returns additional elements that my definition doesn't have. This is because I based my definitions on a sample result, and I cannot find a complete Json schema for the values that could be returned for this type of url. What could be the solution for this problem? |
Beta Was this translation helpful? Give feedback.
-
In general, if would be more future proof for the application to ignore additional parameters until needed. The gridpoint is a dump of the forecast data provided by the weather offices and could change (hopefully with a SCN). This might also be helpful: https://github.com/weather-gov/api/issues/144 |
Beta Was this translation helpful? Give feedback.
-
Yes, that is helpful thank you. It could be that I'm just not doing something right since this is my first time trying to parse JSON. I thought everything was working until I switched to a completely different gridpoint. It seems that my main problem is that the automated generator I used defined "values" as an integer data type for some elements due to the sample data I used, but it neglected to identify that when "values" is encountered, it is always an array
...and so decoding broke when the data from another location had an array of values instead of a single integer. Thanks for your reply |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking for hourly forecast weather data. By applying https://api.weather.gov/gridpoints/LWX/96,68/forecast/hourly, I can only get limited weather attributes like temperature, wind speed, wind direction, shortForecast. How can I get the other attributes like relative humidity, dew point, cloud coverage, etc? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions