Skip to content
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

When to use _0d/_0h, and when not to? #231

Closed
2 tasks done
Intecpsp opened this issue May 6, 2024 · 5 comments · Fixed by Pirate-Weather/pirateweather#220
Closed
2 tasks done

When to use _0d/_0h, and when not to? #231

Intecpsp opened this issue May 6, 2024 · 5 comments · Fixed by Pirate-Weather/pirateweather#220
Labels
documentation Improvements or additions to documentation

Comments

@Intecpsp
Copy link

Intecpsp commented May 6, 2024

Describe the issue

I've looked around trying to find something telling me which to use, but haven't found anything. What are the use cases for the 2 sensors?

Example: It's currently raining outside where I'm at. I have sensor.pirateweather_precip_probability saying 25%, and sensor.pirateweather_precip_probability_0d saying 47%. Which of these do I trust? I'm contemplating just getting an average of the 2 and going with that, but I wanted to find the actual use cases for the 2 before I did that.

Documentation URL

https://pirateweather.net/en/latest/ha/

Acknowledgements

  • I have searched this repository to see if the issue has already been reported.
  • I have written an informative title.
@Intecpsp Intecpsp added documentation Improvements or additions to documentation Needs Review labels May 6, 2024
@Intecpsp
Copy link
Author

Intecpsp commented May 6, 2024

To add to this, when should I use the 0h equivalent?

@cloneofghosts
Copy link
Collaborator

The HA documentation is quite lacking at the moment but to answer your question:

  • 0h is for the top of the current hour
  • 0d is for the current day
  • No suffix is for the current time

For your question:

  • precip_probability - is the probability of precipitation for the current time
  • precip_probability_0h - is the probability of precipitation for the current hour
  • precip_probability_0d - is the maximum probability of precipitation for the rest of the current day

precip_probability_0d of 47% means that the maximum probability for the rest of the day is 47%

@Intecpsp
Copy link
Author

Intecpsp commented May 6, 2024

Thank you for the help!

For a little more clarification, when you say "current time", do you mean "right now"? So if I wanted to know what the current weather is, use no suffix, correct?

@Intecpsp Intecpsp changed the title When to use _0d, and when not to? When to use _0d/_0h, and when not to? May 6, 2024
@alexander0042
Copy link
Collaborator

Thanks for opening to issue, it really does help focus in on what needs to be clarified! "Current time" means right now, or at least as close to right now as possible. So for example, if you called the API at 2:15 pm, the data would be for:

  • currently: 2:15 pm
  • 0h: 2:00 pm (start of hour)
  • 0d: 12:00 am (start of day)

currently has no suffix, so that's correct

@Intecpsp
Copy link
Author

Intecpsp commented May 6, 2024

Got it, thank you for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants