Read the statement by Michael Teeuw here.
I can't for the love of god understand what's wrong with my config
-
Re: Sync private iCloud calendar with MagicMirror
I followed this tutorial and was able to install and add everything as instructed (not without any issues but yes). I added the .ics file links to the calendar module in the config file but it just shows that there are no events.
I am relatively new to this and have no clue what am I doing wrong. I am able to discover and sync vdirsyncer. I do not get any errors. Could someone please help me out here?
I have attached my config file.
let config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "0.0.0.0", "::" to listen on any interface // Default, when address config is left out or empty, is "localhost" port: 8080, basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", locale: "en-US", logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging timeFormat: 24, units: "metric", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", position: "top_left", config: { broadcastPastEvents: true, // <= IMPORTANT to see past events calendars: [ { url: "http://localhost:8080/modules/calendars/D8CC2057-AD72-45D1-9AC7-942E8C2A5DD1.ics", name: "errinerungen", // <-- specify calendar name color: "skyblue", // <-- if you don't want to get color, just remove this line. broadcastPastEvents: true, // <-- need to broadcast past events maximalNumberOfDays: 30, // <-- how old events would be broadcasted maximumEntries: 100, // <-- assign enough number to prevent truncating new events by old events. symbol: 'camera', // <-- when you want to display simbol. If you don't want, just set as `symbol:[],` }, { name: "privat", symbol: "calendar-check", url: "http://localhost:8080/modules/calendars/9F91CE4D-8088-4518-9239-C4FCC3DA0EC4.ics", color: "red" }, { name: "arbeit", symbol: "calendar-check", url: "http://localhost:8080/modules/calendars/1AAA8AEA-457E-487D-92E2-3060BF33C468.ics", color: "purple" } ] } }, { module: "MMM-CalendarExt3Agenda", position: "top_left", header: "My Agenda", config: { instanceId: "basicCalendar", locale: 'en-US', firstDayOfWeek: 1, startDayIndex: -1, endDayIndex: 10, calendarSet: ['errinerungen', 'privat', 'arbeit'], } }, /*{ module: "compliments", position: "lower_third" },*/ { module: "weather", position: "top_right", config: { weatherProvider: "openmeteo", type: "current", lat: 52.2659, lon: 10.5267 } }, { module: "weather", position: "top_right", header: "Weather Forecast", config: { weatherProvider: "openmeteo", type: "forecast", lat: 52.2659, lon: 10.5267 } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "New York Times", url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") { module.exports = config; }
vdirsyncer discover
pi@raspberrypi:~ $ vdirsyncer discover Discovering collections for pair iCloud_to_MagicMirror Mirror: - "1AAA8AEA-457E-487D-92E2-3060BF33C468" - "9F91CE4D-8088-4518-9239-C4FCC3DA0EC4" - "D8CC2057-AD72-45D1-9AC7-942E8C2A5DD1" iCloud: - "1AAA8AEA-457E-487D-92E2-3060BF33C468" ("Arbeit") - "D8CC2057-AD72-45D1-9AC7-942E8C2A5DD1" ("Erinnerungen") - "9F91CE4D-8088-4518-9239-C4FCC3DA0EC4" ("Privat") Saved for iCloud_to_MagicMirror: collections = ["9F91CE4D-8088-4518-9239-C4FCC3DA0EC4", "D8CC2057-AD72-45D1-9AC7-942E8C2A5DD1", "1AAA8AEA-457E-487D-92E2-3060BF33C468"]
vdirsyncer sync
pi@raspberrypi:~ $ vdirsyncer sync Syncing iCloud_to_MagicMirror/9F91CE4D-8088-4518-9239-C4FCC3DA0EC4 Syncing iCloud_to_MagicMirror/D8CC2057-AD72-45D1-9AC7-942E8C2A5DD1 Syncing iCloud_to_MagicMirror/1AAA8AEA-457E-487D-92E2-3060BF33C468
-
@bougle if you edit the synced ics file, are there events present?
ics is just a text file -
@bougle said in I can't for the love of god understand what's wrong with my config:
http://localhost:8080/modules/calendars/D8CC2057-AD72-45D1-9AC7-942E8C2A5DD1.ics
is the synced ics IN the modules folder tree??
you had to MAKE that calendars folder, right?it MUST be in the MagicMirror folder tree to use localhost:8080
-
@bougle
Trylet config = {address: "0.0.0.0", …….
And
url: "http://0.0.0.0:8080/modules/calendars……..
Worked for me.
Br Chris
-
@chrisfr1976 technically you shouldn’t need this
“0.0.0.0” means listen on all active network interfaces (wifi and ethernet) without having to specify their addresses ( which would be impossible to do for multiple interfaces)
the http://0.0.0.0:8080 makes no sense to me , unless they coded in a hack to say keep looking for whatever interface works. although localhost does that same thing
the other thing “0.0.0.0” does is allow incoming requests from outside this system, where localhost restricts incoming request to ONLY apps on this same system
-
@sdetweil Thank you for your reply.
Yes I do already have all the three .ics files in
~/MagicMirror/modules/calendars
-
@chrisfr1976 Thanks for the suggestion. I will try it out today and report back.
-
@bougle ok, next, can you look at the output of npm start and see the message
broadcasting xxx events for calendar —url----
for each url? -
@bougle make any progress?
-
@sdetweil
Sorry for the late reply. Super swamped because of university.here is the log:
[2024-11-09 10:34:54.714] [INFO] Checking git for module: MMM-CalendarExt3Agenda [2024-11-09 10:34:55.000] [INFO] Calendar-Fetcher: Broadcasting 0 events from http://0.0.0.0:8080/modules/calendars/9F91CE4D-8088-4518-9239-C4FCC3DA0EC4.ics. [2024-11-09 10:34:55.041] [INFO] Calendar-Fetcher: Broadcasting 0 events from http://0.0.0.0:8080/modules/calendars/D8CC2057-AD72-45D1-9AC7-942E8C2A5DD1.ics. [2024-11-09 10:34:55.055] [INFO] Calendar-Fetcher: Broadcasting 0 events from http://0.0.0.0:8080/modules/calendars/1AAA8AEA-457E-487D-92E2-3060BF33C468.ics.
It shows that there are 0 events. And btw, the .ics files are completely empty.