• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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
654 Posts 77 Posters 1.8m Views 81 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 Away
    sdetweil @luisestrada
    last edited by sdetweil Jun 6, 2022, 11:58 PM Jun 6, 2022, 11:56 PM

    @luisestrada the info inside(event broadcast) is still the same
    and u didn’t need to do the rename. it supports multiple instances

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    L 1 Reply Last reply Jun 7, 2022, 2:44 AM Reply Quote 0
    • S Away
      sdetweil @MMRIZE
      last edited by Jun 6, 2022, 11:59 PM

      @MMRIZE u can see in config if multiple instances and maybe the ‘from’ on notification

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • L Offline
        luisestrada @MMRIZE
        last edited by Jun 7, 2022, 2:38 AM

        @MMRIZE said in MMM-CalendarExt3:

        @luisestrada
        Well, I was worried about just that case when I developed this module - multiple calendar instances. I thought Nobody would use the calendar module like that. So I haven’t considered supporting that case. But I was wrong.

        The current behaviour of this module is replacing whole events when the notification arrives, not combining each. So you cannot get proper whole events from multi-emitter of notifications.

        I’ll modify the module in a few days to stack each event not replace it. Wait for a little.

        Thank you, I will show you my code so you all can understand the mess I did :beaming_face_with_smiling_eyes:

        @MMRIZE said in MMM-CalendarExt3:

        @luisestrada
        By the way, your configuration is not quite effective. Some options are located in the wrong place, some are invalid.

        • All module-specific user configuration should be placed in config: { ... }. Your waitFecth or eventTimeOptions and something more would not be applied.

        • there is no fetchInterval or rotateInterval option in CX3.

        • broadcastPastEvents is not for CX3 module but for calendar module.

        • refreshInterval: 1000 * 60 * 1 means redraw calendar every 1 minute. Is it really needed?

        It was supposed to be ten minutes but because I was trying and adding and testing, I forgot to change it back

        1 Reply Last reply Reply Quote 0
        • L Offline
          luisestrada @sdetweil
          last edited by Jun 7, 2022, 2:44 AM

          @sdetweil said in MMM-CalendarExt3:

          @luisestrada the info inside(event broadcast) is still the same
          and u didn’t need to do the rename. it supports multiple instances

          All calendar were working under the same name, however i thought it was the cause of the blank CX3 so that’s why i tried to create one version for each module as a last resort

          1 Reply Last reply Reply Quote 0
          • L Offline
            luisestrada
            last edited by Jun 7, 2022, 4:20 AM

            My code with the changes based on your feedback (and it seems to be working for now) Thank you!

            //Calendar hidden Module
                    {
                        module: "calendar",
                        //position: "top_left",
                        header: "Eventos",
                        config: {
                            broadcastPastEvents: true, // <= IMPORTANT to see past events
                            instanceId: "WeeklyCalendar",
                            calendars: [
                                {
                                    url: "URL1",
                                    name: "Cal1", // <= RECOMMENDED to assign name
                                    color: "#0760d1", // <= RECOMMENDED to assign color
                                    symbol: false
                                },
                                {
                                    url: "URL2",
                                    name: "Cal2", // <= RECOMMENDED to assign name
                                    color: "#2a4d56", // rgb(92%, 33%, 55%), // <= RECOMMENDED to assign color
                                    symbol: "birthday-cake"
                                },
                                {
                                    url: "URL3",
                                    name: "Cal3", // <= RECOMMENDED to assign name
                                    color: "#333", // rgb(92%, 33%, 55%), // <= RECOMMENDED to assign color
                                    symbol: "bank"
                                },
                                {
                                    url: "URL4",
                                    name: "Cal4", // <= RECOMMENDED to assign name
                                    color: "#3f0101", // <= RECOMMENDED to assign color
                                    symbol: "flag"
                                },
                                {
                                    url: "URL5",
                                    name: "Cal5, // <= RECOMMENDED to assign name
                                    color: "#765f02", //rgb(58%, 24%, 45%) // <= RECOMMENDED to assign color
                                    symbol: "flag"
                                },
                                ],
                        }
                    },
            // CX3 Module
                    {
                        module: "MMM-CalendarExt3",
                        position: "bottom_bar",
                        title: "Calendario",
                        config: {
                            mode: "week",
                            instanceId: "WeeklyCalendar",
                            locale: 'es-CO',
                            maxEventLines: 3,
                            firstDayOfWeek: 0,
                            weekIndex: 0,
                            weeksInView: 4,
                            waitFetch: 1000 * 10, //	(ms) waiting the fetching of last calendar to prevent flickering view by too frequent fetching.
                            refreshInterval: 1000 * 60 * 10, //	(ms) refresh view by force if you need it.
                            glanceTime: 1000 * 60 * 10,	// (ms) Return to original view when you move to other moment by notification.
                            eventTimeOptions: {
                                timeStyle: "short"
                            },
                            //useSymbol: false,
                            calendarSet: ['Cal1', 'Cal2', 'Cal3', 'Cal4', 'Cal5'],
                            }
                    },
            

            Now these 3 calendars seem not to be conflicting with CX3

            {
            			module: "calendar2",
            			header: "CAL2",
            			position: "top_left",
            			config: {
            				calendars: [
            					{
                                    url: "CAL2"
                                },
            				],
            				maximumEntries: "2",
                            wrapEvents: true
            			}
            		},
            {
            			module: "calendar2",
            			header: "CAL3",
            			position: "top_left",
            			config: {
            				calendars: [
            					{
                                    url: "CAL3"
                                },
            				],
            				maximumEntries: "3",
                            wrapEvents: true
            			}
            		},
            {
            			module: "calendar2",
            			header: "CAL",
            			position: "top_left",
            			config: {
            				calendars: [
            					{
                                    url: "CAL"
                                },
            				],
            				maximumEntries: "5",
                            wrapEvents: true
            			}
            		},
            

            Sorry for the long message

            L 1 Reply Last reply Jun 7, 2022, 4:22 AM Reply Quote 0
            • L Offline
              luisestrada @luisestrada
              last edited by Jun 7, 2022, 4:22 AM

              @luisestrada said in MMM-CalendarExt3:

              My code with the changes based on your feedback (and it seems to be working for now) Thank you!

              I talked too fast, I pressed submit and the issue came back :anxious_face_with_sweat:

              M 1 Reply Last reply Jun 7, 2022, 7:25 AM Reply Quote 0
              • M Offline
                MMRIZE @luisestrada
                last edited by Jun 7, 2022, 7:25 AM

                @luisestrada
                By your configuration;

                • It will be refreshed every refreshInterval by force. You’ve set up 10 minutes.
                • It will be refreshed after 10 seconds(waitFetch) of the last calendar parsed. a more frequent parsing of your calendar would be a more frequent updating view. If your 5 calendars finish their parsing in 10 seconds together, the view will be updated once. Meanwhile parsing your 5 calendars would take dozen seconds sequentially, the view will be flickering. In that case, set waitFetch longer.

                Anyway, I’ll release more improved version for frequent CALENDAR_EVENTS in a few days. Plz wait a little.

                L 1 Reply Last reply Jun 8, 2022, 2:36 AM Reply Quote 0
                • L Offline
                  luisestrada @MMRIZE
                  last edited by Jun 8, 2022, 2:36 AM

                  @MMRIZE said in MMM-CalendarExt3:

                  @luisestrada
                  By your configuration;

                  • It will be refreshed every refreshInterval by force. You’ve set up 10 minutes.
                  • It will be refreshed after 10 seconds(waitFetch) of the last calendar parsed. a more frequent parsing of your calendar would be a more frequent updating view. If your 5 calendars finish their parsing in 10 seconds together, the view will be updated once. Meanwhile parsing your 5 calendars would take dozen seconds sequentially, the view will be flickering. In that case, set waitFetch longer.

                  Anyway, I’ll release more improved version for frequent CALENDAR_EVENTS in a few days. Plz wait a little.

                  Thank you @MMRIZE , I took your recommendations.

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    luisestrada
                    last edited by Jun 15, 2022, 4:18 PM

                    Hi again,

                    I read I did not have to do anything to get the weather displayed, however I still don’t see it. Any idea why?

                    M 1 Reply Last reply Jun 15, 2022, 7:16 PM Reply Quote 0
                    • M Offline
                      MMRIZE @luisestrada
                      last edited by Jun 15, 2022, 7:16 PM

                      @luisestrada
                      Displaying the weather icon is an experimental feature. It would be applied from the next version of MagicMirror (ver 2.20) which will be released the next July.

                      At this moment(with the current MagicMirror 2.19), you can try like this;

                      cd MagicMirror // Your MM installed directory
                      git pull // to update latest version. If your MM was quite old, you might need additional command `npm install`
                      git checkout develop // Change the branch to develop version.
                      

                      You don’t need this method after July.

                      L 1 Reply Last reply Jun 16, 2022, 1:43 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 65
                      • 66
                      • 4 / 66
                      • 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