heskja / MMM-CalendarWeek

Alternative calendar module for MagicMirror.
MIT License
53 stars 22 forks source link

Default Event shown #46

Open wakawalli opened 4 years ago

wakawalli commented 4 years ago

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 commented 4 years ago

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 commented 12 months ago

any solution to the above?