Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED calendar: maximumNumberOfDays is ignored

    Bug Hunt
    2
    3
    2104
    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.
    • binderth
      binderth last edited by

      Platform [ Raspberry Pi 2/3, Windows, Mac OS X, Linux, Etc … ]: Raspberry pi 3

      Node Version [ 0.12.13 or later ]: ? did a new install yesterday

      MagicMirror Version [ V1 / V2-Beta ]: V2

      Description: While showing a google calendar, the argument “maximumNumberOfDays” is ignored.

      Steps to Reproduce: configure a google calendar, add “maximumNumberOfDays” with a low value

      Expected Results: calendar entries shown in Magic Mirror should be max days as described in the value

      Actual Results: calendar entries above maximumNumberOfDays are shown also

      Configuration: What does the used config.js file look like? (Don’t forget to remove any sensitive information.)
      {
      module: ‘calendar’,
      header: ‘Müllkalender’,
      position: ‘top_left’,
      config: {
      calendars: [
      {
      symbol: ‘calendar-times-o’,
      url: ‘webcal://calendar.google.com/calendar/ical/xxx%40group.calendar.google.com/private-xxx/basic.ics’,
      maximumNumberOfDays: ‘7’,
      user: ‘xxx@xxx.de’,
      pass: ‘xxx’
      }
      ]
      }
      },

      Additional Notes: none

      broberg 1 Reply Last reply Reply Quote 0
      • broberg
        broberg Project Sponsor @binderth last edited by broberg

        @binderth You have the maximumNumberOfDays in the wrong place,

        it should be outside the calendar array

        config: {
          calendars: [
               {
                 symbol: ‘calendar-times-o’,
                 url: ‘webcal://calendar.google.com/calendar/ical/xxx%40group.calendar.google.com/private-xxx/basic.ics’,
                 user: ‘xxx@xxx.de’,
                 pass: ‘xxx’
               }
          ],
         maximumNumberOfDays: ‘7’,
        }
        
        
        binderth 1 Reply Last reply Reply Quote 0
        • binderth
          binderth @broberg last edited by

          @broberg said in calendar: maximumNumberOfDays is ignored:

          it should be outside the calendar array

          thanks, that did the trick. I got the “README.md” wrong! 😉

          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy