Read the statement by Michael Teeuw here.
Calendar issue with 2.7.1
-
@drfukc is mirror starting on boot with PM2?
go to console and do
pm2 list
is something, get its name and pm2 stop name -
Thanks for your advise. After launching the mirror I do a pm2 list with the following result:
pi@raspberrypi:~/MagicMirror $ pm2 list +-------------------------------------------------------+ ¦ Name ¦ id ¦ mode ¦ status ¦ ? ¦ cpu ¦ memory ¦ +-------------+----+------+--------+---+-----+----------¦ ¦ MagicMirror ¦ 0 ¦ fork ¦ online ¦ 0 ¦ 0% ¦ 2.5 MB ¦ +-------------------------------------------------------+ Use `pm2 show <id|name>` to get more details about an app
With this information I stop the MagicMirror by the following command: pm2 stop 0
pi@raspberrypi:~ $ pm2 stop 0 [PM2] Applying action stopProcessId on app [0](ids: 0) [PM2] [MagicMirror](0) ? +------------------------------------------------------+ ¦ Name ¦ id ¦ mode ¦ status ¦ ? ¦ cpu ¦ memory ¦ +-------------+----+------+---------+---+-----+--------¦ ¦ MagicMirror ¦ 0 ¦ fork ¦ stopped ¦ 0 ¦ 0% ¦ 0 B ¦ +------------------------------------------------------+ Use `pm2 show <id|name>` to get more details about an app
By surprise the running MagicMirror survives and I kill the Electron instance with kill
After the MagicMirror instance is terminated I relaunch MagicMirror again with npm start &
The funny thing is that the naughty EADDRINUSE message is gone by now, but the calendar is still not working:pi@raspberrypi:~/MagicMirror $ npm start & [2] 1279 [1] Fertig npm start pi@raspberrypi:~/MagicMirror $ > magicmirror@2.7.1 start /home/pi/MagicMirror > sh run-start.sh Starting MagicMirror: v2.7.1 Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... Module helper loaded: updatenotification No helper found for module: clock. Initializing new module helper ... Module helper loaded: calendar Initializing new module helper ... Module helper loaded: newsfeed All module helpers loaded. Starting server on port 8081 ... Server started ... Connecting socket for: updatenotification Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application. Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000 Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
OK, as said above I have relaunched the mirror by npm start & and try to evaluate what is going on with pm2 list:
pi@raspberrypi:~ $ pm2 list +------------------------------------------------------+ ¦ Name ¦ id ¦ mode ¦ status ¦ ? ¦ cpu ¦ memory ¦ +-------------+----+------+---------+---+-----+--------¦ ¦ MagicMirror ¦ 0 ¦ fork ¦ stopped ¦ 0 ¦ 0% ¦ 0 B ¦ +------------------------------------------------------+ Use `pm2 show <id|name>` to get more details about an app
It’s funny, pm2 list tells me that the Mirror has stopped, while it is still running, but I still do not recieve any Calendar updates.
What is wrong here? -
@drfukc that calendar,
url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
is thru 2018…
this one contains thru 2019
url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"
-
@sdetweil
Thanks a lot, - this helped :-) , it is so much easier if things are done right straight from the beginning :-DIn addition I also found the root cause for above reported “EADDRINUSE” error.
Simple again: I have enabled MagicMirror autostart in /home/pi/MagicMirror/installers/mm.sh, but don’t see it since I use a Remote Desktop connection (RDP) that gives me a different X-Window in comparison to the native Raspberry desktop.
Now launching Magic Mirror a second time on a different desktop and the same port causes the issue.
Since I disabled MM autostart Magic Mirror boots up without these errors.
Maybe I should get back from XRDP and switch to the preinstalled VNC to avoid having multiple desktops.Again, thanks a lot for your support :-)
-
@drfukc I ssh to my mirrors… one autostarts, one does not…