@sdetweil lol yes, all is working. it wasn’t updating when I downloaded the ics file and moved it to /default/calendar. I changed it to what I have in my most recent comment and that is working without issue.
Read the statement by Michael Teeuw here.
Best posts made by BasicUser
-
RE: Default calendar and Nextcloud CalDav
Latest posts made by BasicUser
-
RE: Default Calendar & Nextcloud Calendar - CERT_HAS_EXPIRED
@sdetweil I got it figured out by just running
npm install request
in~/MagicMirror/
Not super sure what you’re referring to when you say see above though.
-
RE: Default Calendar & Nextcloud Calendar - CERT_HAS_EXPIRED
@sdetweil I went the
git pull && npm install
route but now MM will not load0|MagicMirror | Initializing new module helper ... 0|MagicMirror | [01.10.2021 15:25.04.722] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify 0|MagicMirror | [01.10.2021 15:25.04.724] [LOG] No helper found for module: MMM-PlexNowPlaying. 0|MagicMirror | [01.10.2021 15:25.04.729] [ERROR] App threw an error during load 0|MagicMirror | [01.10.2021 15:25.04.734] [ERROR] Error: Cannot find module 'request' 0|MagicMirror | Require stack: 0|MagicMirror | - /home/pi/MagicMirror/modules/MMM-learnlanguage/node_helper.js 0|MagicMirror | - /home/pi/MagicMirror/js/app.js 0|MagicMirror | - /home/pi/MagicMirror/js/electron.js 0|MagicMirror | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMirror | - 0|MagicMirror | at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) 0|MagicMirror | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 0|MagicMirror | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMirror | at Module._load (internal/modules/cjs/loader.js:732:27) 0|MagicMirror | at Function.f._load (electron/js2c/asar_bundle.js:5:12913) 0|MagicMirror | at Module.require (internal/modules/cjs/loader.js:959:19) 0|MagicMirror | at require (internal/modules/cjs/helpers.js:88:18) 0|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-learnlanguage/node_helper.js:8:15) 0|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) 0|MagicMirror | [01.10.2021 15:25.04.738] [ERROR] 0|MagicMirror | Whoops! There was an uncaught exception... 0|MagicMirror | [01.10.2021 15:25.04.755] [ERROR] 0|MagicMirror | Error: Cannot find module 'request' 0|MagicMirror | Require stack: 0|MagicMirror | - /home/pi/MagicMirror/modules/MMM-learnlanguage/node_helper.js 0|MagicMirror | - /home/pi/MagicMirror/js/app.js 0|MagicMirror | - /home/pi/MagicMirror/js/electron.js 0|MagicMirror | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMirror | - 0|MagicMirror | at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) 0|MagicMirror | at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) 0|MagicMirror | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMirror | at Module._load (internal/modules/cjs/loader.js:732:27) 0|MagicMirror | at Function.f._load (electron/js2c/asar_bundle.js:5:12913) 0|MagicMirror | at Module.require (internal/modules/cjs/loader.js:959:19) 0|MagicMirror | at require (internal/modules/cjs/helpers.js:88:18) 0|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-learnlanguage/node_helper.js:8:15) 0|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:1078:30) 0|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { 0|MagicMirror | code: 'MODULE_NOT_FOUND', 0|MagicMirror | requireStack: [ 0|MagicMirror | '/home/pi/MagicMirror/modules/MMM-learnlanguage/node_helper.js', 0|MagicMirror | '/home/pi/MagicMirror/js/app.js', 0|MagicMirror | '/home/pi/MagicMirror/js/electron.js', 0|MagicMirror | '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', 0|MagicMirror | undefined 0|MagicMirror | ] 0|MagicMirror | } 0|MagicMirror | [01.10.2021 15:25.04.757] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMirror | [01.10.2021 15:25.04.759] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMirror | [01.10.2021 15:25.05.202] [LOG] 0|MagicMirror | Launching application.
any ideas?
-
Default Calendar & Nextcloud Calendar - CERT_HAS_EXPIRED
I had to reset some stuff on my Mirror and now I cannot get my calendars to sync between my mirror and my Nextcloud calendars.
This is the logs that I get when it tries to run a fetch.
pi@raspberrypi:~/MagicMirror/config $ pm2 logs MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines: 0|MagicMir | [30.09.2021 18:17.48.972] [LOG] Create new calendarfetcher for url: https://subdomain.domain.tld/remote.php/dav/calendars/MAINUSER/personal/?export - Interval: 100000 0|MagicMir | [30.09.2021 18:17.49.194] [LOG] Create new calendarfetcher for url: https://subdomain.domain.tld/remote.php/dav/calendars/SHARED CALENDAR/shared/?export - Interval: 100000 0|MagicMir | [30.09.2021 18:17.49.202] [LOG] Create new calendarfetcher for url: https://subdomain.domain.tld/remote.php/dav/calendars/SHARED CALENDAR/shared-events/?export - Interval: 100000 0|MagicMir | [30.09.2021 18:17.49.208] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 100000 0|MagicMir | [30.09.2021 18:17.49.348] [INFO] Checking git for module: MMM-Remote-Control 0|MagicMir | [30.09.2021 18:17.49.491] [INFO] Checking git for module: MMM-EasyBack 0|MagicMir | [30.09.2021 18:17.49.577] [INFO] Checking git for module: MMM-Todoist 0|MagicMir | [30.09.2021 18:17.49.653] [INFO] Checking git for module: MMM-NowPlayingOnSpotify 0|MagicMir | [30.09.2021 18:17.49.738] [INFO] Checking git for module: MMM-PlexNowPlaying 0|MagicMir | [30.09.2021 18:17.49.823] [INFO] Checking git for module: MMM-learnlanguage 0|MagicMir | [30.09.2021 18:17.50.225] [INFO] Checking git for module: MMM-WordOfTheDay 0|MagicMir | [30.09.2021 18:17.50.298] [LOG] Refreshed access token because it has expired. Expired at: 18:17:49 now is: 18:17:50 0|MagicMir | [30.09.2021 18:17.50.652] [INFO] Checking git for module: MMM-MyScoreboard 0|MagicMir | [30.09.2021 18:17.50.938] [LOG] Refreshed access token because it has expired. Expired at: 19:17:50 now is: 18:17:50 0|MagicMir | [30.09.2021 18:17.51.189] [INFO] Calendar-Fetcher: Broadcasting 5 events. /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: 0|MagicMir | code: 'CERT_HAS_EXPIRED' 0|MagicMir | } 0|MagicMir | [30.09.2021 18:17.50.035] [ERROR] Calendar Error. Could not fetch calendar: https://subdomain.domain.tld/remote.php/dav/calendars/SHARED CALENDAR/shared/?export FetchError: request to https://subdomain.domain.tld/remote.php/dav/calendars/SHARED CALENDAR/shared/?export failed, reason: certificate has expired 0|MagicMir | at ClientRequest.<anonymous> (/home/pi/MagicMirror/node_modules/node-fetch/lib/index.js:1461:11) 0|MagicMir | at ClientRequest.emit (events.js:315:20) 0|MagicMir | at TLSSocket.socketErrorListener (_http_client.js:426:9) 0|MagicMir | at TLSSocket.emit (events.js:315:20) 0|MagicMir | at emitErrorNT (internal/streams/destroy.js:92:8) 0|MagicMir | at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) 0|MagicMir | at processTicksAndRejections (internal/process/task_queues.js:84:21) 0|MagicMir | { 0|MagicMir | type: 'system', 0|MagicMir | errno: 'CERT_HAS_EXPIRED', 0|MagicMir | code: 'CERT_HAS_EXPIRED' 0|MagicMir | }
I’m assuming this is on my Nextcloud and not on MM but figured I would post in here to see if anyone has been able to solve this issue before? My nextcloud is selfhosted and behind a reverse proxy.
-
RE: Default calendar and Nextcloud CalDav
@sdetweil lol yes, all is working. it wasn’t updating when I downloaded the ics file and moved it to /default/calendar. I changed it to what I have in my most recent comment and that is working without issue.
-
RE: Default calendar and Nextcloud CalDav
@sdetweil This might just be my ignorance but I have added an item to my calendar after it was working to see if it would pull the new event. To my dismay it has not pulled the newest item. Are ICS files static or do they update dynamically?
edit: final edit.
{ symbol: "calendar", url: "https://nextcloud.MYDOMAIN.xyz/remote.php/dav/calendars/USER/personal/?export", user: "USER", pass: "PASSW", method: "basic", },
updated my config file to this and it is now working as expected. no idea why it wasnt before but i probably had something typed out incorrectly. thanks for the help
-
RE: Default calendar and Nextcloud CalDav
@sdetweil hmm
{ symbol: "calendar", url: "http://localhost:8080/modules/default/calendar/personal.ics", user: "USER", pass: "PASSW", method: "basic", }
It is saying “No upcoming events” still. I put a test event for tomorrow so that I know there should be one.
I ran
pm2 logs --lines=150 | grep calendar
0|mm | [2020-08-19 17:47:12.740] [LOG] Connecting socket for: calendar 0|mm | [2020-08-19 17:47:12.744] [LOG] Starting node helper for: calendar 0|mm | [2020-08-19 17:47:23.028] [LOG] Create new calendar fetcher for url: https://nextcloud.MYDOMAIN.xyz/remote.php/dav/calendars/USER/personal/ - Interval: 300000 0|mm | [2020-08-19 17:50:06.402] [LOG] Module helper loaded: calendar 0|mm | [2020-08-19 17:50:08.524] [LOG] Connecting socket for: calendar 0|mm | [2020-08-19 17:50:08.528] [LOG] Starting node helper for: calendar 0|mm | [2020-08-19 17:50:19.043] [LOG] Create new calendar fetcher for url: https://nextcloud.MYDOMAIN.xyz/remote.php/dav/calendars/USER/personal/ - Interval: 300000 0|mm | [2020-08-19 17:50:19.152] [LOG] Create new calendar fetcher for url: http://localhost:8080/modules/calendar/personal.ics - Interval: 300000 0|mm | [2020-08-19 17:52:41.135] [LOG] Module helper loaded: calendar 0|mm | [2020-08-19 17:52:43.207] [LOG] Connecting socket for: calendar 0|mm | [2020-08-19 17:52:43.210] [LOG] Starting node helper for: calendar 0|mm | [2020-08-19 17:52:53.215] [LOG] Create new calendar fetcher for url: https://nextcloud.MYDOMAIN.xyz/remote.php/dav/calendars/USER/personal/ - Interval: 300000 0|mm | [2020-08-19 17:52:53.278] [LOG] Create new calendar fetcher for url: http://localhost:8080/modules/calendar/personal.ics - Interval: 300000 0|mm | [2020-08-19 17:55:50.824] [LOG] Module helper loaded: calendar 0|mm | [2020-08-19 17:55:53.057] [LOG] Connecting socket for: calendar 0|mm | [2020-08-19 17:55:53.060] [LOG] Starting node helper for: calendar 0|mm | [2020-08-19 17:56:03.286] [LOG] Create new calendar fetcher for url: https://nextcloud.MYDOMAIN.xyz/remote.php/dav/calendars/USER/personal/ - Interval: 300000 0|mm | [2020-08-19 17:56:03.364] [LOG] Create new calendar fetcher for url: http://localhost:8080/modules/default/calendar/personal.ics - Interval: 300000
edit:
more recent logs0|mm | Use existing calendar fetcher for url: http://localhost:8080/modules/default/calendar/personal.ics 0|mm | [2020-08-19 18:06:02.407] [INFO] Calendar-Fetcher: Broadcasting 0 events. 0|mm | [2020-08-19 18:06:02.559] [INFO] 0|mm | Calendar-Fetcher: Broadcasting 0 events. 0|mm | [2020-08-19 18:06:02.608] [INFO] 0|mm | Calendar-Fetcher: Broadcasting 0 events. 0|mm | [2020-08-19 18:06:14.339] [INFO] 0|mm | Calendar-Fetcher: Broadcasting 0 events.
EDIT2: It is working now, my downloaded ics file was bad apparently. I redownloaded it and now it is working as expected, I think.
-
RE: Default calendar and Nextcloud CalDav
@sdetweil okay, i didnt have a calendar folder in modules so i created one and changed my config file to
{ symbol: "calendar", url: "modules/calendar/personal.ics", user: "USERNAME", pass: "PASSWORD", method: "basic", }
but it still didnt solve the issue
-
Default calendar and Nextcloud CalDav
I am attempting to get my nextcloud caldav calendar to work with the default calendar module.
I am trying to download my calendar locally as I don’t think I can get an ics link through nextcloud without addning “?export” to the end of the URI.
I run
curl -L https://nextcloud.mydomain.com/remote.php/dav/calendars/USER/personal/?export > . ~/MagicMirror/modules/cals/personal.ics
In my config.js file I have
{ symbol: "calendar", url: "http://localhost:8080/~/MagicMirror/modules/cals/personal.ics", user: "USERNAME", pass: "PASSWORD", method: "basic", }
I have put this together with some of the other forum posts on here but I seem to have gotten something wrong or something has changed.
Anyone know how to get this working?