A simple custom Lovelace card that displays Latvian name days for the current date in Home Assistant. The card uses a bundled JSON file (namedays.json) containing the name day data, fetched automatically.
Note: This card is designed specifically for Latvian name days.
- Open HACS in Home Assistant.
- Go to Frontend > click the ... (three-dot) menu in the top-right > Custom repositories.
- Add this repository's URL and select Lovelace as the category.
- After adding, find Latvian Namedays Card in HACS under Frontend.
- Click Install.
- If your Home Assistant version doesn't automatically add the resource, go to Settings > Dashboards > Resources and add:
url: /hacsfiles/namedays-card/namedays-card.js type: module
- Restart Home Assistant, or perform a hard refresh of your Lovelace dashboard to ensure the new files load.
If you prefer not to use HACS:
- Download
namedays-card.jsandnamedays.jsonfrom the repository. - Place them in your Home Assistant
wwwfolder, e.g.:/config/www/namedays-card/namedays-card.js /config/www/namedays-card/namedays.json
After installation, you can add the card to your Lovelace dashboard:
- Edit your Lovelace dashboard.
- Click Add Card > Manual.
- Use the following configuration:
type: custom:namedays-card title: Namedays
- Save. The card will show today's Latvian name days based on the data in
namedays.json.
Currently, there are no extra configuration options. The card automatically fetches namedays.json from the same directory. Future updates may add the ability to specify a custom JSON path or other settings.
If using HACS, updates will appear in HACS whenever a new release is published. Simply click Update in HACS to get the latest version.
For manual installations, download the updated namedays-card.js and namedays.json files and replace the old ones in your www/namedays-card/ folder.
If you find an issue or have suggestions for improvement:
- Open an issue on GitHub
- Submit a pull request if you have a fix or new feature
This project is licensed under the MIT License. Feel free to use or modify the code for your own Home Assistant setup.
