Birthday reminder card for Lovelace

Great card, thanks:)

One question, how can I make the background of the card transparent?

Glad you like it!

The background colour and transparency of cards can be changed by adjusting the theme you use for HA. Read more here: https://www.home-assistant.io/integrations/frontend/

image
Can you help me.
I have this error. Not appear card for meā€¦
My version core-2021.7.3

Did you add:

resources:
  - url: /local/plugins/birthday-card/birthday-card.js?v=1.2001
    type: js

if yes, clear cache in your browser. Also HA restart and clear cache after restart may help.

Yes, add

But i have some alerts on my code

image

Hi! Have you placed birthday-card.js at the location specified in the url (a folder called ā€œbirthday-cardā€ within a folder called ā€œpluginsā€ placed in your www folder in config)? If not, please edit the url as appropriate. Or add it through UI at Configuration ā†’ Lovelace Dashboard (? uncertain of the english name) ā†’ Resources.

Hi! Yes i have.
image

Did you clear cache in your browser?

Are you sure you have edited the file itself as explained? The errors you get in the file may be because of typos in the ā€œSETTINGSā€ or ā€œBIRTHDAY REGISTRYā€ sections (too many or missing commas, semi-colons, brackets, etc.). You may also want to try adding ā€œmode: yamlā€ in the lovelace section, as explained here: Dashboards and Views - Home Assistant
It also may help to change the version number after the url to a higher number and reload the page afterwards. If none of these tips work Iā€™m afraid Iā€™m at a loss here.

@Vlad yes I did.

@Erlend I downloaded the birthday-card file and uploaded it to my HA. Could you check if this code has not been edited and is the same as yours? I didnā€™t make any changes

@Erlend any?

Hi @Erlend,

thank you for this great card. It has been asked before about the outsourcing of the birthday data. I am facing the same problem that I would like to outsource the birthday data to a csv file. Has anyone had any success with this so far?

Best regards

Is there an easy way to add an if/else to change the dbExpr color to red if say the birthday is within 15 days. Like if Iā€™m showing the next 60 days of birthdays I would like for anything less than or equal to 15 in the bd-when class to be red, else remain black. I can change bd-when to red but that changes all of it to red.