rejuvenate / lovelace-horizon-card

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

Moonrise and moonset clarification #63

Open extremeshok opened 1 year ago

extremeshok commented 1 year ago

To me the values make no sense, currently what is shown

Sunrise : 7:49 Sunset : 17:59

Moonrise : 5:05 Moonset : 15:07

Surely the moonrise and moonset need to be swapped around.

Basically I would like to know what time the moon will rise (above the horizon) and what time it will set (below the horizon).

type: custom:horizon-card
moon: true
refresh_period: 120
southern_flip: true
fields:
  sunrise: true
  sunset: true
  dawn: true
  noon: true
  dusk: true
  azimuth: true
  sun_azimuth: true
  moon_azimuth: true
  elevation: true
  sun_elevation: true
  moon_elevation: true
  moonrise: true
  moonset: true
  moon_phase: true
avataar commented 1 year ago

No, what you see is correct. Moonrise means "Moon goes above the horizon" and moonset means "Moon goes below the horizon". There are times of the year when the Moon is indeed above the horizon during the day (as happens to be now). Sometimes you can even see the Moon during the day if the conditions are right - position of the Sun, clouds, etc.

extremeshok commented 1 year ago

at 21h00 would the moon be visible or not ? if one works on the following assumptions: Moonrise : 5:05 ; Moonset : 15:07

avataar commented 1 year ago

Obviously not, since at 15:07 it will go below the horizon. I suggest you play with the setting now in the card config, it allows you to set a fixed time (the Sun and the Moon won't move but will show that exact time), for example (adjust the timezone +0300 to match yours):

Compare this:

now: 2023-07-14T21:00:00+0300

To this:

now: 2023-07-30T21:00:00+0300
ThomDietrich commented 1 year ago

Hey @extremeshok, was your question answered? Perhaps you want to propose an addition to the text shown here? https://github.com/rejuvenate/lovelace-horizon-card#visibility-fields Otherwise please close the ticket. Thanks!