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.
    • S Offline
      sdetweil @Fjerdrumsmoen
      last edited by

      @Fjerdrumsmoen calendarExt3 gets its data from the default calendar module…

      so you have to configure it, and just comment out the position: setting…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @Fjerdrumsmoen said in MMM-CalendarExt3:

        module: ‘MMM-GoogleCalendar’,

        no, use

        module: "calendar"
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • F Offline
          Fjerdrumsmoen
          last edited by

          Hmm. All empty when I use the calendar module, also. Tested with the US holidays, and everything stays blank. (Without the heading)

          Any other tips?

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

            @Fjerdrumsmoen 1st
            w default cal module, does the calendar display?
            (before u comment out position)

            did u try the default ext3 config?

            I used the default ext3 config from doc, with the holidays
            commented out calendarSet, and locale…

            {
              module: "MMM-CalendarExt3",
              position: "bottom_bar",
              title: "",
              config: {
                mode: "month",
                instanceId: "basicCalendar",
               // locale: 'de-DE',
                maxEventLines: 5,
                firstDayOfWeek: 1,
                //calendarSet: ['us_holiday', 'abfall', 'mytest'],
            
              }
            },
            

            got
            Screenshot at 2023-06-03 11-22-37.png

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @Fjerdrumsmoen
              For google calendar you need some additional config. See the readme.md more.

              1 Reply Last reply Reply Quote 0
              • F Offline
                Fjerdrumsmoen
                last edited by

                Thanks. Now it shows :-)

                But not with Google account.
                Should i put in this code in the config.js?

                preProcessor: (e) => {
                  e.startDate = new Date(e.start?.date || e.start?.dateTime).valueOf()
                  e.endDate = new Date(e.end?.date || e.end?.dateTime).valueOf()
                  e.title = e.summary
                  e.fullDayEvent = (e.start?.date) ? true : false
                  return e
                }
                
                S M 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @Fjerdrumsmoen
                  last edited by

                  @Fjerdrumsmoen just use the Google url instead of the holidays… does it show in default calendar?
                  no… fix that

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @Fjerdrumsmoen
                    In CX3 module config not global or calendar module.

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

                      1.4.0 (2023-06-04)

                      popover

                      • ADDED (Experimental) Show popover of event details on click/touch (Chrome 114 or Electron 25 needed)

                      See https://github.com/MMRIZE/MMM-CalendarExt3/discussions/80

                      • FIXED Clarify code for using MMM-GoogleCalendar module #78 (Thanks to @jcherniak)
                      • UPDATED Updated CX3_Shared submodule #76 / More robust oppositeColor calculation. (Thanks to @btastic)

                      Preview video is here: https://github.com/MMRIZE/public_ext_storage/issues/1

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

                        @MMRIZE This is awesome!! Congrats!!!
                        Unfortunately I don’t have a touch screen but this opens a new world of possibilities for those who have.

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

                          How do I use MMM-CalendarExt3 to show events from MMM-GoogleCalendar? I have MMM-GoogleCalendar setup and it’s displaying events. However, I tried adding MMM-CalendarExt3 to the config and it won’t display anything. Any help is much appreciated.

                          My config file…

                          {
                          	module: "MMM-GoogleCalendar",
                          	header: "Family Calendar",
                          	position: "top_left",
                          	classes: "calendar-agenda",
                          	config: {
                          		calendars: [
                          			{
                          				symbol: "calendar-week",
                          				calendarID: "myemail@gmail.com",
                          				name: "mycalendar"
                          			},
                          		],
                          		fade: false,
                          		maximumNumberOfDays: 5,
                          		showlocation: true,
                          		tableClass: "medium",
                          		
                          	}
                          },
                          {
                          	module: "MMM-CalendarExt3",
                          	position: "top_left",
                          	config: {
                          		instanceID: "I-calendar-month",
                          		calendarSet: ['mycalendar'],
                          		weeksInView: 3
                          	}
                          },
                          
                          BKeyportB 1 Reply Last reply Reply Quote 0
                          • BKeyportB Offline
                            BKeyport Module Developer @MM19198
                            last edited by BKeyport

                            @MM19198 https://github.com/MMRIZE/MMM-CalendarExt3#compatible-with-randombrainstormermmm-googlecalendar

                            There’s a config snippet there to make it work.

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

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

                              @BKeyport I appreciate the quick reply. I tried adding that but unfortunately it didn’t change anything.

                              Is there anything I need to do with eventNotification?

                              {
                              	module: "MMM-GoogleCalendar",
                              	header: "Family Calendar",
                              	position: "top_left",
                              	classes: "calendar-agenda",
                              	config: {
                              		calendars: [
                              			{
                              				symbol: "calendar-week",
                              				calendarID: "myemail@gmail.com",
                              				name: "mycalendar"
                              			},
                              		],
                              		fade: false,
                              		maximumNumberOfDays: 5,
                              		showlocation: true,
                              		tableClass: "medium",
                              		
                              	}
                              },
                              {
                              	module: "MMM-CalendarExt3",
                              	position: "top_left",
                              	title: "Family Calendar EXT3",
                              	config: {
                              		mode: "week",
                              		instanceID: "I-calendar-month",
                              		calendarSet: ['mycalendar'],
                              		weeksInView: 3,
                              		preProcessor: (e) => {
                              			if (e.start?.dateTime) {
                              				  e.startDate = new Date(e.start.dateTime).valueOf()
                              			} else if (e.start?.date) {
                              				  e.startDate = new Date(`${e.start.date}T00:00:00`).valueOf()
                              			}
                              
                              			if (e.end?.dateTime) {
                              				  e.endDate = new Date(e.end.dateTime).valueOf()
                              			} else if (e.end?.date) {
                              				  e.endDate = new Date(`${e.end.date}T00:00:00`).valueOf()
                              			}
                              
                              			e.title = e.summary
                              			e.fullDayEvent = (e.start?.date) ? true : false
                              			return e
                              		}
                              	}
                              },
                              
                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                MM19198 @BKeyport
                                last edited by

                                @BKeyport In addition to that code you sent, I also had to add “broadcastEvents: true” to the MMM-GoogleCalendar config. Now I’m able to see events on the MMM-CalendarEXT3 module. Thanks!

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

                                  Working on moving from CX2 to CX3.

                                  A few things I’m being challenged by. Some might be limitations but figured I’d ask

                                  1. In CX2 there were more icon sets available. Is CX3 limited to Font Awesome because the default calendar is?

                                  2. Can CX3 in weekly view start from the current day vs. beginning of the week?

                                  3. I can see there’s a module-header. How can I make the CX3 title from the config show there?

                                  Possible CSS Questions
                                  4) I’m having trouble getting the Day header to show only numeric for the whole week. It shows Month Day (Jul 3) in the first two days and then numeric for the rest. (I tried cellDateOptions: “{day: ‘numeric’}” in the config for the module and it shows “7/3/2023” and “7/4/2023” in the first two days. This is what I had to do to hide it with CSS.

                                  .CX3 .week:nth-child(2) .cell:first-child .cellDate *
                                  {
                                         display: none;
                                  }
                                  
                                  .CX3 .week:nth-child(2) .cell:first-child .cellDate .day
                                  {
                                         display: inline-block;
                                  }
                                     
                                  .CX3 .today .cellDate :not(.day)
                                  {
                                     display: none;
                                  }
                                  
                                  1. I had CX2 showing like this with the title on one line and the time on the next. Can that be done?
                                    Screenshot 2023-07-04 at 8.29.09 PM.png
                                  2. How to remove colored dot signifying calendar? I like a border instead?
                                  BKeyportB M 3 Replies Last reply Reply Quote 0
                                  • BKeyportB Offline
                                    BKeyport Module Developer @gonzonia
                                    last edited by

                                    @gonzonia

                                    for #6, I’m sure it’s something like this, (I use CalendarExt3Agenda, which uses common code):

                                    /* get rid of the icon */
                                    .CX3 .event .headline .symbol {
                                      display: none;
                                    }
                                    

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

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

                                      @gonzonia said in MMM-CalendarExt3:

                                      In CX2 there were more icon sets available. Is CX3 limited to Font Awesome because the default calendar is?

                                      You are right. But I’m planning Iconify integration in the future version soon.

                                      Can CX3 in weekly view start from the current day vs. beginning of the week?

                                      From beginning of the week. (by the locale).
                                      For daily view, use CX3A. I think it could show more data conveniently.

                                      I can see there’s a module-header. How can I make the CX3 title from the config show there?

                                      {
                                        module: 'MMM-CalendarExt3',
                                        header: 'whatever',
                                        position: 'bottom_bar',
                                        config: {
                                          mode: 'month',
                                          ...
                                        }
                                      }
                                      

                                      When you set header in config, the module title will be shown. In mode:'month', It will be changed to the value as headerTitleOptions defined automatically. In mode:'week'. It will remain static as you wrote it.
                                      (Do you need more configurable properties for this?)

                                      1. I’m having trouble getting the Day header to show only numeric for the whole week. It shows Month Day (Jul 3) in the first two days and then numeric for the rest. (I tried cellDateOptions: “{day: ‘numeric’}” in the config for the module and it shows “7/3/2023” and “7/4/2023” in the first two days. This is what I had to do to hide it with CSS.

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

                                      I had CX2 showing like this with the title on one line and the time on the next. Can that be done?

                                      May possible, I remember I left the one example in this thread also. But personally I don’t like it because it is not so pretty and somehow wasting the space.
                                      Anyway, It needs heavy CSS tweek, I’ll try to give the example later.

                                      G 1 Reply Last reply Reply Quote 0
                                      • 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

                                            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
                                            • 24
                                            • 25
                                            • 26
                                            • 27
                                            • 28
                                            • 34
                                            • 35
                                            • 26 / 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