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-CalendarExt3

    Scheduled Pinned Locked Moved Utilities
    689 Posts 82 Posters 2.8m Views 86 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.
    • M Offline
      MMRIZE @gonzonia
      last edited by MMRIZE

      @gonzonia
      screens.png
      This might be what you want.

      // config/config.js
      
      {
      	module: "MMM-CalendarExt3",
      	position: "bottom_bar",
      	header: "Whatever",
      	config: {
      		mode: 'month',
      		cellDateOptions: { day: 'numeric' },
      		eventHeight: '44px',
      		maxEventLines: 3,
      		displayEndTime: true,
      	}
      },
      
      /* css/custom.css */
      .CX3 .event .headline {
        flex-flow: row wrap;
        justify-content: flex-end;
      }
      
      .CX3 .event .headline.useSymbol .symbol {
        display: none;
      }
      
      .CX3 .event .headline .title,
      .CX3 .event .headline .time {
        height: var(--fontsize);
        line-height: 100%;
        text-overflow: ellipsis;
      }
      
      .CX3 .event .headline .title {
        width: 100%;
        text-align: left;
      }
      
      .CX3 .event .headline .time {
        order: 4;
        text-align: right;
        width: 40%; /* It depends on your timeFormat length */
      }
      
      .CX3 .cellHeader .cellDate {
        line-height: 100%;
      }
      

      But this CSS is not configured in detail. It may have some bug or ugly look with some dimensions or environment. I prove the chance only and you can test and adjust it by yourself.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gonzonia @MMRIZE
        last edited by

        Thanks for all the help!
        Ideally I was hoping for weekly view but where the first day is the current day, so that on Friday I can still see what’s coming up in the next week.

        I understand that CX3A shows this information but it’s not in the same format and I prefer the look of the weekly format with CX3

        @MMRIZE said in MMM-CalendarExt3:

        Weird. cellDateOptions: {day:‘numeric’} should show only the number of the day. What is your locale? or check the typo.

        Locale is en-US.

        I’m in weekly view.

        It’s only on the first of the week and the current day. I’ve worked around it in CSS but I wouldn’t have expected it to show using

        cellDateOptions: {day:'numeric'}
        

        This image is without any custom CSS applied

        Screenshot 2023-07-05 at 10.08.03 AM.png

        This is the config.

        {
        		  module: "MMM-CalendarExt3",
        		  position: "lower_third",
        		  classes: "SceneFamily",
        		  header: 'Family Week',
        		  config: {
        			mode: "week",
        			instanceId: "FamilyCalendar",
        			weekIndex: 0,
        			firstDayOfWeek: 0,
        			weeksInView: 1,
        			locale: 'en-US',
        			maxEventLines: 5,
        			firstDayOfWeek: 1,
        			calendarSet: ['us_holiday', '1', '2', '3', '4', '5'],
        			useWeather: false,
        			displayWeatherTemp: false,
        			useSymbol: true,
        			fontSize: "16px",
        			displayEndTime:true,
        			
        			
        		  }
        		},
        
        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MMRIZE @gonzonia
          last edited by

          @gonzonia
          ???
          In your configuration, there is no cellDateOptions.
          see my previous post for config.js

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            gonzonia @MMRIZE
            last edited by gonzonia

            @MMRIZE Ha! I swear I’d tried that! When I did it would just show it as a numeric month and add the year.

            Working now though. Thanks

            1 Reply Last reply Reply Quote 0
            • T Offline
              tjat
              last edited by

              @MMRIZE first, thank you for your development and continued efforts on this module. It is the centerpiece of my home dashboard. I am interested in incorporating user interaction to my calendar module. For instance,is there capability to display the prior or next month based on a user swiping or hitting an arrow key on an attached keyboard? I know other modules are needed to feature event listeners for those actions but I’m not sure if cx3 can handle the notifications those would pass as is.

              Alternatively if this would need serious coding, would running multiple instances of the module work (each for a different month) and showing/hiding as appropriate?

              (Long term, My dream state for my dashboard is an applet to popup and let the user add/modify an event directly from the screen and update my Google calendar, but that’ll be the last item in my list!)

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

                @tjat

                • see the “glance” by notification parts in readme.
                • And multi-instance also be possible.
                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  tjat @MMRIZE
                  last edited by

                  @MMRIZE

                  Thanks. I was able to build a simple module to advance the month via arrow keys using glance. Let me know if that’d be useful to share anywhere.

                  This question is basic but driving me nuts, but is it possible for the calendar title to include the year? For instance, it now says “July” but I’d like it to say “July 2023”.

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

                    @tjat

                    headerTitleOptions: {
                      year: 'numeric',
                      month: 'long',
                    },
                    

                    But the order of text would be decided by locale. So this will show 2023 July or July 2023. (and comma included/not, punctuation mark included/not, … depends on the standard rules of the culture by the locale.)
                    If you want to adjust the order or composition of words, you may need CSS customization additionally.

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

                      @MMRIZE hey, is there a way to increase the size of the month name header? That’s the one bit I’d like to change on my setup.

                      I’m now using your module for this month, then mine for upcoming. 😉

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

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

                        Calendarext2 to Calendarext3 cofiguration is working the same. I’ve upgraded to ext3 and complete wiped and restarted magicmirror with a clean install. Ext3 doesn’t seem to have some of the same functionality i had in ext and ext2. I am attaching a screen shot of what i am looking to achieve and needing some guidance. Can someone point me to couple of configuration files that might work to achieve the same functionality. abdc3887-1c77-4f05-b451-78a14ccf6cbf-image.png

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

                          @pastormingle
                          What does it mean the same functionality? Maybe equivalent, but not the same.
                          And if you are satisfied with CX2, just leave it as it works. :)

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

                            @BKeyport

                            For the special calendar, (You should assign instanceId: "specialCalendar" in config)

                            .module.MMM-CalendarExt3:has(.CX3_specialCalendar) .module-header {
                              color: red;
                              font-weight: bold;
                              font-size: 2em;
                            }
                            

                            will show;
                            CX3.png

                            If you want to apply globally or have only one instance of the module;

                            .module.MMM-CalendarExt3 .module-header {
                            ...
                            }
                            

                            will work.

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

                              @tjat
                              @MMRIZE said in MMM-CalendarExt3:

                              But the order of text would be decided by locale. So this will show 2023 July or July 2023. (and comma included/not, punctuation mark included/not, … depends on the standard rules of the culture by the locale.)
                              If you want to adjust the order or composition of words, you may need CSS customization additionally.

                              This is my bad. The module header of this module is not refined to be possible to be a conjunction. So you need to set up your locale for your wish.
                              Or if you want really that feature, I’ll consider updating it.

                              T 1 Reply Last reply Reply Quote 0
                              • P Offline
                                pastormingle @MMRIZE
                                last edited by

                                @MMRIZE i changed due to time zones not displaying correctly. I having meetings that are at times from other countries and it wouldn’t display correctly and as Ext3 is the most current it was suggested to upgrade to it… Then my Raspberry PI SD card crashed and i lost my original configuration. So now it’s a learning curve either way.

                                P 1 Reply Last reply Reply Quote 0
                                • P Offline
                                  pastormingle @pastormingle
                                  last edited by

                                  @pastormingle Is there a location were i can look at more detailed instructions on Ext3 or some configuration files that i can look at?

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

                                    @pastormingle
                                    I will show you some examples tomorrow.

                                    P 1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      pastormingle @MMRIZE
                                      last edited by

                                      @MMRIZE Thanks.

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

                                        @MMRIZE No worries, it worked perfectly.

                                        My latest issue is that I’m struggling to refresh the calendar when I add a new event to my google calendar. I’m temporarily working on a local copy to play around with the JS and have this step currently. Would this work or is there an easier/better way that you’ve already built?

                                        forceRefresh: function() {
                                           console.log("forceRefresh called");
                                        
                                           if (this.refreshTimer) {
                                             clearTimeout(this.refreshTimer);
                                             this.refreshTimer = null;
                                           }
                                           this.tempMoment = null;
                                           this.stepIndex = 0;
                                           this.updateDom(this.config.animationSpeed);
                                         }
                                        
                                        S M 2 Replies Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @tjat
                                          last edited by

                                          @tjat ext3 gets its data from the default calendar module…

                                          there is no notification to force refresh its content. only the fetchInterval.

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          T 1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            tjat @sdetweil
                                            last edited by

                                            @sdetweil so do I instead need to cause the default calendar module to refresh with my google calendar content?

                                            Everything updates when I close and reload the magic mirror so just trying to update on demand within the same instance.

                                            S 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
                                            • 13
                                            • 14
                                            • 15
                                            • 16
                                            • 17
                                            • 34
                                            • 35
                                            • 15 / 35
                                            • 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