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.

    Default Calendar module frequently refreshes

    Scheduled Pinned Locked Moved General Discussion
    25 Posts 3 Posters 608 Views 3 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 @DarrenO 0
      last edited by

      @DarrenO-0 sorry, not quite sure what you’ve said here

      You specified tableClass twice in the config of a single calendar module declaration?

      JavaScript should take the second, and ignore the first
      JSON.parse() should overlay the first w the second

      And tableClass is only used in the presentation of the events long after the broadcast message is sent

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @michaelarnauts For the log output, we were looking for the broadcasting xxxx events messages entries
        But note they have the full URL string , which you shouldn’t post on the forum

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • D Offline
          DarrenO 0 @sdetweil
          last edited by

          @sdetweil said in Default Calendar module frequently refreshes:

          @DarrenO-0 sorry, not quite sure what you’ve said here

          You specified tableClass twice in the config of a single calendar module declaration?

          JavaScript should take the second, and ignore the first
          JSON.parse() should overlay the first w the second

          And tableClass is only used in the presentation of the events long after the broadcast message is sent

          Correct, yes.
          I would have assumed, and expect, that the second specified instance of “tableClass” would supersede the first, but for some reason when I removed either instance and re-saved the config, the calendar has been rock-solid and no longer performs the constant/frequent refresh outside of the fetchInterval value.

          Was the duplicate value the cause and removing it was the solution?
          Was simply re-saving the config, to force MM to re-read it, the solution?
          I don’t know, but it is all now working as expected - i see the calendar temporarily fade out and redisplay according to the configured 5min interval
          When viewing the live tail of pm2 logs --lines=15, i’m no longer seeing a constant display of the “Broadcasting…” of each calendar throughout the configured fetchInterval. I now only and correctly see it update according to the fetchInterval value.

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

            @DarrenO-0 weird!!!

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              DarrenO 0 @sdetweil
              last edited by

              @sdetweil
              OK, so after a few days, my MM is still on Debian12 and i’m now seeing the same constant/frequent reload of the default calendar.

              What logs should I be looking in and what should I be looking for in them?

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

                @DarrenO-0 in the output of npm start
                There will be a line

                Broadcasting xxx events for calendar yyyy
                Where yyyy is the full url configured in the calendar

                That line will have a timestamp at the beginning of the line

                That is the output of the calendar module fetcher and starts the delivery to the front end to display

                If you use pm2 that content is captured for you

                You could use grep to extract just those lines

                cd ~/.pm2/logs
                ls

                Find the right filename.
                Pm2_app name-out.log

                grep Broadcasting fffff
                Where fffff is the file name you selected
                Note the file is added to each time MagicMirror is restarted unless you clear it first
                pm2 flush
                To clear

                Before posting in a public place, make sure to mangle the url on each line so as not to expose your working cal url

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                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