Yup, that was it. Thank you very much.
Can you give an example of the syntax please. I Cannon make it work
So, the good news is, custom Google Calendar component (in /custom_components) is no longer needed.
Unfortunately the built in “max_results” is not working in my case
TypeError: Got an unexpected keyword argument “max_results”
so I need to find what I did wrong (I’m sure it’s not my calendar’s fault) so can’t help right now
We just need the .js file @ www and lovelace resource reference?
Yes, only atomic-calendar.js in /www and ‘resource’ in lovelace configuration.
and optional max_results, if you want to show more than 5 days, in google_calendars.yaml (which is not working for me right now)
OK. I’ll delete the calendar and google directories. See if max_results works for me.
I can’t get the max_results to work, either. Has it something to do with defining/performing a search before showing a number of events? Do the max_results refer to the results of a search?
Deleting the custom component google works ok.
I’ve deleted all the google-related directory/files shown above without adverse effect. max_results
doesn’t appear at all related to your calendars’ function.
I’m also unable to get max_results to work. More information on that particular commit is here:
I found a bug in HA / Google Calendar component. I just submitted a fix on HA Github.
There are two options:
- Wait for new HA version (if my pull request pass) and have 5 events
- Use the custom google component, like before, updated instructions are here https://github.com/atomic7777/atomic_calendar/blob/master/README.md#6-how-to-show-more-than-5-events
now 4 files are needed. It works.
It’s not related to my calendar component. The bug is in calendar.py
Still can’ make it work. Shall I do any editing of the downloaded files - apart from changing the number in maxResults?
Is the folder under custom_components called google or calendar?
- folder name is /custom_components/google
- it has to be created in HA folder (where you have configuration.yaml file)
- download 4 files and changing ‘maxResults’ is the only change you need.
This way it will override the default (faulty) google component (it’s the standard way for overriding any HA component since v0.90)
EDIT: sorry, I had an error in readme, it’s/custom_components/google
. I was focused to fix it and had two versions. It’s corrected now, before 0.90 it wascalendar
, now it’sgoogle
.
Thank you, atomic. Is the file called calendar.py or google.py? It still looks to me as if HA system overrides custom_components and not the other way around.
But not a big problem. I can wait until a new release of HA that will fix the problem
Hey there,
I think I’ve found a bug.
When you leave the screen on (think wall-mounted tablet), the calendar will continue to show events that have already passed since the last real page refresh.
Secondly, I suggest to always display a block for today even if there are no appointments, e.g. “nothing scheduled for today”.
Thanks. I haven’t tested it enough (I don’t use it on my wall-mounted tablet yet) but I included a refresh timer and I thought it’s working, so it can be a bug.
The “nothing scheduled for today” text is a good idea, I will add it in next version. Probably end of this week.
Bluhme the file is calendar.py, located in custom_components/google folder. Sorry for mistakes, I’m trying to work on too many things at once.
That’s ok - of course.
Strange that it vill not work for me.
Has anyone else got it working?
I have 2 calendars on one page. One calendar has upcoming events and the second calendar has upcoming deliveries (UPS USPS Fedex, Amazon). I notice that when I change timeColor and timeSize on the first calendar it also changes on the second calendar even though I have different timeColor and timeSize settings for it. It wouldn’t be a big deal, but I like to set timeSize to 0 so it doesn’t show the time on the Deliveries calendar as it isn’t accurate for shipments. Any kind of work around to have the time show on one calendar, but not the other?
Thanks for the hard work and awesome card!!! Found a new place in the center of my design as the main attraction!!! @atomic77
Great card, thanks @atomic77!
I tried to follow the whole thread, still this feature might have been requested before: It would be cool to view different calendars in one card (event mode) with the name of the calendar beeing displayed before each event. So that wifes () can easily distinguish between the events origin, not only via the color of the event.
Anyway, thanks again, will be following your development from now on.