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.
    • M Offline
      MMRIZE @UncleRoger
      last edited by MMRIZE

      @UncleRoger

      1. About the look of the module to mimic the original calendar module;
        Sorry, it can’t. This module is an alternative view of your events listing, not a replacement. If you need only the same look as the original calendar, just use the original.

      2. About the working with MMM-Pages.
        MMM-Pages is a good, reliable module, though it doesn’t consider the multi-instance of the module. So when you need multi-instances and want to show/hide on different pages, it cannot work as expected. Try other paging/screen control module. (e.g. I recommend MMM-Scenes2 with shame.)
        MMM-Scenes2 Demo
        Click to see the DEMO

      My mistake. You can assign class name in MMM-Pages settings. (Thanks @sdetweil )

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

        @MMRIZE i.like you Scenes module.

        but MMM-Pages works fine for multi instance. just don’t use the module name in the page definition

        use page1, page2, page3…
        and then use that in the individual module classes: setting

        super easy and much more clear

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M UncleRogerU 2 Replies Last reply Reply Quote 1
        • M Offline
          MMRIZE @sdetweil
          last edited by

          @sdetweil
          Ah, I misunderstood those identifiers are module name not class name.

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

            @MMRIZE well they are used as class names in the code lookup. each module’s name is
            assigned as a class in the Dom for each module.
            that’s why using module name is not instance aware.

            but classes can be any string, and pages just search for all with that class.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil
              You are right.
              However the example seems somehow ambiguous (though config description) It might mislead someone.(like @UncleRoger or me) :D

              f0805199-72ae-4077-ac02-7227a032afc2-image.png

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

                @MMRIZE yes, I would have preferred my description , but I can’t update the doc.

                depends on where u want the config info (all in the pages config, which doesn’t support multi-instance cause it talks module name)

                or all at the modules. page1, page2. etc

                understandable, but spread out.

                edit : I updated the MMM-Pages readme (also the front page of the module on Github )to describe this
                https://github.com/sdetweil/MMM-pages

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 1
                • UncleRogerU Offline
                  UncleRoger @sdetweil
                  last edited by

                  @sdetweil @MMRIZE
                  You guys are amazing! Thank you!

                  Scenes2 looks really interesting but I think it’s probably overkill for what I’m trying to do (MagicMirror swapping with Mr. Rogers’ Picture Picture). I could see that there are a lot of possibilities with it. I might play around with it for a future build.

                  The reason I have two calendar modules is that one is displayed for the dinner menu and one is there just to define the calendars for MMM-MonthlyCalendar. I’m planning on playing with CalendarExt3 to see if I like it better than MonthlyCalendar but the latter was quick and easy to get going.

                  Anyway, thanks again!

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

                    @UncleRoger if it doesn’t have a position, it would.
                    be in the fixed section of pages, else it would think it is suspended, and not operate. fixedeans on all pages, but it still wouldn’t be shown

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    C 1 Reply Last reply Reply Quote 1
                    • C Offline
                      CDT @sdetweil
                      last edited by

                      Possible bug here. The Agenda doesn’t show scheduled events on the final day as set by the endDateIndex.

                      I’m trying to get the Ext3Agenda to show me just a single day. Using startDayIndex:0, endDateIndex:0. When doing this, it only shows full-day events, not events scheduled a specific time.

                      If I change endDateIndex:1, then I get the proper items appearing, but also a header for day 2.

                      I notice that not matter what the endDateIndex is listed, it doesn’t seem to show sheduled events the last day. Only the header and any full-day events.

                      M luisestradaL 3 Replies Last reply Reply Quote 0
                      • M Offline
                        MMRIZE @CDT
                        last edited by

                        @CDT thanks. I’ll check.

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

                          @CDT
                          I’ve fixed it. Thanks for reporting it.

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

                            @CDT said in MMM-CalendarExt3Agenda:

                            Possible bug here. The Agenda doesn’t show scheduled events on the final day as set by the endDateIndex.

                            I’m trying to get the Ext3Agenda to show me just a single day. Using startDayIndex:0, endDateIndex:0. When doing this, it only shows full-day events, not events scheduled a specific time.

                            If I change endDateIndex:1, then I get the proper items appearing, but also a header for day 2.

                            I notice that not matter what the endDateIndex is listed, it doesn’t seem to show sheduled events the last day. Only the header and any full-day events.

                            I think you are referring to the same issue I posted a while ago but unfortunately I was not able to make myself clear.

                            1 Reply Last reply Reply Quote 0
                            • luisestradaL luisestrada referenced this topic on
                            • C Offline
                              CDT @MMRIZE
                              last edited by

                              @MMRIZE
                              Works perfectly now, thanks!

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

                                Happy new year everyone!

                                Indeed the fix works now. Thank you @MMRIZE

                                Another comment, even though “dentro de X días” is correct in Spanish it’s also long. It could also be said “En X días” and it will be also correct. Not an issue but a suggestion.
                                Screen Shot 2024-01-03 at 12.33.33 AM.png

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

                                  @luisestrada I believe that’s a translation error - and may not even be “our” fault…

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

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

                                    @BKeyport I tried to find the source but no idea where this comes from.

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

                                      @BKeyport said in MMM-CalendarExt3Agenda:

                                      @luisestrada I believe that’s a translation error - and may not even be “our” fault…

                                      I see there’s nothing we can do, with my limited programming skills I was able to get to row 271 in MMM-CalendarExt3Agenda.js

                                      let p = new Intl.RelativeTimeFormat(options.locale, { numeric: "auto", style: "long" })
                                      

                                      and I found out that Intl​.Relative​Time​Format is written like that, for Spanish locale settings.

                                      As I said before it’s not wrong but they could have said “en 3 días” instead of “dentro de 3 días”. It’s like in English when you say “in 3 days” and “within 3 days”.

                                      https://hpneo.dev/2019/05/13/apis-internacionalizacion.html#:~:text=Intl​.,-Relative​Time&text=Relative​Time​Format es una API interesante que,podemos hacerlo con esta API.

                                      M 3 Replies Last reply Reply Quote 0
                                      • M Offline
                                        MMRIZE @luisestrada
                                        last edited by

                                        @luisestrada
                                        I’ll prepare how to customize it soon. I’m on travel abroad now and will return to next week. Plz wait a while. Until then, you can hide it with css.

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

                                          @luisestrada
                                          Almost done (not yet released).
                                          By the way, which locale did you use and which country are you living?

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

                                            @luisestrada
                                            Done. (Released. v1.4.2)
                                            A new config value, relativeNamedDayOptions, is introduced. Now People can modify the option generally.

                                            However, for your specific purpose (en X días instead of dentro de X días), further step is needed.

                                            Only the Mexican locale supports en X días format with relativeNamedDayOptions: {style : 'short' }, other Spanish-locales don’t.
                                            So to get en X días, you have to use locale: 'es-MX' regardless of which country you live.

                                            locale: "es-MX",
                                            relativeNamedDayOptions: {
                                            	style: "short",
                                            },
                                            

                                            077dac12-38a4-4b6a-8bf3-049b35d08783-image.png

                                            If you are living in Mexico, there would be no issue. But in other countries where the week starts on Monday, 2 more configuration is needed.

                                            locale: "es-MX",
                                            relativeNamedDayOptions: {
                                            	style: "short",
                                            },				
                                            firstDayOfWeek: 1,
                                            minimalDaysOfNewYear: 4,
                                            

                                            bbfdc421-775f-4233-a6a7-ec64ffea0dc7-image.png

                                            Of course, if you don’t care dentro de 3 días, You can use any locale under which you live.

                                            locale: "es-ES",
                                            

                                            8dfad298-6fea-42ad-bb1d-3a8907e24f22-image.png

                                            luisestradaL 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
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 9 / 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