rejuvenate / lovelace-horizon-card

Sun Card successor: Visualize the position of the Sun over the horizon.
MIT License
411 stars 29 forks source link

Total sunshine hours #97

Open giacomitti opened 8 months ago

giacomitti commented 8 months ago

Add the information of total sunshine hours of the day.

baylanger commented 6 months ago

@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 commented 6 months ago

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

ErikNasstrom commented 6 months ago

+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 commented 3 months ago

+1 Hello, I am looking for :

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

Sorry for my poor english.

Thanks

baylanger commented 3 months ago

@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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 ;)