Read the statement by Michael Teeuw here.
calendar: maximumNumberOfDays is ignored
-
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
-
@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’, }
-
@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! ;)