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.
    • mumblebajM Offline
      mumblebaj Module Developer @bicolorbore586
      last edited by

      @bicolorbore586 If I am not mistaken, your return goes outside the IF statement

      Check out my modules at: https://github.com/mumblebaj?tab=repositories
      Check my blog-post: https://mumblebaj.xyz/
      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

        @mumblebaj

        Try this:

        eventTransformer: function(ev) {
          if (ev.title.search(“Ben”) > -1)  ev.className = “Ben”;
          return ev
        }
        

        directly off the README.md :

        eventTransformer: (ev) => {
          if (ev.title.search('John') > -1) ev.color = 'blue'
          return ev
        }
        

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

        1 Reply Last reply Reply Quote 0
        • B Offline
          bicolorbore586 @mumblebaj
          last edited by

          @mumblebaj so that now means I can see the events again, but still not coloured how I want.

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

            I’m having some issues with broadcastPastEvents: true. Past events aren’t showing up on the calendar. Below is the default calendar code and the MMM-CalendarExt3 code. As well as a screenshot.

            {
            			module: "calendar",
            			header: "Events",
            			position: "top_left",
            			config: {
            				fetchInterval: "1000",
            				colored: true,
            				broadcastPastEvents: true,
            				calendars: [
            					{
            						name: "us_holidays",
            						url: //URL//,
            						symbol: "calendar-check",
            						color: "#338FFF",
            						broadcastPastEvents: true,
            					},
            					{
            						name: "mikes_cal",
            						url:  //URL//,
            						
            					},
            					{
            						name: "dinners",
            						url:  //URL//,
            						symbol: "utensils",
            						color: "#FFFB21",
            						broadcastPastEvents: true,
            					},
            				]
            			}
            		},
            
            {
            			module: "MMM-CalendarExt3",
            			position: "bottom_right",
            			weekIndex: "0",
            			config: {
            				broadcastPastEvents: true,
            				mode: "week",
            				firstDayOfWeek: "0",
            				refreshInterval: "10000",
            				calendarSet: ['us_holidays','mikes_cal','dinners'],
            			}
            		},
            

            a0ac3fee-a5d4-4249-bb24-a9cc4578a959-image.png

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

              @mike23pizzo it’s only set before the calendars list.

              what mm version are u on? fix in latest 2.20 for events being truncated

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil when I start MM it says Starting MagicMirror: v2.21.0.

                When you mention that it’s only set before the calendars list, do you mean as long as it’s listed in the config on the default calendar it should feed down to MMM-CalendarExt3?

                EDIT: It seems the past events are now showing. I didn’t change anything in the config file, so I’m not quite sure what fixed it. But as of now they are there.

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

                  @mike23pizzo yes, in the common calendar config not with each calendar/url entry

                  glad it’s working… past events can be a big pile

                  I see just fromm 2015

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DDE12
                    last edited by

                    My events are displayed in reverse chronological order in mode: “week”. Where is the setting the for this? I can post the config.js settings if necessary.
                    Reverse order.PNG

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

                      @DDE12
                      Only in week mode, does that symptom happen?
                      What’s your environment? (Platform, OS, Browser)

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

                        @MMRIZE
                        Occurs in week and month modes. I am using Windows 10 and Firefox. I just tested it in Edge to see and it is in the correct order. I also looked at it Pale Moon browser (Firefox like fork) and it shows the date and reversed chrono order, but no time.

                        Pale Moon reverse order.PNG

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

                          @DDE12 @sfb

                          Firefox has different behaviours with Chromium-based browsers(Chrome, Edge, Whale, …) in sorting algorithms.

                          The quick fix is to add eventSorter to your config for MMM-CalendarExt3 module.

                          // In your MMM-CalendarExt3 module config
                          eventSorter: null,
                          

                          Related issue : https://forum.magicmirror.builders/post/103041

                          This will be fixed on next update.

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

                            @DDE12
                            For the displaying date and not-time issue;
                            I don’t know about the Pale Moon browser detail. It seems it has its own JavaScript Engine but is not compatible with current mainstream JS. It is still being developed prematurely, so many features which other browsers have are not implemented yet.

                            I found it on its homepage
                            e53a5d79-3eda-462e-9a48-f21934740396-image.png
                            It looks like Intl object(which is used to format date and time on this module) is not implemented fully yet.

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

                              @MMRIZE
                              Thanks! eventSorter fixed it in Firefox and it corrected the order in Pale Moon. Personally, I’m not too concerned about the date thing in Pale Moon. I just thought I would try MM there and see what it looked like.

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

                                I’m a noob…

                                I’m trying to create a MM for my wife. I want to display my family calendar in cx3 but I’m having troubles.
                                I’m using mmm-googleCalendar to access my family calendar and you can see it’s working when displayed in the bottom right but for some reason won’t display in cx3:
                                mm.png

                                Here’s my config:
                                conf.jpg

                                Any ideas what I’m doing wrong? TIA

                                S M 2 Replies Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @katalopapi
                                  last edited by sdetweil

                                  @katalopapi CX3 depends on the calendar module broadcasting the events it read. soCX3 doesn’t read the cal itself.

                                  I don’t know if mmm-googlecalendar does the broadcast

                                  u can setup the default calendar and not give it a position, but have it broadcast events

                                  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
                                    katalopapi @sdetweil
                                    last edited by

                                    @sdetweil Thanks for the info:
                                    “u can setup the default calendar and not give it a position, but have it broadcast events”
                                    I assume you are saying I can display the family calendar using the default calendar module, is that correct? If so, do you have a pointer to start me in the right direction? I don’t see an ICAL associated with the google family calendar. I thought I needed mmm-googleCalendar for that.

                                    “I don’t know if mmm-googlecalendar does the broadcast”
                                    From the CX3 github readme:
                                    Compatible with randomBrainstormer/MMM-GoogleCalendar
                                    eventTransformer: (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
                                    }

                                    Do I need to add the eventTransformer code to get it to add the googleCalendar events?
                                    Thanks

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

                                      @katalopapi
                                      There is some tip explanation on readme doc to use with google-calendar module.

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

                                        @MMRIZE Do you have any example config you could share for using mmm-googleCalendar?

                                        M 1 Reply Last reply Reply Quote 1
                                        • S Offline
                                          sdetweil @katalopapi
                                          last edited by sdetweil

                                          @katalopapi googlecalendar doc says broadcastEvents:true

                                          Screenshot_20221204-125304_One UI Home.jpg

                                          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 @katalopapi
                                            last edited by MMRIZE

                                            @katalopapi
                                            We both posted at same time, so your previous post was right.

                                            195a7b93-ac7e-4b29-95d3-09919b35026b-image.png

                                            K 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
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 34
                                            • 35
                                            • 10 / 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