1st class support for relative humidity in forecasts#117
Conversation
|
Going to make this draft, so that I know when to take a closer look.
My comment in homeassistant was for the code there. I think these (wind gust, wind chill, and heat index) are already in the observations. If possible, we can add all the newly added forecast types here. |
|
@MatthewFlamm, couple observations/questions for you.
I can assist with adding new values and adjusting to API changes, but I'm not very interested in updating the test case JSON responses or adjusting the assertions. |
No. The responses were made by grabbing them and then modifying them for specific purposes. A generation script sounds great in hindsight, but we do not have that now.
I think we just need to add the new responses to a single json file for each type. So for forecasts, we would have to manually append those values in |
|
I noticed that you tweaked the test data, so I added "probabilityOfPrecipitation", "dewpoint", and "relativeHumidity" to the forecasts. I didn't copy your test data changes to my fork, so you'll need to merge this into your branch. |
|
This is looking good, Thanks! I need to think about this a little bit, but I noticed that the units for dewpoint are always in SI, even if I explicitly request US units. This means we will have inconsistent units here. I'm wondering if we should convert them to US in this case. The NWS API is full of these inconsistencies. |
I just noticed your comment. But I already fixed this and created PR #119 👍 |
Add first class support for relative humidity in NWS forecasts. This PR is a WIP right now and not ready to merge.
Remaining tasks are: