Got it, Thank you! @sdetweil
Read the statement by Michael Teeuw here.
Posts
-
RE: Default Calendar Custom Events
@sdetweil Where am I supposed to put the calendar URL in again? not sure I am understanding.
-
RE: Default Calendar Custom Events
@sdetweil This is useful, thanks. Based on that I now have this…
{ module: "calendar", header: "Celebrations", position: "top_left", config: { colored: true, customEvents: [ {keyword: 'Birthday', symbol: 'birthday-cake', color: 'Gold'}, {transform: { search: '^([^\']*) \'(\\d{4})$', replace: '$1 ($2.)', yearmatchgroup: 2}} ], calendars: [ { fetchInterval: 7 * 24 * 60 * 60 * 1000, symbol: "calendar-check", maximumEntries: "8", url: "https://calendar.google.com/xxxxxxxxxxxxxxxxxxxxxxxxx/basic.ics" } ] } },I can get the colours working if I comment out the transform. as soon as I enable that calendar does not load. Can you see any errors in the transform string?
Thanks
-
RE: Default Calendar Custom Events
@sdetweil When I put it outside the Calendar:[] I can’t get it to load.
Do you have a example how it should look, I have searched other posts relating to custom events but can’t suss it.
Apologies I am a noob at this :-)
-
Default Calendar Custom Events
Hi All,
I am looking to create a custom event for the default calendar and I can’t get the example in the guide to work.
https://docs.magicmirror.builders/modules/calendar.html#configuration-options
Here is my code …
{ module: "calendar", header: "Celebrations", position: "top_left", config: { calendars: [ { fetchInterval: 7 * 24 * 60 * 60 * 1000, symbol: "calendar-check", maximumEntries: "8", customEvents: [{keyword: 'Birthday', symbol: 'birthday-cake', color: 'Gold', transform: { search: '^([^\']*) \'(\\d{4})$', replace: '$1 ($2.)', yearmatchgroup: 2}}], url: "https://calendar.google.comxxxxxxxxxxxxxxxxxxxxxxxxxbasic.ics" } ] } },No matter what I try I can’t get the symbols to change to the cake icon or have the birth year transformed to the persons age.
All my calendar events are titled “DoogyRev Birthday '1982” a per the example. Has any one got this to work? any suggestions welcome.
Thanks
DoogyRev
-
RE: Are you tired of editing config.js, or have trouble doing it, see my new module
@sdetweil Works like a champ! Thank you for looking in to this and fixing.
-
RE: Are you tired of editing config.js, or have trouble doing it, see my new module
@sdetweil I just emailed you the file, and yes I am setting the positions using the positions drop down menu at the bottom.
-
RE: Are you tired of editing config.js, or have trouble doing it, see my new module
Hi All,
I reinstalled my MM this week and decided to use this module to do the configurations. Its all installed and I can see all my modules, however it seems to be hit and miss on enabling and setting the positions. for example,
default clock - this would not enable, I manually enabled it in the config and now shows Blue but can not set the position, either from the page or in the config.
Default calendar - this enabled ok, shows blue, but can not set the position, does not save
MMM-OpenWeatherForecast - works perfectly
newsfeed - works perfectly.
Any ideas on why some modules seem to be hit or miss?
Sorry for the thread resurrection, was not sure where to post.
Thanks
-
RE: How to add custom birthdays to the calendar module?
@sdetweil If it was set back to 2 tables columns
Column 1 = Name + Age + Align Left
Column 2 = Date + Align rightWould that work? Guess it depends if you can put Name + Age in the same cell space
-
RE: How to add custom birthdays to the calendar module?
@sdetweil This is what I have now…

just wondering if this makes more sense? (quick photoshop)

Sorry if I am being a PITA
-
RE: How to add custom birthdays to the calendar module?
although, thinking about it would it look better if of the age was directly following the name, and the date is fixed to the far right . .
doogyrev (47)___________Oct 12th
Dave (26)________________Jan 1stvs
doogyrev______(47) Oct 12th
Dave_____(26)______Jan 1stIf that ^^ makes sense?
-
RE: How to add custom birthdays to the calendar module?
@sdetweil that looks awesome, exactly how I was wanting it to look
-
RE: How to add custom birthdays to the calendar module?
Unless I have done something dumb (which is entirely possible) this is whatI get, Count +1 seems to work (I am 1 entry less) but double date just removed the date not adding entry to a new table line.

-
RE: How to add custom birthdays to the calendar module?
I figured they were in the same cell since the colours are linked, but that’s beyond my feeble abilities …haha
This is where I am at, going to make some new icons to match the default, I found the one used, so just need to change the colours.

how do I change the cell height? I removed the existing icon and the cell height stayed the same? even changing the vertical height in the css made no difference. Also I assume the “Aug 12th” double entry’s are in the same cell, is it possible to put them in individual?
-
RE: How to add custom birthdays to the calendar module?
Thanks Again, I appreciate the help and assistance!!
I will check that out. I am what I class as a non-technical-technical . . . i.e I know a small amount, probably enough to be dangerous . .TBH, I am just chuffed I have managed to maintain my Mirror for the last 5years . . lol
I might be back if I can’t work it out :-)
-
RE: How to add custom birthdays to the calendar module?
Installed and working :-) Thanks for looking at this for me!
I am going to play with the CSS and change some of the colours a bit. I did notice the following . .
-
If birthdays are shared date, then the second/third entry is in bold (see screen shot Aug 12th)
-
when you specify number of entires it adds additional, I specified 5, but 6 are showing
-
is it possible to have date aligned right and keep age after the name “doogyrev Birthday [45] Oct 1st”
-
where do I change font to not be all uppercase?

-
-
RE: How to add custom birthdays to the calendar module?
@sdetweil said in How to add custom birthdays to the calendar module?:
That sounds great and yes that’s kinda what I was looking for, the month cross over sounds good, This is how I have the default where it will only show the next 5 holidays so have the birthdays work the same way (or as near as), then past birthdays for the month drop off the list

-
RE: How to add custom birthdays to the calendar module?
@sdetweil This works great, thanks again!. How easy would it be to have this updated to match the look and feel of the default calendar? Something like this for example…
Dave Birthday [37] Jul 10th
My Anniversary [12] Aug 15th
Walter Birthday [52] Oct 23rdAnd also to show the next 5 or 10 events rather than the next 30days?
-
RE: How to add custom birthdays to the calendar module?
@sdetweil Well that’s awesome!, thank you sir! I will give it a try later.
-
RE: How to add custom birthdays to the calendar module?
@sdetweil I have had my mirror for 5 years and back in the day we could link to a csv file that would display in the calendar. This feature was removed in favour of cloud calendar integration. I am looking for something like this also as I was to be able to add birthdays/anniversaries that are not in my google calendar, with out having to add them to it