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.

    MMM-CalendarExt3Agenda - Two questions

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    19 Posts 3 Posters 4.2k 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 Do not disturb
      sdetweil @Kelemvor
      last edited by

      @Kelemvor can’t answer the first, but on the second
      there is a handler you can code for the
      eventPayload property that gets to examine and modify ALL the events for this calendar before being processed by the agenda drawer…

      so you could discover the 3 individual events and collapse them to one (delete the other two) and change the title to a/b/c ,

         eventPayload: (list)={ 
             for( let i in list){   // list.forEach(event)=>{  // different approaches
                   let event = list[i]  // not needed in list.forEach
                   // be careful not to delete/add entries to 'list' while processing it..  
                   // so maybe make an updated list and return that 
                   do whatever for this event
             }
              return list 
          },
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Kelemvor
        last edited by

        @Kelemvor the events have class .passed applied, so you could have a css entry

        for

        .CX3 .today .passed { 
            some color shading
        }
        

        .today moves at midnight

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          Kelemvor @sdetweil
          last edited by

          @sdetweil Thanks. I’ll take a look tomorrow when my brain is fresh. ;)

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            Kelemvor @Kelemvor
            last edited by

            There’s already this in the CSS that makes the passed events Gray:
            .CX3A .event.passed {
            filter: brightness(0.6) grayscale(0.33);
            }

            But, there must be something else that removes them completely when it updates so they don’t show at all.

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

              As for the #1 question, look at these config items:

              startDayIndex
              endDayIndex
              

              That will adjust your view to specific days - startDayIndex: 0 will set it to start on the current day, and then continue for the number of days listed in endDayIndex

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

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                Kelemvor @BKeyport
                last edited by

                @BKeyport said in MMM-CalendarExt3Agenda - Two questions:

                As for the #1 question, look at these config items:

                startDayIndex
                endDayIndex
                

                Those are already set correctly. There’s something hard coded somewhere that removes events that are in the past from showing, even if they’re from Today. If those settings were wrong I wouldn’t see anything from today.

                K BKeyportB 2 Replies Last reply Reply Quote 0
                • K Offline
                  Kelemvor @Kelemvor
                  last edited by

                  Maybe something in this section if I’m deciphering things correctly…

                  e324a3b6-f989-4f7d-aa5c-2e9f02a722c0-image.png

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

                    @Kelemvor do you have broadcastPastEvents: true, set in the default calendar app?

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

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

                      @Kelemvor Actually, I think you might be right - does look hardcoded.

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

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        Kelemvor @BKeyport
                        last edited by

                        @BKeyport said in MMM-CalendarExt3Agenda - Two questions:

                        @Kelemvor do you have broadcastPastEvents: true, set in the default calendar app?

                        Not if that goes in the normal Config area. Does that make ALL events from the entire calendar get passed over to Ext3? Is that going to overload anything since it’s decades of events? :)

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

                          @Kelemvor It won’t overload anything. broadcastPastEvents is required to show old events.

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

                          K 1 Reply Last reply Reply Quote 0
                          • K Offline
                            Kelemvor @BKeyport
                            last edited by

                            @BKeyport I know it says its broadcasting 400+ events so I’m assuming it’s sending old stuff.

                            BKeyportB K 2 Replies Last reply Reply Quote 0
                            • BKeyportB Offline
                              BKeyport Module Developer @Kelemvor
                              last edited by

                              @Kelemvor I pretty much bet it’s that setting - with it I get what you want:

                              7e046779-4d72-420a-9c04-8f54d2e7d18d-image.png

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

                              BKeyportB 1 Reply Last reply Reply Quote 0
                              • K Offline
                                Kelemvor @Kelemvor
                                last edited by

                                I think I fixed it and I Just found a typo in the official documentation:

                                On this page:
                                https://docs.magicmirror.builders/modules/calendar.html#configuration-options

                                The first instance of broadcastPastEvents is wrong.

                                b16372e5-e741-4667-b1ca-b6d0de6d53ba-image.png

                                It should say pastDaysCount, not maximumNumberofDays,

                                6f757c95-d2bd-42c5-afc4-900a363df4b3-image.png

                                Anyway, I set broadcastPastEvents to True and PastDaysCount to 1. It seems to be showing now. I’ll know more tomorrow afternoon.

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

                                  oh, and you can specify past events per calendar:

                                  https://docs.magicmirror.builders/modules/calendar.html

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

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

                                    @Kelemvor I wouldn’t know the details on that part of the thing - I let my calendar spew the entire of the data download - it don’t hurt a thing.

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

                                    K 1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      Kelemvor @BKeyport
                                      last edited by

                                      @BKeyport Oh sheesh. After my change it’s now showing the entire mini calendar with all the events on it. It wasn’t like that before so it’s definitely sending things it wasn’t. I have the PastDays thing set to 1, in the base calendar but EXT3 calendar is showing events for all of March so that flag doesn’t seem to work right or something.

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @Kelemvor
                                        last edited by

                                        @Kelemvor pastDaysCount is an advisory to other modules. they dont have to honor it

                                        we send all the events, there was a bug in clipping, i ‘fixed’ for 2.30, but made it worse. the temp fix removes clipping on past events

                                        maximum days sets the range to view in cal, default 365 days

                                        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