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.6k 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 @sdetweil
      last edited by

      @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 Reply Quote 0
      • S Offline
        sdetweil @Laz
        last edited by sdetweil

        @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 Reply Quote 0
        • L Offline
          Laz @sdetweil
          last edited by

          @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 Reply Quote 0
          • S Offline
            sdetweil @Laz
            last edited by

            @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

              @sdetweil I set it according to this instruction -

              https://github.com/sdetweil/MagicMirror_scripts

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

                @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 Reply Quote 0
                • L Offline
                  Laz @sdetweil
                  last edited by

                  @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

                    @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 Reply Quote 0
                    • S Offline
                      sdetweil @Laz
                      last edited by

                      @Laz the info, if any, will be in the log

                      you can also see the files holding the log info

                      in the ~/.pm2/logs folder (note the . in front of pm2 here)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        Laz @sdetweil
                        last edited by

                        @sdetweil Good afternoon!
                        I did not succeed in doing everything on your advice.
                        But I noticed that the blue calendar had not been updated for several days. And I looked at the log file.
                        It shows that until April 2, two calendars are being updated to 20.56.41. And after 21.01.28, only one calendar began to be updated. And so it was until I overloaded the mirror today.
                        I attach screenshots from the log file.

                        Screenshot_12.png

                        Screenshot_13.png

                        Screenshot_14.png

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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