home-assistant-sun-card icon indicating copy to clipboard operation
home-assistant-sun-card copied to clipboard

Feature Request: Support for Moon visualization

Open Danieldiazi opened this issue 2 years ago • 3 comments

Hi! Fantastic card, very beautiful and useful!! I wonder if in the future will be possible to adapt this card in order to show Moon information. There are integrations like Astroweather that provide Moon information, and it will be fantastic if it shows in a card like "home-assisstant-sun-card". I suppose it will be difficult, this card is named "sun-card" and I'm asking for Moon support :)

Danieldiazi avatar Oct 01 '22 09:10 Danieldiazi

I would love to see this also! Great card already though!

modul8 avatar Nov 14 '22 01:11 modul8

Its possible to get moon data from ipgeolocation.io like:

  - platform: rest
    resource: https://api.ipgeolocation.io/astronomy?apiKey=MyKey&location=MyTown,MyCountry
    name: Moon API
    scan_interval: 1200
    json_attributes: 
      - date
      - current_time
      - moonrise
      - moonset
      - moon_status
      - moon_altitude
      - moon_distance
      - moon_azimuth
      - moon_parallactic_angle
    value_template: '{{value_json.moon_status}}'
date: 2022-11-24
current_time: 19:32:50.036
sunrise: 08:36
moonrise: 09:44
moonset: 15:09
moon_status: -
moon_altitude: -26.863470965430853
moon_distance: 364301.28898391494
moon_azimuth: 265.84440759063875
moon_parallactic_angle: 27.564141243389596
friendly_name: Moon API

Would be nice to see the Moon path in your card.

Tom-ahawk avatar Nov 24 '22 18:11 Tom-ahawk

I fourth this ! Would be so cool !

Tontze avatar Dec 06 '22 08:12 Tontze