MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED Calendar module shows entries outer range

    Troubleshooting
    2
    12
    185
    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
      Monkye last edited by

      Hello Together,
      My MM use the standard calendar modules. And the data come from an import via vdirsyncer ICS file. The calendar shows all events with the same day include from outside of the defined range in config file.

      Parameters in CONFIG.JS:
      MaximumNumberOfDays: 30
      MaximumEntries: 10
      GetRelative: 0

      Example:
      at date 2022/03/07 will show

      • Birthday of Jan-Peter Friday 03/11/2022
      • Party at Rico Friday 06/11/2022
      • Wedding anniversary Sunday 08/13/2022
      • …

      It looks like a filter is „ill“…

      Any ideas?

      THX, Uwe

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

        @monkye thanks for the ics file…

        reviewing the events, this is a bug in the RRULE processor the calendar module uses
        but not our code

        https://github.com/jakubroztocil/rrule/issues/275

        if you remove the BYMONTHDAY=11

        RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTHDAY=11
        

        then it works as expected

        just for info, this issue was opened on Sep 5, 2018 and has not yet been fixed
        so I am not hopeful on a more timely resolution

        Sam

        Create a working config
        How to add modules

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

          @monkye can you paste the cal config here

          make the url xxxxx

          remember to use the code block markers

          Sam

          Create a working config
          How to add modules

          M 1 Reply Last reply Reply Quote 0
          • M
            Monkye @sdetweil last edited by

            @sdetweil No problem, the url’s are not a secret :-).

            {
            	module: "calendar",
            	position: "top_left",   // This can be any of the regions. Best results in left or right regions.
            	fetchInterval: 240000,
            	config: {
            		maximumNumberOfDays: 30,
            		maximumEntries: 10,
            		getRelative: 0,
            		calendars: [
            				{
            					symbol: "birthday-cake",
            					url: "http://localhost:8080/modules/default/calendars/1.ics",
            			},
            				{
            					symbol: "calendar-check-o",
            					url: "https://www.zaoe.de/ical/8231/_1-3-4-6/23/"
            			}
            		]
            	}
            },
            
            M 1 Reply Last reply Reply Quote 0
            • M
              Monkye @Monkye last edited by

              And here a picture - SORRY german only

              The Lines marking the events out of date range
              red: december
              blue: august
              yellow: july

              8593dba5-71fd-47be-8547-e7569b12f27a-grafik.png

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

                @monkye but those say Friday and Sunday…

                show me the vevent from the ics

                use the url

                curl -sL url >somfile.ics
                

                then edit the ics w a text editor, it’s just a text file

                each event does

                BEGIN:VEVENT
                .
                .
                .
                END:VEVENT
                

                Sam

                Create a working config
                How to add modules

                M 1 Reply Last reply Reply Quote 0
                • M
                  Monkye @sdetweil last edited by

                  @sdetweil Can I sent you a board mail?

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

                    @monkye u can send text to my email. same userid at gmail

                    Sam

                    Create a working config
                    How to add modules

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Monkye @sdetweil last edited by

                      @sdetweil I sent you the mail to your account. Thank you in advance

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

                        @monkye thanks for the ics file…

                        reviewing the events, this is a bug in the RRULE processor the calendar module uses
                        but not our code

                        https://github.com/jakubroztocil/rrule/issues/275

                        if you remove the BYMONTHDAY=11

                        RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTHDAY=11
                        

                        then it works as expected

                        just for info, this issue was opened on Sep 5, 2018 and has not yet been fixed
                        so I am not hopeful on a more timely resolution

                        Sam

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • M
                          Monkye last edited by

                          Many, many THANKS to you. I‘m happy that you resolve this problem

                          M 1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy