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

Total sunshine hours #97

Open
giacomitti opened this issue Nov 5, 2023 · 9 comments
Open

Total sunshine hours #97

giacomitti opened this issue Nov 5, 2023 · 9 comments

Comments

@giacomitti
Copy link

Add the information of total sunshine hours of the day.

@baylanger
Copy link

@giacomitti I assume you mean number of daylight hours, not sunshine... right?

I made a similar request to ha-sun2 - What I'm looking for isn't the number of daylight hours but the delta with the previous day. How much gain or lost in seconds from the previous day.

It seems both sensors could be added in the same PR.

@giacomitti
Copy link
Author

Yes, is the number of daylight hours. Sorry for the mistake.

@ErikNasstrom
Copy link

+1 on this, Would be great to have a field with the length of daylight and the change. Should be pretty simple math doing the calculations!
This is from timeanddate.com showing "Daylight Hours: 7 hours, 13 minutes (+2m 38s)"
image

@okpapt
Copy link

okpapt commented Apr 10, 2024

+1
Hello, I am looking for :

  • time of :
    • sun_last_dawn ,
    • sun_last_rising ,
    • sun_last_setting ,
    • sun_last_dusk ,
    • moon_last_rising ,
    • moon_last_setting ,
  • durations of :
    • day (between down and dusk) ,
    • sun (between rising and setting),
    • night (between dusk and down),
    • not sun (between setting and rising),
    • moon,
  • fix graph center on :
    • half day,
    • half night,
    • sun position,
    • moon position,

Can you add that soon ?
Is it local time or universal ?

Sorry for my poor english.

Thanks

@baylanger
Copy link

@okpapt do you have any specific automations/projects that need any of those or is it only to “display” the info on a dashboard/card? I’m not against adding those, but if there’s a specific needs for you, likely others would want it.

@okpapt
Copy link

okpapt commented Apr 12, 2024

Hello baylanger ,
Twice !
I need theese data for my garden and also to display its for knowing when sun was rised this morning, etc.
Garden, moon and sun are connected together.

@ThomDietrich
Copy link

ThomDietrich commented Apr 12, 2024

Hello everyone,
We accept PRs, so if anyone wants to add a feature, please do so.

One note though: Please be aware that we will never be able to present every possible data point in the horizon card, while keeping conditional views and a pretty result. Think about whether your need should indeed be part of the horizon-card, or whether this datapoint could just be shown independently (e.g. through an entity card next to the horizon-card).
Jm2c

@okpapt
Copy link

okpapt commented Apr 12, 2024

Hello ThomDietrich

What is PR ?

Now the horizon card is center on day at 12h00.
I purpose an other card center on night at 00h00.
Sun and moon mooving east to west and up and down, landscape and curves fix.

I hope 2 other cards, center on sun and center on moon.
Landscape and curves and moon mooving east to west, moon mooving also up and down, sun only up and down on same vertical axe.
Landscape and curves and sun mooving east to west, sun mooving also up and down, moon only up and down on same vertical axe.

Each card shows limits of night and day, curves of sun and moon.

Datas as template or sensor, visible in a table.

Is it possible ?
Thank you.

@baylanger
Copy link

PR = Pull Request - it allows anyone to request for changes to be added.

Basically, anyone can download the source code of this project, make changes and propose them by creating a PR.

If you don't know how to code and make those changes, someone else needs to to them. The current maintainer perhaps doesn't have the time to make those changes, that is likely why he wrote "We accept PRs, so if anyone wants to add a feature, please do so."

Perhaps someone else will jump in, make the changes and create a PR that could eventually be merged and pushed out to the public.

If you want to send a pizza & beer subscription to the maintainer, perhaps he'll do it for you ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants