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! ;)
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