Lovelace: Advanced calendar card

Perhaps this has something to do with the changes to custom cards in 0.106.

1 Like

I am not getting the timeColor attribute to change.

Example…

  • type: “custom:atomic-calendar”
    title: “Boys Soccer”
    showColors: true
    entities:
    • entity: calendar.SoccerTeam1
      titleColor: Red
      timeColor: Red
    • entity: calendar.SoccerTeam2
      timeColor: Green
      titleColor: Green

The titleColor has changed correctly but I want the time to match.

1 Like

There are several pull requests to the Atomic Calendar repo, and @atomic77 doesn’t seem to update this repo any longer. Does anyone care to fork and implement the pull requests and take over development?

Have you seen the code on his repo?

it’s over 350,000 characters and all written in one looooong line. It’s task just to convert it to a human readable format.

But I see someone has done it to create that PR. :slightly_smiling_face: :+1:

I hope someone can do it. I really like the card and would hate to lose it.

That is not an issue, since that is the rolled up file, and the actual code that is developed is in here.

1 Like

You’re right that does look better. :slightly_smiling_face:

Well, I’ve tried to play around a bit with the code to get it to work but no matter what I try without using that “rollup” file I get the red “Custom element doesn’t exist” box.

So, since this seems to be dead now with the 106 changes does anyone have any recommendations for another card with similar functionality?

hey all,

Ive created a fork here and merged all the pull requests into it: https://github.com/marksie1988/atomic_calendar

i havent managed to resolve this new issue but im going to work on it when i get chance.

If anyone else wants to do changes and add a pull request i will review and approve

EDIT: this issue is now resolved in v0.9.1

marksie1988

2 Likes

That’s awesome! Thanks for doing that.

It’s working great.

I know it’s a fork but I’m not sure how that could work with HACS. Have you looked into how you could get it to work there yet?

Maybe you could change the name a bit and add it that way since the original dev is MIA.

I’m currently working on getting this in HACS however you would need to add it as a custom repository:

marksie1988/atomic_calendar

This will then add it and once I commit the new hacs config file it will show up with the name Atomic Calendar Revive.

I’m hoping to do another commit today which will add a new feature to disable links on events as this was requested. Along with the hacs config files.

3 Likes

Awesome, thanks!

1 Like

Can somebody tell me what to change to display a 12 hour clock like Dino-Tech has above.

Hello!
0.107.6 does not work for me

Error:
Cannot read property ‘setConfig’ of undefined

Hey @novikov-ae,

What version of the card are you using? I have just checked and I dont see this issue using the latest version of the card and version 0.107.7 of Home Assistant

Hey @womp,

looking at dino-tech’s layout do you mean the clock showing above the calendar? if so this is not part of the Card, likely he is using something else to make it look like this.

1 Like

thank you, yes I was talking about that clock, I will look for a new clock card.

I have deleted the old atomic calendar (which was sort of working) and installed the new atomic-calendar-revive through hacs.
All the files are there in the directory.
I installed a basic test file as follows…

  - type: "custom:atomic-calendar-revive"
    name: "Calendar"
    entities:
    - entity: calendar.XXXXXX

I have also added the card into the new preloader card as well.
What I get as a diplay is the RSOD, Red screen of death so to speak.

Screenshot from 2020-04-11 12-32-07
What am I missing.
I am running v 0.108.3

Thanks
carltonb

Hey,

Thanks for posting this. I haven’t had chance to test this yet on v108 upwards.

Usually this error means that the JavaScript isn’t being loaded, Have you tried a restart of home assistant to make sure Lovelace has loaded the JavaScript correctly?

You can also check the browser console to make sure the atomic calendar Revive version is shown in the console, that will prove its loaded or not.

Got it working.
I should always remember to to a hard reset in the browser, now all is well.
The one thing I would like to do is remove the time progression line on an all day event. The line with a dot.
I do not need it but do not know in particular what code turns it on/off.
Thanks for the help.

This can be disabled by setting showProgressBar to false :slight_smile: