• 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.

Calendar: Hide Duplicate Items

Scheduled Pinned Locked Moved Requests
calendarignoreeventsmodule
4 Posts 2 Posters 838 Views 2 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.
  • J Offline
    JordanS
    last edited by Apr 17, 2021, 11:10 AM

    Hi all, I’m new here and I’ll preface this by saying I have no prior knowledge or expereince with programming or MagicMirror specifically. I bought a Raspberry Pi specifically to use with Magic Mirror and I want to learn.

    My question is: Is it possible to hide duplicates of the same item on the Calendar module, such that it only displays the most recent?

    I have some weekly recurring events in my calendar and it fills up my list of upcoming events in the Calendar module very quickly. I don’t want to ignore them all together, I would still like to see the most recent instance of a recurring event, but then ignore any after that.

    Is this possible by modifying the Calendar module, and how complicated would it be? Thank you!

    S 1 Reply Last reply Apr 17, 2021, 12:12 PM Reply Quote 0
    • S Away
      sdetweil @JordanS
      last edited by Apr 17, 2021, 12:12 PM

      @jordans so tell me more. I have spent the last 9 months working on calendar reading different ics files and schedules.

      the process is collect entries in a list and sort the by start date, then take the first maxEntries and show them

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Apr 17, 2021, 2:03 PM Reply Quote 0
      • J Offline
        JordanS @sdetweil
        last edited by Apr 17, 2021, 2:03 PM

        @sdetweil Thanks for the reply, Sam. So it would be possible to filter the list by checking if an entry with an identical name already exists, maybe? For instance, I have a weekly recurring reminder of when to put my waste/recycling out…

        if (!RecylcingCollection )
        {
        add to list
        } else
        {
        skip
        }

        Maybe easier if I got a seperate module all together that could just give me a reminder every week on a certain day…

        S 1 Reply Last reply Apr 17, 2021, 2:05 PM Reply Quote 0
        • S Away
          sdetweil @JordanS
          last edited by Apr 17, 2021, 2:05 PM

          @jordans not possible w default calendar

          but displaying once a week for a weekly is what calendars do… (even tho u may ignore it in the what chart type view)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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