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-CalendarExt2 filter

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 3 Posters 932 Views 3 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
      MarNog
      last edited by

      My calendar sometimes displays no events, sometimes displays all events including what supposed to filtered, and sometimes display events all except the filtered events (This is what I would like to accomplish). after a refresh, i never know what it is going to display. Is my filter configuration correct?
      Thanks

      This picture shows all the events. It should filtered the events starting with “OUT”
      AllEventsShowing.jpg

      This picture shows the correct number of events. the “OUT” has been filtered
      EventsFIlteredCorrectly.jpg

      And finally, this one shows no events at all
      NOEventsShowing.jpg

      {
        module: 'MMM-CalendarExt2',
        config: {
          calendars : [
            {
      	name: "CTC Calendar",
              url: "hidden",
      	filter: (event) => {
                   if (event.title.startsWith("OUT")) {
                   	return false
                   	}
      	     return true
      	},
            },
          ],
          views: [
            {
      	name: "CTC Calendar",
      	title: "Computer Technology Center Schedule",
              mode: "daily",
      	slotCount: 1,
      	position: "top_left",
      	timeFormat: "h:mm A",
      	//maxItems: 1000,
      	hideOverflow: false,
            },
      	{
      	//title: "Computer Technology Center Schedule",
              mode: "daily",
      	slotCount: 1,
      	fromNow: 1,
      	position: "top_left",
      	timeFormat: "h:mm A",
      	//maxItems: 500,
            },
          ],
          scenes: [
            {
              name: "DEFAULT",
            },
          ],
        },
      },
      
      BKeyportB M 2 Replies Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @MarNog
        last edited by

        @MarNog It might not be the filter breaking things - it could be CX2’s calendar engine. CX3Agenda does retrieval through the built in Calendar app and just displays - I’d highly recommend going to that, as it’s fully supported, unlike CX2.

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

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

          @MarNog
          Config itself seems nothing wrong. I need more details to examine what happened. Could you send me the whole config and both frontend/backend logs when the symptom occurred?

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

            @BKeyport Is it possible to display an “agenda” style calendar like the first picture using MMM-CalendarEXT3? I have tried some configuration options, but I have not been able to replicate the first screen shot on the first post. Thank you.

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

              @MMRIZE I am not sure what has happened, but it has been working beautifully for the last two days. I kept the configuration listed on the first post and I have also changed the filter to use the “search” option which also worked flawless. So, everything is working!
              You and BKeyport suggested to move on to CX3. Is it possible to create a calendar “Agenda” style like the ones on the screenshot on the first post? This style works really well for us. Thank you!

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

                @MarNog
                If you possible, send me the URL of ics to me.
                (eouia0819@gmail.com)

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

                  @MarNog @mmrize made CalExt3Agenda for that very purpose. Most people will want either one or the other, not both - or if they’re like me, run the two modules side by side.

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

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

                    @BKeyport Thanks a lot for pointing it out. I just realized that the third-party module list on the magicmirror.buider is not complete and the forum is an must go place for information and support.
                    I have added MMM-CalendarEXT3Agenda and it is working. Of course it is not perfect, but I have posted a question related on the MMM-CalendarExt3Agenda main topic.
                    Thank you folks very much!

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