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

Scheduled Pinned Locked Moved Solved Bug Hunt
3 Posts 2 Posters 2.6k 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.
  • B Offline
    binderth
    last edited by Dec 27, 2016, 9:30 AM

    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

    B 1 Reply Last reply Dec 27, 2016, 10:40 AM Reply Quote 0
    • B Offline
      broberg Project Sponsor @binderth
      last edited by broberg Dec 27, 2016, 10:42 AM Dec 27, 2016, 10:40 AM

      @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’,
      }
      
      
      B 1 Reply Last reply Dec 27, 2016, 10:45 AM Reply Quote 0
      • B Offline
        binderth @broberg
        last edited by Dec 27, 2016, 10:45 AM

        @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
        1 / 1
        • First post
          1/3
          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