Read the statement by Michael Teeuw here.
Calendar has stopped working
-
@sdetweil I followed the posted instructions
-
I followed the posted instructions
-
@Jonsar so, did the git pull succeed?
do a
git status
in the MagicMirror folder
andgrep version package.json
-
@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) -
@Jonsar if u put the url in a browser, does it download the ics file?
there was a forced change to the Google urls for calendars a while back
-
@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; -
@Jonsar if u can’t download in a normal browser we can’t get it either.
-
@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) -
@Jonsar said in Calendar has stopped working:
Sorry. I can with the html version
what does that mean? does it download the ics file or not?
not view the cal in the web,… that is the embedded version, we need the raw data… -
@Jonsar ok, lets turn on debugging
change config.js
logLevel: ["INFO", "LOG", "WARN", "ERROR"],
to
logLevel: ["INFO", "LOG", "WARN", "ERROR","DEBUG"],
then start mm like this
cd ~/MagicMirror npm start >somefile.txt 2>&1
wait til the error,
ctrl-q to stop MM
then edit the somefile.txterror should be at the bottom