Language Code | Name | Native Name |
---|---|---|
ca |
Catalan | Català |
cs |
Czech | Čeština |
da |
Danish | Dansk |
de |
German | Deutsch |
en |
English | English |
fr |
French | Français |
id |
Indonesian | Bahasa Indonesia |
it |
Italian | Italiano |
pt |
Portuguese | Português (Brasil) |
ru |
Русский | Русский |
sk |
Slovak | Slovenčina |
https://github.com/ngocjohn/lunar-phase-card
Lovelace
Lunar Phase Card
Ctrl
+ F5
/ Shift
+ ⌘
+ R
config/www
folder (when there is no www
folder in the folder where your configuration.yaml
file is, create it and place the file there).Configuration->Lovelace Dashboards->Resources
(When there is no resources
tag on the Lovelace Dashboard
page, enable advanced mode in your account settings, and retry this step)./local/lunar-phase-card.js
module
Ctrl
+ F5
/ Shift
+ ⌘
+ R
.Name | Type | Requirement | Description |
---|---|---|---|
type |
string | Required | The type of the card. For this card, use custom:lunar-phase-card . |
entity |
string | Optional | The entity_id from Lunar Phase custom component sensor.*_moon_phase
|
use_default |
boolean | Optional | Whether to use default settings. Defaults to true . |
use_entity |
boolean | Optional | Whether to use entity settings. Defaults to false . |
use_custom |
boolean | Optional | Whether to use custom settings. Defaults to false . |
show_background |
boolean | Optional | Whether to show the background image. Defaults to false . |
compact_view |
boolean | Optional | Whether to display the card in a compact view. Defaults to false . |
12hr_format |
boolean | Optional | Whether to display time in 12-hour format. Defaults to false . |
custom_background |
string | Optional | URL of a custom background image for the card. |
selected_language |
string | Optional | ISO code of the language to be used. Defaults to system or en . |
latitude |
number | Optional | The latitude for which to calculate the lunar phase. |
longitude |
number | Optional | The longitude for which to calculate the lunar phase. |
[!NOTE] The
entity
parameter is not required. It refers to the entity ID from the Lunar Card Custom component, which can be installed here. If theentity
is not defined, the card will use the default latitude and longitude from the system configuration.
Here's an example configuration for the Lunar Phase Card:
type: custom:lunar-phase-card
entity: sensor.your_moon_phase_sensor
use_system: true
use_entity: false
use_custom: false
show_background: true
compact_view: true
12hr_format: false
custom_background: '/local/images/moon_background.jpg'
selected_language: 'en'
latitude: 48.8566
longitude: 2.3522
We welcome contributions and are grateful for your support in improving this project. If you'd like to contribute, please follow our Contribution Guidelines to get started.
© 2024 Viet Ngoc