Read the statement by Michael Teeuw here.
Can't get google calendar on MM with MMM-CalendarExt2
-
Hello,
I would like to display my Google Calendar on my Magic Mirror using MMM-CalendarExt2.
From the “Simple Example” of the documentation, I have tried this in the config.js :
{
module: ‘MMM-CalendarExt2’,
config: {
calendars : [
{ name: “Google_Calendar”,
url: “https://calendar.google.com/calendar/ical/********%40gmail.com/public/basic.ics”,
},
],
views: [
{
name: “View_1”,
mode: “month”,
position: “full_screen_below”,
calendars: [“Google_Calendar”],
},
],
scenes: [
{
name: “DEFAULT”,
views: [“View_1”],
},
],
},
},
I also tried with my private url for google calendar:
url: “https://calendar.google.com/calendar/ical/greevanspic%40gmail.com/private-**********************/basic.ics”
But I have obtained nothing on my magic mirror.
I would be grateful if you could tell me what is wrong with my code or recommend me the simplest module and configuration to use because I am new to magic mirror.
Thank you very much in advance.
alphanet -
@alphanet if you put the url in a browser on your pi, does it download theics file with contents?
the ics file is just text, don’t just double click.opem as it will try to add duplicate cal entries
-
@alphanet here’s a working example. I’m editing this out of my live config, in this editor, so the brackets may not be correct, but you get all the sections. feel free to compare and adjust accordingly.
config: { calendars : [ { url: "<Private ICS link>", name: "Main", // Optional, Recommended maxItems: 1, scanInterval: 1000*60*.5, // every 30 seconds, Appt Book, needs this speed beforeDays: 0, afterDays: 365, forceLocalTZ: false, }, ], views: [ { mode: "upcoming", position: "top_right", slotTitle: "Next Up:", slotCount: 1, maxItems: 1, useEventTimeRelative: false, dateTimeFormat: { sameDay: "[Today] h:mm A", nextDay: "[Tomorrow] h:mm A", nextWeek: "dddd h:mm A", lastDay: "[Yesterday] h:mm A", lastWeek: "[Last] ddd h:mm A", sameElse: "M/D h:mm A" }, timeFormat: "LT", hideOverflow: false, filterPassedEvent: true, name: "schedule", className: "remove_empty_slot", calendars: ["Main"], transform: function(event) { if (event.title.search("Bowling") > -1) { event.icon = "fxemoji:bowling"; event.className = "bowling"; } return event; }, }, scenes: [ { name: "DEFAULT", }, ], }, },
-
Thank you sdetweil for your reply.
I’ve just tried to put the url in my browser on my pi, it downloads a file where I can see the events of my google calendar.
So the url must be ok to use in my config.js file, that’s an interesting test and good to know.
Thanks for your help.
alphanet
-
Thank you so much BKeyport for your help and for sharing your ineresting working example.
Using it, I have just got the connection with my google calendar in Magic Mirror at last !.
I have still plenty of things to understand and options to adjust as I would like to see the month template like my google agenda.
But I am very grateful for your decisive help at this crucial step and for offering me a good basis to go further !Cordial greetings.
alphanet