• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Standard module Calendar hangs on events

Scheduled Pinned Locked Moved Unsolved Troubleshooting
30 Posts 2 Posters 8.2k Views 2 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.
  • L Offline
    Laz
    last edited by Mar 30, 2023, 6:29 AM

    I use the display of my two GMail calendars. One calendar (pink) is displayed normally. The second calendar (blue) hangs very often on old events. The event display is not updated. The update delay varies from several hours to several days.
    Here’s an example:
    Today is Thursday. The blue calendar display settled on Tuesday’s event. After reloading, MM2 events are displayed correctly.
    Tomorrow Friday’s event is at 6 a.m.
    The settings for updating calendars are the same.

    Screenshot_7.png

    Screenshot_8.png

    Screenshot_9.png

    S 1 Reply Last reply Mar 30, 2023, 12:01 PM Reply Quote 0
    • S Offline
      sdetweil @Laz
      last edited by Mar 30, 2023, 12:01 PM

      @Laz can you show the output of npm start, if using pm2 to launch mm, then the pm2 logs command can be used to display the info

      there should be a line for processing the calendar each refresh cycle

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      L 2 Replies Last reply Mar 30, 2023, 12:15 PM Reply Quote 0
      • L Offline
        Laz @sdetweil
        last edited by Mar 30, 2023, 12:15 PM

        @sdetweil My mirror starts automatically when the raspberry is turned on. If you write in more detail what needs to be done, I will try to follow your advice.

        S 1 Reply Last reply Mar 30, 2023, 12:19 PM Reply Quote 0
        • S Offline
          sdetweil @Laz
          last edited by sdetweil Mar 30, 2023, 12:22 PM Mar 30, 2023, 12:19 PM

          @Laz what makes it autostart?

          pm2 or did u create a sustem service?

          if using pm2

          then
          pm2 logs --lines=100

          might work

          otherwise, probably better to do it manually

          stop mm however you would do it
          ctrl-alt-t to open a terminal window
          cd ~/MagicMirror
          npm start >somefile.txt 2>&1

          wait til you think mm should have refreshed the calendar

          press ctrl-q on the mm screen
          examine the contents of somefile.txt

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          L 1 Reply Last reply Mar 30, 2023, 12:24 PM Reply Quote 0
          • L Offline
            Laz @sdetweil
            last edited by Mar 30, 2023, 12:21 PM

            @sdetweil To update the calendar after hanging, I used just a raspberry reboot. Then my friend helped me make a script to reboot only the mirror software itself.
            And I connected the button to the GPIO raspberry.
            The script is like this -

            a8b38506-bc3e-4f76-9b13-dd520aba9f0a-image.png

            S 1 Reply Last reply Mar 30, 2023, 12:24 PM Reply Quote 0
            • S Offline
              sdetweil @Laz
              last edited by Mar 30, 2023, 12:24 PM

              @Laz so you are using pm2

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • L Offline
                Laz @sdetweil
                last edited by Mar 30, 2023, 12:24 PM

                @sdetweil I set it according to this instruction -

                https://github.com/sdetweil/MagicMirror_scripts

                S 1 Reply Last reply Mar 30, 2023, 12:35 PM Reply Quote 0
                • S Offline
                  sdetweil @Laz
                  last edited by Mar 30, 2023, 12:35 PM

                  @Laz yes, that is my set of scripts…

                  anyhow, pm2’s job is to keep MM (or any other app it manages) running…

                  but it also collects the output from those apps…

                  SO you can use the pm2 command to print out the content it has already saved

                  pm2 --help
                  shows you all the things the command can do .

                  pm2 logs

                  will dump out the info saved
                  the --lines=nn parameter will control how many lines of output to display… the default is just 15… so you may have to increase the number to get more of the output

                  pm2 logs --lines=50 or --lines=100

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  L 2 Replies Last reply Mar 30, 2023, 12:39 PM Reply Quote 0
                  • L Offline
                    Laz @sdetweil
                    last edited by Mar 30, 2023, 12:39 PM

                    @sdetweil Thanks a lot!!!
                    Not everything is clear (Google translator…;))))))))))))))))
                    But I will try today or over the weekend to do everything you wrote and show you the results.

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      Laz @sdetweil
                      last edited by Mar 30, 2023, 12:43 PM

                      @sdetweil But I am afraid that the log file may not show an error at a particular moment. Because the hanging events of the blue calendar occur chaotically, not every day…
                      The pink calendar barely freezes in event updates.
                      I changed the arrangement of these calendars (one above the other), but it didn’t help for the blue calendar.

                      S 1 Reply Last reply Mar 30, 2023, 12:45 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        7/30
                        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