Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Event shown #46

Open
wakawalli opened this issue Sep 27, 2020 · 2 comments
Open

Default Event shown #46

wakawalli opened this issue Sep 27, 2020 · 2 comments

Comments

@wakawalli
Copy link

wakawalli commented Sep 27, 2020

When starting the MMM_CalendarWeek I seems a new default calender entry is being created with the Label "Event" - this is matching the start time of magicmirror having opened. A bit annyoing - I have tried to filter this via excludedEvents but I'm not able to properly configurate the exclude statement...
excludedEvents: ['Event', {filterBy:'Event'}],

The Event time is the being updated each time the calender refreshes after 5 minutes

@wakawalli
Copy link
Author

In the MMM-CalendarWeek.js I have added one additional if statement to exclude any Event with the given default event.title = Event that is created from by the javascript file calendarFetcher.js in line 403.

The below lines have been added to the "createEventList: function ()" in line 611:

if(event.title === "Event") {    
  // do not add the current event, skip it
  continue;
  }

@wakawalli
Copy link
Author

any solution to the above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants