mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
I fixed the calendar module, which did not show calendar entries from different calendars that share the same name and start date. My use case: We have each office days documented in each an own calendar. If both "Office" Calendar entries start at the same date just one was shown Google Calendar (each Office event in an own calendar)  Before  After 
37 lines
833 B
JavaScript
37 lines
833 B
JavaScript
/* MagicMirror² Test config for multiple calendar events having the same name and start date/time
|
|
*
|
|
* By Paranoid93 https://github.com/Paranoid93/
|
|
* MIT Licensed.
|
|
*/
|
|
let config = {
|
|
timeFormat: 12,
|
|
|
|
modules: [
|
|
{
|
|
module: "calendar",
|
|
position: "bottom_bar",
|
|
config: {
|
|
maximumEntries: 30,
|
|
hideDuplicates: false,
|
|
calendars: [
|
|
{
|
|
maximumEntries: 15,
|
|
maximumNumberOfDays: 10000,
|
|
url: "http://localhost:8080/tests/mocks/calendar_test.ics" // contains 11 events
|
|
},
|
|
{
|
|
maximumEntries: 15,
|
|
maximumNumberOfDays: 10000,
|
|
url: "http://localhost:8080/tests/mocks/calendar_test_clone.ics" // clone of upper calendar
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
|
if (typeof module !== "undefined") {
|
|
module.exports = config;
|
|
}
|