r-renato / ha-card-weather-conditions

Weather condition card (Lovelace) for Home Assistant.
MIT License
191 stars 37 forks source link

Give option to change moon phase depending on hemisphere [Feature request] #82

Open kaizersoje opened 3 years ago

kaizersoje commented 3 years ago

I live in Australia (southern hemisphere). The moon is seen differently from the northern hemisphere.

image

The current code below is for the Northern hemisphere.

Nt={new_moon:"🌑",new:"🌑",waxing_crescent:"🌒",first_quarter:"🌓",waxing_gibbous:"🌔",full:"🌕",full_moon:"🌕",waning_gibbous:"🌖",third_quarter:"🌗",last_quarter:"🌗",waning_crescent:"🌘"}

This is the code for the Southern hemisphere.

Nt={new_moon:"🌑",new:"🌑",waxing_crescent:"🌘",first_quarter:"🌗",waxing_gibbous:"🌖",full:"🌕",full_moon:"🌕",waning_gibbous:"🌔",third_quarter:"🌓",last_quarter:"🌓",waning_crescent:"🌒"}

Is there a way to have an option to set the hemisphere when defining the card?

kaizersoje commented 1 month ago

Hi @r-renato, could you take a look at this?