MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Calendar issue with 2.7.1

    Scheduled Pinned Locked Moved Bug Hunt
    12 Posts 3 Posters 3.8k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @drfukc
      last edited by

      @drfukc is mirror starting on boot with PM2?

      go to console and do

      pm2 list
      is something, get its name and pm2 stop name

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • D Offline
        drfukc
        last edited by

        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?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @drfukc
          last edited by

          @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"
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • D Offline
            drfukc
            last edited by

            @sdetweil
            Thanks a lot, - this helped :-) , it is so much easier if things are done right straight from the beginning :-D

            In 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 :-)

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @drfukc
              last edited by

              @drfukc I ssh to my mirrors… one autostarts, one does not…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy