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 events broadcasting, nothing showing...

    Scheduled Pinned Locked Moved Solved Troubleshooting
    14 Posts 3 Posters 166 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 @BKeyport
      last edited by

      @BKeyport were you able to resolve this?? the 165 events could have been all in the past too

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      BKeyportB 1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @sdetweil
        last edited by

        @sdetweil Sorry, I’ve been away due to work issues. It is multiple systems to one server, and still unsolved. Worked fine before “upgrade” to current MM version.

        The "E" in "Javascript" stands for "Easy"

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

          @BKeyport hmmm. I think the caching might be affecting

          Comment out these lines in calendar.js

          IMG_5332.png

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          KristjanESPERANTOK BKeyportB 2 Replies Last reply Reply Quote 0
          • KristjanESPERANTOK Offline
            KristjanESPERANTO Module Developer @sdetweil
            last edited by

            I tracked this down to a likely root cause: after the HTTPFetcher 304 change, some consumers were trying to process empty responses. In PR #4180, I fixed that for calendar and other consumers.

            1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @sdetweil
              last edited by BKeyport

              @sdetweil does not seem to affect anything.

                          if (notification === "CALENDAR_EVENTS") {
                                      // have we received events for this url
                                      if (!this.calendarData[payload.url]) {
                                              // no, setup the structure to hold the info
                                              this.calendarData[payload.url] = { events: null, checksum: null };
                                      }
                                      // save the event list
                                      this.calendarData[payload.url].events = payload.events;
              
                                      this.error = null;
                                      this.loaded = true;
              
                                      if (this.config.broadcastEvents) {
                                              this.broadcastEvents();
                                      }
                                      // if the checksum is the same
              /*
                                      if (this.calendarData[payload.url].checksum === payload.checksum) {
                                              // then don't update the UI
                                              return;
                                      }
              */
                                      // haven't seen or the checksum is different
                                      this.calendarData[payload.url].checksum = payload.checksum;
              
              

              The "E" in "Javascript" stands for "Easy"

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

                @BKeyport thanks… I see an other change submitted today

                https://github.com/MagicMirrorOrg/MagicMirror/pull/4180
                which references this topic

                if you want to try that do

                cd ~/MagicMirror
                # restore calendar.js 
                git checkout defaultmodules/calendar/calendar.js
                git fetch origin pull/4180/head:_fix_304
                rm package-lock.json
                git switch _fix_304
                npm run install-mm
                restart MM
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                BKeyportB 1 Reply Last reply Reply Quote 1
                • BKeyportB Offline
                  BKeyport Module Developer @sdetweil
                  last edited by

                  @sdetweil That fixed it here.

                  The "E" in "Javascript" stands for "Easy"

                  S 1 Reply Last reply Reply Quote 2
                  • S Offline
                    sdetweil @BKeyport
                    last edited by

                    @BKeyport awesome!! Thanks for the feedback

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    BKeyportB 1 Reply Last reply Reply Quote 0
                    • S sdetweil has marked this topic as solved
                    • BKeyportB Offline
                      BKeyport Module Developer @sdetweil
                      last edited by

                      @sdetweil When we get to the quarterly update, I’ll need to know how to update back to the main. LOL

                      The "E" in "Javascript" stands for "Easy"

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

                        @BKeyport yes. If you use my upgrade script it will move you back to the mainline, or I’ll give you instructions

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        BKeyportB 1 Reply Last reply Reply Quote 0
                        • BKeyportB Offline
                          BKeyport Module Developer @sdetweil
                          last edited by

                          @sdetweil oh, cool that you built that in the scripts - I use that.

                          The "E" in "Javascript" stands for "Easy"

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

                            @BKeyport yes, if I discover you are not on the master branch, I move you to master, then update from there.

                            For exactly this situation. Trying a specific fix or all of develop branch.

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • 1 / 1
                            • 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