Read the statement by Michael Teeuw here.
Google Calendar issues
-
New to the forum - please be nice :)
I just started setting everything up last night and I cannot get my Google Calendar to show events. I have done many hours of research when it comes to the API, etc and everything is working. I can get the events to show up when I use the default calendar and just add the my google calendar public ics.
But i would like to show the entire month along with the events - not just the events.
Any help would be awesome. Below is my current code:
/* MagicMirror² Config Sample * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. * * For more information on how you can configure this file * see https://docs.magicmirror.builders/configuration/introduction.html * and https://docs.magicmirror.builders/modules/configuration.html * * You can use environment variables using a `config.js.template` file instead of `config.js` * which will be converted to `config.js` while starting. For more information * see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables */ 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: 12, units: "imperial", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "MMM-MonthlyCalendar", //header: "US Holidays", position: "bottom_bar", config: { mode: "currentMonth", calendars: [ { fetchInterval: 7 * 24 * 60 * 60 * 1000, //symbol: "calendar-month", url: "ttps://calendar.google.com/calendar/ical/xxxxxxx81%40gmail.com/private-9059ef2136e455aa1fb835f086a9a788/basic.ics", //timeFormat: "relative", //dateFormat: "MMM Do", //url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics" } ] } }, { module: "weather", position: "top_right", config: { weatherProvider: "openweathermap", type: "current", location: "Sidney", locationID: "5172078", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "91e6add934ff2f210cd11c994ab94528", roundTemp: true } }, { module: "weather", position: "top_right", // header: "Weather Forecast", config: { weatherProvider: "openweathermap", type: "forecast", location: "Sidney", locationID: "5172078", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "91e6add934ff2f210cd11c994ab94528", fade: false, roundTemp: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") { module.exports = config; } -
-
@sdetweil - Thanks for the reply - fixed it and same issue :(
-
@1lolo94 ok that’s not the default calendar, so I don’t know.
-
@1lolo94 if you use the url in a browser does it download the ICS file?
-
@sdetweil Yes it does.
-
@1lolo94 can u show the messages were you start mm, npm start .
if you use pm2, then
pm2 logs --lines=50
-
@sdetweil - can you explain more on what you’re requesting? Sorry!! I just started all this last night
-
@1lolo94 when MagicMirror starts, using the command npm start, the components that run on the server side output message to the terminal window.
if you used my script to install, and said yes to use pm2 to autostart,
then the pm2 command launches a little script, which issues the npm start command, and captures that output for display or review later.
then you can use the command
pm2 logs --lines=nnn
where nnn is a number of lines to display. default 15
one thing to know about Linux.
by convention, each command outputs it’s command parms when executed with --helpso
pm2 --help -
@sdetweil tried it and this is what i see
[28.01.2024 19:05.36.543] [INFO] updatenotification: You are not using pm2
-
@1lolo94 need more lines
-
magicmirror@2.26.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[28.01.2024 19:05.32.973] [LOG] Starting MagicMirror: v2.26.0
[28.01.2024 19:05.32.981] [LOG] Loading config …
[28.01.2024 19:05.32.986] [DEBUG] config template file not exists, no envsubst
[28.01.2024 19:05.32.993] [LOG] Loading module helpers …
[28.01.2024 19:05.32.996] [LOG] No helper found for module: alert.
[28.01.2024 19:05.33.066] [LOG] Initializing new module helper …
[28.01.2024 19:05.33.067] [LOG] Module helper loaded: updatenotification
[28.01.2024 19:05.33.069] [LOG] No helper found for module: clock.
[28.01.2024 19:05.33.070] [LOG] No helper found for module: MMM-MonthlyCalendar.
[28.01.2024 19:05.33.073] [LOG] No helper found for module: weather.
[28.01.2024 19:05.33.074] [LOG] All module helpers loaded.
[28.01.2024 19:05.33.091] [LOG] Starting server on port 8080 …
[28.01.2024 19:05.33.494] [LOG] Server started …
[28.01.2024 19:05.33.496] [LOG] Connecting socket for: updatenotification
[28.01.2024 19:05.33.498] [LOG] Starting module helper: updatenotification
[28.01.2024 19:05.33.499] [LOG] Sockets connected & modules started …
[28.01.2024 19:05.33.535] [LOG] Launching application.
[28.01.2024 19:05.36.493] [INFO] updatenotification: Updater Class Loaded!
[28.01.2024 19:05.36.494] [INFO] updatenotification: Checking PM2 using…
[28.01.2024 19:05.36.543] [INFO] updatenotification: You are not using pm2
[28.01.2024 19:05.36.681] [INFO] Checking git for module: MMM-MonthlyCalendar
[28.01.2024 19:05.36.718] [INFO] Checking git for module: MagicMirror
[28.01.2024 19:05.40.617] [LOG] Shutting down server…
[28.01.2024 19:05.40.618] [LOG] Stopping module helper: updatenotification
[28.01.2024 19:05.40.619] [LOG] Node_helpers stopped … -
@1lolo94 said in Google Calendar issues:
MMM-MonthlyCalendar
ok, that is an add on calendar module
which appears to do all its operations in the browser side.
so on the running mm screen, press ctrl-shift-i ,
to open the developers window, and the select the console tab, and enter a unique part of the module name in the filter field, to show just the messages from that module , so month -
I noticed that in the config file you included in a previous post that you do NOT have the default calendar module in there. My thoughts are that this MMM-MonthlyCalendar has some dependency on that the default module, and without it noted in the config you aren’t getting what you expect.
As a STARTING point I would recommending adding this to your config file. I’d suggest making sure THAT calendar is working. If it DOES show Holidays but your Google calendar is still NOT working, I would suggest removing the US Holiday link and replace it with your Google calendar link. Then try again.
Additionally, the config options for that module you are trying to use does NOT show url as a config option. That likely has to be called from the default module. A concern I am sure you are having is that you don’t want to SEE the default module. I HIGHLY recommend that you use it for the purposes of troubleshooting. Once you get to a point where the MMM-MonthlyCalendar starts working, simply remove or comment out the POSITION line for the default calendar module in your config.
Also, did you edit any of the files in the modules in any way? If so, you may want to remove them and install the module again.
{ module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { fetchInterval: 7 * 24 * 60 * 60 * 1000, symbol: "calendar-check", url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics" } ] } }, -
@ZiggidyZ you do not have to install again
each module installed (cloned) from GitHub includes the git source repository too.so
git checkout filename
will restore filename to its repo contentsgit status will tell you which files changed,and
git diff will show you the changes -
Thank you!! Good to know! I am not very good with Linux, knowing only enough to really foul things up.
-
@ZiggidyZ no problem
we all learn as we go… I learn new stuff every day.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login