@sdetweil Sorry, I missed the second one in ical.js. It works now! Thanks so much for your help.
Read the statement by Michael Teeuw here.
Posts
-
RE: Calendar has stopped working
-
RE: Calendar has stopped working
@sdetweil Thank you, but I can only find 1 place in ical.js. There is one place in calendarutils.js but it is:
if(msTZName === ‘Customized Time Zone’){The whole error I get is:
[19.09.2022 21:46.41.439] [DEBUG] Search for recurring events between: Mon Sep 19 2022 21:46:41 GMT-0400 (Eastern Daylight Time) and Mon Sep 18 2023 23:59:59 GMT-0400 (Eastern Daylight Time)
[19.09.2022 21:46.41.441] [DEBUG] Title: Tentative: XX, with dates: [null,null]
[19.09.2022 21:46.41.442] [DEBUG] event.recurrences: [object Object]
[19.09.2022 21:46.41.449] [ERROR] Calendar Error. Could not fetch calendar: https://outlook.office365.com/owa/calendar/4d70fc7a1bf94d5ab75018902050b8f9@tssg.ca/XXXXXXcalendar.ics RangeError: Invalid time value
at Date.toISOString (:null:null)
at /home/pi/MagicMirror/modules/default/calendar/calendarutils.js:314:28
at Array.forEach (:null:null)
at Object.filterEvents (/home/pi/MagicMirror/modules/default/calendar/calendarutils.js:142:24)
at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:74:29
at processTicksAndRejections (node:internal/process/task_queues:96:5) -
RE: Calendar has stopped working
@sdetweil said in Calendar has stopped working:
cd ~/MagicMirror/modules/default/calendar
Thanks for this. It didn’t exactly work. It definitely got further than before but I ended up with this error.
Invalid time value
at Date.toISOString (:null:null)
at /home/pi/MagicMirror/modules/default/calendar/calendarutils.js:314:28
at Array.forEach (:null:null)
at Object.filterEvents (/home/pi/MagicMirror/modules/default/calendar/calendarutils.js:142:24)
at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:74:29
at processTicksAndRejections (node:internal/process/task_queues:96:5) -
RE: Calendar has stopped working
@sdetweil Your help is greatly appreciated. It really is a great feature we constantly use for the family to keep everyone informed. If you can suggest a fix, that would be awesome.
-
RE: Calendar has stopped working
@sdetweil Thanks for all your help.
These are the last 4 or so entries. It seems that it’s trying to pick up entries from 2021 and then comes across an old entry that it can’t parse.
{“type”:“VEVENT”,“params”:[],“uid”:“040000008200E00074C5B7101A82E0080000000093B227D5977DD701000000000000000010000000E1C248455EE3E241BFC9D2FBFB730A57”,“summary”:“Materials Due - MunichRe - Speaking & Writing Communication Skills”,“start”:$
[18.09.2022 22:22.12.572] [DEBUG] start: Tue Sep 21 2021 09:00:00 GMT-0400 (Eastern Daylight Time)
[18.09.2022 22:22.12.573] [DEBUG] end:: Tue Sep 21 2021 09:30:00 GMT-0400 (Eastern Daylight Time)
[18.09.2022 22:22.12.573] [DEBUG] duration: 1800000
[18.09.2022 22:22.12.573] [DEBUG] title: Materials Due - MunichRe - Speaking & Writing Communication Skills
[18.09.2022 22:22.12.574] [DEBUG] Processing entry…
[18.09.2022 22:22.12.574] [DEBUG] Event:
{“type”:“VEVENT”,“params”:[],“uid”:“040000008200E00074C5B7101A82E00800000000EBF569C6329CD7010000000000000000100000007A6D0A4DBF5A8C43863B8DBA1D58CFC5”,“summary”:“DIANA - Calendly”,“start”:“2021-09-21T17:30:00.000Z”,“datetype”:“date-time”,$
[18.09.2022 22:22.12.575] [DEBUG] start: Tue Sep 21 2021 13:30:00 GMT-0400 (Eastern Daylight Time)
[18.09.2022 22:22.12.575] [DEBUG] end:: Tue Sep 21 2021 15:00:00 GMT-0400 (Eastern Daylight Time)
[18.09.2022 22:22.12.576] [DEBUG] duration: 5400000
[18.09.2022 22:22.12.576] [DEBUG] title: DIANA - Calendly
[18.09.2022 22:22.12.577] [DEBUG] Processing entry…
[18.09.2022 22:22.12.577] [DEBUG] Event:
{“type”:“VEVENT”,“params”:[],“rrule”:{“_cache”:{“all”:false,“before”:[],“after”:[],“between”:[]},“origOptions”:{“tzid”:“undefined”,“dtstart”:“2021-09-21T22:30:00.000Z”,“freq”:2,“until”:“2021-11-23T23:30:00.000Z”,“interval”:1,“byweekday”:$
[18.09.2022 22:22.12.578] [DEBUG] start: Tue Sep 21 2021 18:30:00 GMT-0400 (Eastern Daylight Time)
[18.09.2022 22:22.12.578] [DEBUG] end:: Tue Sep 21 2021 21:30:00 GMT-0400 (Eastern Daylight Time)
[18.09.2022 22:22.12.579] [DEBUG] duration: 10800000
[18.09.2022 22:22.12.579] [DEBUG] title: Sarah ASL 1C (Units 7-9)
[18.09.2022 22:22.12.580] [DEBUG] Search for recurring events between: Sun Sep 18 2022 22:22:12 GMT-0400 (Eastern Daylight Time) and Sun Sep 17 2023 23:59:59 GMT-0400 (Eastern Daylight Time)
[18.09.2022 22:22.12.598] [DEBUG] Title: Sarah ASL 1C (Units 7-9), with dates: [null,null,null,null,null,null,null,null,null,null]
[18.09.2022 22:22.12.598] [DEBUG] event.recurrences: [object Object]
[18.09.2022 22:22.12.604] [ERROR] Calendar Error. Could not fetch calendar: https://outlook.office365.com/owa/calendar/4d70fc7a1bf94d5ab75018902050b8f9@tssg.ca/34612ac6511e4af9824700a66f879c90976 RangeError:$
at Date.toISOString (:null:null)
at /home/pi/MagicMirror/modules/default/calendar/calendarutils.js:314:28
at Array.forEach (:null:null)
at Object.filterEvents (/home/pi/MagicMirror/modules/default/calendar/calendarutils.js:142:24)
at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:74:29
at processTicksAndRejections (node:internal/process/task_queues:96:5) -
RE: Calendar has stopped working
@sdetweil Sorry. I can with the html version. The error I get now is this:
RangeError: Invalid time value
at Date.toISOString (:null:null)
at /home/pi/MagicMirror/modules/default/calendar/calendarutils.js:314:28
at Array.forEach (:null:null)
at Object.filterEvents (/home/pi/MagicMirror/modules/default/calendar/calendarutils.js:142:24)
at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:74:29
at processTicksAndRejections (node:internal/process/task_queues:96:5) -
RE: Calendar has stopped working
@sdetweil No, it doesn’t. It gets stuck on Preparing to download. Is there a workaround?
Found this somewhere. Does it help?
Bottom line was that the following lines needed to be added into the request.
myHttpWebRequestOutlook.UserAgent = “SmileCRM”;
myHttpWebRequestOutlook.AuthenticationLevel =System.Net.Security.AuthenticationLevel.None; -
RE: Calendar has stopped working
@sdetweil I reinstalled and I am up to date. The error I get now is could not fetch calendar Error: forbidden. at NodeHelper.checkFetchStatus (/home/pi/MagicMirror/js/node_helper.js:121:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5) -
RE: Calendar has stopped working
@sdetweil I followed the posted instructions
-
Calendar has stopped working
Calendar has stopped working. Updated to latest version. Have been using Outlook Calendar for a few years with no issues. Calendar is stuck on “Loading…”
Error messages:
[2022-09-18 17:35:15.966] [ERROR] No toISOString function in curr.start //Microsoft/Utc:20220930T133000
[2022-09-18 17:35:15.967] [ERROR] No toISOString function in curr.recurrenceid //Microsoft/Utc:20220930T133000
[2022-09-18 17:35:15.972] [ERROR] No toISOString function in curr.recurrenceid //Microsoft/Utc:20221001T133000
[2022-09-18 17:35:17.277] [ERROR] Whoops! There was an uncaught exception…
[2022-09-18 17:35:17.278] [ERROR] TypeError: event.start.getFullYear is not a function
at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:285:33
at Array.forEach (:null:null)
at Request._callback (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:91:25)
at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1154:10)
at Request.emit (events.js:210:5)
at Gunzip. (/home/pi/MagicMirror/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:299:28)
at Gunzip.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1183:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)Thoughts?
-
RE: Calendar Timezone Issues
@sdetweil You’re right. Was totally on my end. Didn’t realize I had a file that was preventing the upgrade. After upgrading, works like a charm. Thanks for your help as always.
-
RE: Calendar Timezone Issues
As you can see, this event is scheduled to begin at 10:00am but is actually displaying on the calendar as starting at 5:00am.
BEGIN:VEVENT UID:00D4F0F7-BF5A-45C4-B92F-41B8C771E111 SUMMARY:TEST DTSTART;TZID="(UTC-05:00) Eastern Time (US & Canada)":20201123T100000 DTEND;TZID="(UTC-05:00) Eastern Time (US & Canada)":20201123T103000 CLASS:PUBLIC PRIORITY:5 DTSTAMP:20201122T204236Z TRANSP:OPAQUE STATUS:CONFIRMED SEQUENCE:0 X-MICROSOFT-CDO-APPT-SEQUENCE:0 X-MICROSOFT-CDO-BUSYSTATUS:BUSY X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY X-MICROSOFT-CDO-ALLDAYEVENT:FALSE X-MICROSOFT-CDO-IMPORTANCE:1 X-MICROSOFT-CDO-INSTTYPE:0 X-MICROSOFT-DONOTFORWARDMEETING:FALSE X-MICROSOFT-DISALLOW-COUNTER:FALSE END:VEVENT -
RE: Calendar Timezone Issues
@sdetweil I’m still on the branch origin/develop and it says I’m up to date.
-
RE: Calendar Timezone Issues
@sdetweil Not sure what changed but the times are now displaying as starting 5 hours before they are supposed to.
-
RE: Calendar Timezone Issues
@sdetweil The ics file is generated with Microsoft Exchange Server 2010.
UID:55CA88B7-8EF2-4AB5-AD4E-557F33C33FBE SUMMARY: TEST DTSTART;TZID="(UTC-05:00) Eastern Time (US & Canada)":20201028T133000 DTEND;TZID="(UTC-05:00) Eastern Time (US & Canada)":20201028T150000 CLASS:PUBLIC PRIORITY:5 DTSTAMP:20201015T165939Z TRANSP:OPAQUE STATUS:CONFIRMED SEQUENCE:0 X-MICROSOFT-CDO-APPT-SEQUENCE:0 X-MICROSOFT-CDO-BUSYSTATUS:BUSY X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY X-MICROSOFT-CDO-ALLDAYEVENT:FALSE X-MICROSOFT-CDO-IMPORTANCE:1 X-MICROSOFT-CDO-INSTTYPE:0 X-MICROSOFT-DONOTFORWARDMEETING:FALSE X-MICROSOFT-DISALLOW-COUNTER:FALSE END:VEVENT -
RE: Calendar Timezone Issues
@sdetweil Thank you for all your help. Unfortunately, it still has the timezone issue i.e. all times displayed UTC-4 (I’m in EDT). It appears that the times that are pulled from Outlook are not recognized as already in EDT and are being treated as UTC (hence the additional -4 hours). I’ll keep working on it.
-
RE: Calendar Timezone Issues
@sdetweil Thank you. I have updated to v2.13.0 and still have the issue. Sorry for the dumb question, but how do I pull only from the develop branch?
-
Calendar Timezone Issues
Not sure if anyone else is having this problem, but the start times in my calendar are different from my Outlook entries. Usually, they are off by 4 hours (I’m in EDT). The only time it displays the correct time is when the calendar entry was entered in UTC. This seems to be a new issue as it was working previously. Thoughts?