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

    Scheduled Pinned Locked Moved Utilities
    224 Posts 30 Posters 362.0k Views 32 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
      sfb
      last edited by

      @MMRIZE Thank you for this! I installed this one after MMM-CalendarExt3 and on this one, the events appear in the correct order (re: my reported issue). Is there a way to collapse or hide the event descriptions? I have a lot of long event descriptions (especially those automatic Zoom descriptions) which take up a lot of vertical space.
      Thank you again!

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

        @MMRIZE Okay, Got things I can’t figure out can you help clue me in:

        1. Deleted - I missed the obvious CSS.

        2. I’d like to wrap full day events if they go past % wide (you have it at 50%, I have it at 100%. One of my calendars (a due date calendar from the Gov’t) is extremely wordy and would like to be able to see what it’s rambling on about.

        3. I’d like to get rid of the fade at the bottom. Just cut off.

        4. I’d like to use an icon with full day events. Don’t have to be inverted like the rest of the event but would be nice to have the icon for consistency.

        5. I’d like times to right justify, and line up correctly.
          Example:

        " 9:05AM - 12:05PM Bowling"
        "11:10AM -  2:10PM London Silly Nannies vs New England Patriots"
        

        Thanks man, this module is beyond amazing, like everything you do.

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

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          MMRIZE @BKeyport
          last edited by

          @BKeyport
          All of them seems solvable but I’m on vacation so don’t have time. I will reply after returning a week later.

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

            @MMRIZE Enjoy your vacation! Shouldn’t even be checking in… :)

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

            1 Reply Last reply Reply Quote 0
            • M Offline
              MMRIZE @BKeyport
              last edited by

              @BKeyport
              Frankly says, I don’t like this kind of style, but your wish. :D

              9a93fa14-2ea1-4c76-909d-0cf7cce08e50-image.png

              .CX3A .cellBody .fullday .event {
                color: var(--calendarColor);
                background-color: unset;
                max-width: 100%;
              }
              
              .CX3A .cellBody .fullday .event .title {
                color: inherit;
                overflow: unset;
                white-space: unset;
                text-overflow: unset;
              }
              
              .CX3A::after {
                height: 0;
              }
              
              .CX3A .cellBody .fullday .event .headline :not(.title) {
                display: inline-block;
              }
              
              .CX3A .cellBody .fullday .event .headline .time {
                display: none;
              }
              
              .CX3A .event .time {
                width: 35px; /* adjust for your entire CSS harmony */
                text-align: right;
              }
              
              BKeyportB 1 Reply Last reply Reply Quote 0
              • BKeyportB Offline
                BKeyport Module Developer @MMRIZE
                last edited by

                @MMRIZE at least you have good taste and follow the bluejays. :P

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

                M luisestradaL 2 Replies Last reply Reply Quote 0
                • M Offline
                  MMRIZE @BKeyport
                  last edited by

                  @BKeyport
                  title wrapping example
                  aaa.png

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

                    @MMRIZE Works great, Thanks!

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

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

                      So, here’s my final config in CSS -

                      * CalendarExtende3 Agenda */
                        
                      .CX3A .event .description {
                        display: none;
                      }
                      
                      .CX3A .event .headline .symbol.noSymbol::after {
                        content: '';
                      }
                      
                      .CX3A .cellBody .fullday {
                        display: flex;
                        justify-content: flex-start;
                        flex-wrap: wrap;
                      }
                      
                      .CX3A .cellBody .fullday .event {
                        color: var(--calendarColor);
                        background-color: gray;
                        max-width: 100%;
                        padding: 0px 0px;
                      }
                      
                      .CX3A .cellBody .fullday .event .title {
                        color: inherit;
                        overflow: unset;
                        white-space: unset;
                        text-overflow: unset;
                      }
                      
                      .CX3A .cellBody .fullday .event .headline :not(.title) {
                        display: inline-block;
                      }
                      
                      .CX3A .cellBody .fullday .event .headline .time {
                        display: none;
                       }
                      
                      .CX3A .event .time {
                        width: 55px; /* adjust for your entire CSS harmony */ 
                        text-align: right;
                      }
                      
                      .CX3A .event .location {
                        display: none;
                      }
                      
                      .CX3A::after {
                        height: 0;
                      }
                      

                      Results in:

                      7cdfcb3f-ce93-45c6-a1ab-a3a193bd954d-image.png

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

                      1 Reply Last reply Reply Quote 1
                      • luisestradaL Offline
                        luisestrada @BKeyport
                        last edited by

                        @BKeyport said in MMM-CalendarExt3Agenda:

                        @MMRIZE at least you have good taste and follow the bluejays. :P

                        I cannot agree more with that :)

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          MMRIZE
                          last edited by

                          Updated

                          CX3A_110.png

                          1.1.0 (2022-08-17)

                          • ADDED : miniMonth calendar
                          • FIXED : some minor bugs fixes and code refactoring
                          BKeyportB 1 Reply Last reply Reply Quote 0
                          • BKeyportB Offline
                            BKeyport Module Developer @MMRIZE
                            last edited by

                            @MMRIZE ya know, I hate that you’re so efficient in getting stuff like this to work natively, without external code. geezer.gif

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

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              MMRIZE @BKeyport
                              last edited by

                              @BKeyport
                              :D

                              I just want to get a similar look with Fantastical App on MagicMirror because I majorly am using that app in my real world. ;)month.5.png

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

                                OK, Seriously - do you want to do two things:

                                1. Setup your minical to show by itself, without an agenda.
                                2. Allow it to expand to multiple months like my MMM-Minimonth

                                If so, I’m seriously considering dropping the module, as I’m getting very frustrated in porting away from moment.js - and frankly, I’m to the point of dropping out - I’d rather concentrate on other things.

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

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MMRIZE @BKeyport
                                  last edited by

                                  @BKeyport
                                  Not at all.
                                  That mini cal belongs to agenda. I don’t have interesting standalone. And 3 months view? I never use that kind in real world. Basically, i will not build what I won’t use. So don’t worry.

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

                                    @MMRIZE z’arright.

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

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

                                      @MMRIZE hey, Having trouble with a transform, I’ve noticed.

                                      In redoing my CSS (reason for finding bug posted on github), I noticed my transformer isn’t quite working like I want.

                                      this works:

                                      eventTransformer: (ev) => {
                                      	if (ev.title.search("⚾") > -1)
                                      	ev.title = ev.title.replace("⚾","");
                                      	return ev
                                      },
                                      

                                      However, I would also like to take out the space after the baseball, so that these events line up with the rest of the events that don’t try and get fancy and put emoji into the title.

                                      two attempts I’ve made: ev.title.replace("⚾ ",""); and ev.title.replace("⚾ ",""); totally disable to the transform. Suggestions?

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

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

                                        @BKeyport said in MMM-CalendarExt3Agenda:

                                        eventTransformer: (ev) => {
                                        if (ev.title.search(“⚾”) > -1)
                                        ev.title = ev.title.replace(“⚾”,“”);
                                        return ev
                                        },

                                        so, lets make a little node script to test outside the transform

                                        xxx.js

                                        let title= " put in your chars"

                                        console.log(title.replace(“… etc”,“”)

                                        save and then run

                                        node xxx.js

                                        then u can play with it
                                        til you get what you expect

                                        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 Found it, ended up being a special char, likely a tab or something stupid. cut and paste saves the day.

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

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

                                            Three things I wanna change that I can’t figure out.

                                            1. I would like the all day events that don’t wrap (“Yard Waste”) to stretch across the window (grey bar).
                                            2. I would like times to not wrap.
                                            3. I would like times to right align, so that the events are in a nice straight line.

                                            custom CSS and screenshot attached. I’m in top_center.

                                            Thanks!
                                            5e91c435-db38-4156-acbe-298536164ac1-image.png

                                            /* offset top center to fit for large right and small left */
                                            .region.top.center {
                                              left: 62%;
                                              transform: translateX(-50%);
                                              text-align:center;
                                            }
                                            
                                            /* CalendarExt3Agenda */
                                            /* Set CX3a to size, etc. */
                                            .CX3A {
                                              font-size: 20px;
                                              min-width: 300px;
                                              max-width: 430px;
                                              max-height: 900px;
                                              overflow-y: unset;
                                              text-align: left;
                                              position: relative;
                                              color: white;
                                            }
                                            
                                            /* Hide useless descriptions, you wanna know, load your calendar */
                                            .CX3A .event .description {
                                              display: none;
                                            }
                                            
                                            /* Hide useless locations, you wanna know, load your calendar */
                                            .CX3A .event .location {
                                              display: none;
                                            }
                                            
                                            /* Set up custom full day look */ 
                                            .CX3A .cellBody .fullday .event {
                                              color: var(--calendarColor);
                                              background-color: gray;
                                              max-width: 100%;
                                              padding: 0px 0px;
                                            }
                                            
                                            /* make fullday events overflow onto next line */
                                            .CX3A .cellBody .fullday .event .title {
                                              color: inherit;
                                              overflow: unset;
                                              white-space: unset;
                                              text-overflow: unset;
                                            }
                                            
                                            /* Add the icon to full day events
                                            .CX3A .cellBody .fullday .event .headline {
                                              display: inline-block;
                                            }
                                            
                                            */
                                            
                                            /* get rid of the icon for blanks  */
                                            .CX3A .event .headline .symbol.noSymbol::after {
                                              content: '';
                                            }
                                            
                                            /* fullday keep the times hidden */
                                            .CX3A .cellBody .fullday .event .headline .time {
                                              display: none;
                                            }
                                            
                                            /* Change the dash to a colon, get rid of spare space */
                                            .CX3A .event .startTime::after {
                                              content: ':';
                                            }
                                            
                                            /* Adjust time space */ 
                                            .CX3A .event .time {
                                              font-size: unset;
                                             }
                                              
                                            /* Remove End time */
                                            .CX3A .event .endTime {
                                              display: none;
                                            }
                                            
                                              
                                            /* Adjust how tall app is */
                                            .CX3A .agenda {
                                              position: relative;
                                              max-height: 900px;
                                              overflow-y: hidden;
                                            }
                                            
                                            /* Fade eliminator */
                                            .CX3A .agenda::after {
                                              position: absolute;
                                              bottom: 0;
                                              left: 0;
                                              height: 20%;
                                              width: 100%;
                                              content: ' ';
                                              background-image: unset;
                                            }
                                            

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

                                            M 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
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 11
                                            • 12
                                            • 5 / 12
                                            • 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