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: maximumNumberOfDays is ignored

    Scheduled Pinned Locked Moved Solved Bug Hunt
    3 Posts 2 Posters 2.8k Views 1 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.
    • binderthB Offline
      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

      brobergB 1 Reply Last reply Reply Quote 0
      • brobergB Offline
        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’,
        }
        
        
        binderthB 1 Reply Last reply Reply Quote 0
        • binderthB Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 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