Skip to content

Negative/Unrealistic UV Index Value & Precipitation Intensity #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cloneofghosts opened this issue Jun 24, 2023 · 5 comments
Closed
Labels
bug Something isn't working keep

Comments

@cloneofghosts
Copy link
Collaborator

cloneofghosts commented Jun 24, 2023

I noticed late night on Thursday that the API was giving some unrealistic values for the UV index. I first noticed this in my HA installation and checked in the browser and I can confirm that it's an API issue rather than a HA issue.

The first thing I noticed was at 11:50 PM there was a UV index of 0.03 which shouldn't be possible at that point. I wonder if it was using the absolute value of -0.03 which is why it returned 0.03 instead of -0.03.
image

  "currently": {
    "time": 1687492260,
    "uvIndex": 0.03,
  },

The second thing I noticed was that the current day has a forecasted UV index of -0.03 which makes no sense. I know I mentioned this in #7 and #4 but it was never fixed.
image

  "daily": {
    "summary": "Rain",
    "icon": "rain",
    "data": [
      {
        "time": 1687406400,
        "uvIndex": -0.03,
      },

EDIT: Seems to be a common occurrence late at night (around 10/11pm) as I noticed it again a few days ago.

@cloneofghosts
Copy link
Collaborator Author

The 1.5.4 update seems to have fixed this as well. Will close for now but if it pops up again I will re-open.

@cloneofghosts
Copy link
Collaborator Author

Just noticed the same issue pop up again. Current UV is 0.03, the daily UV index is -0.0 but the hourly data is fine.

@cloneofghosts cloneofghosts reopened this Jul 15, 2023
@cloneofghosts cloneofghosts changed the title Unrealistic UV Index Value Negative/Unrealistic UV Index Value & Precipitation Intensity Jul 22, 2023
@cloneofghosts
Copy link
Collaborator Author

@alexander0042 I also found that a negative precipIntensity and precipIntensityError are still possible

  "currently": {
    "time": 1690053600,
    "summary": "Clear",
    "icon": "clear-day",
    "nearestStormDistance": 0,
    "nearestStormBearing": 0,
    "precipIntensity": -0.0005,
    "precipProbability": 0.0,
    "precipIntensityError": -0.0,
    "precipType": "rain",
    "temperature": 21.7,
    "apparentTemperature": 27.49,
    "dewPoint": 17.72,
    "humidity": 0.78,
    "pressure": 1009.08,
    "windSpeed": 16.63,
    "windGust": 31.36,
    "windBearing": 166,
    "cloudCover": 0.18,
    "uvIndex": 5.51,
    "visibility": 4.5,
    "ozone": 302.01
  },

I found this issue while using these coordinates 47.486771,-52.751787 so maybe it's just a GFS/GEFS issue but I have seen precipIntensityError be -0.0 before in the HRRR domain.

@cloneofghosts
Copy link
Collaborator Author

cloneofghosts commented Oct 20, 2023

Going to bump this before I get the stale notification. I just checked and I'm seeing "uvIndex": 0.05, 2 hours after sunset which seems a little bit off? I think the negative issues can still happen though I haven't seen it lately.

EDIT: Seeing the negative precipIntensityError for my location currently. "precipIntensityError": -0.0,

@cloneofghosts
Copy link
Collaborator Author

There's already #88 to take care of the unrealistic UV Index values and the negative values seem to be fixed in the V2 beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working keep
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants