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.

    Filter events on Calendar Module

    Scheduled Pinned Locked Moved Development
    3 Posts 3 Posters 1.0k 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.
    • P Offline
      pedromrsantos
      last edited by

      Hi,

      I’m working on a project that uses the MagicMirror to show where is happening the meetings and presentations like rooms and security issues.
      Does anyone know if it’s possible to filter on a calendar only some events by it’s name or specific words?
      Thanks in advance!

      Kind regards,

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        NathTheDude @pedromrsantos
        last edited by

        Hey @pedromrsantos,

        I know this post is quite old but I have just gotten around to setting up my new MM setup, not sure if filtering can be done with the standard calendar but it is possible with the module ‘MMM-CalendarExt2’.

        With this example I am able to filter out events that have ‘birthday’ in the title:

        filter: (event) =>{
          if (event.title.search(“Birthday”) > -1) {
            return true
          } else {
            return false
          }
        },
        

        On my setup I am importing 3 ics files and the displaying different views on my screen, one of them is a list of birthdays from three calendars.

        Let me know if you need more info.

        Cheers

        Nathan

        1 Reply Last reply Reply Quote 1
        • A Offline
          a94marbo
          last edited by

          Where do you paste that code? config.js?

          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