-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdemo.config.js
More file actions
85 lines (84 loc) · 2.28 KB
/
Copy pathdemo.config.js
File metadata and controls
85 lines (84 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
let config = {
address: "0.0.0.0",
ipWhitelist: [],
logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"],
language: "de",
locale: "de-DE",
timeFormat: 24,
units: "metric",
modules: [
{
module: "clock",
position: "top_left",
config: {
displaySeconds: false,
showDate: true
}
},
{
module: "calendar",
position: "top_left",
header: "Calendar",
config: {
broadcastPastEvents: true,
calendars: [
{
name: "Holidays DE",
url: "https://calendar.google.com/calendar/ical/en.german%23holiday%40group.v.calendar.google.com/public/basic.ics",
symbol: "calendar"
},
{
// Static test calendar (Jan 2030) for testing maxEventLines behavior
name: "MaxEventLines Test",
url: "http://localhost:8080/modules/MMM-CalendarExt3/test-calendar-static.ics",
symbol: "flask",
color: "#00ccff"
}
]
}
},
{
module: "MMM-CalendarExt3",
position: "bottom_bar",
header: "Week View - January 2026",
config: {
mode: "week",
instanceId: "weekCalendar",
locale: "de-DE",
firstDayOfWeek: 1,
weeksInView: 3,
maxEventLines: 5,
dynamicWeekHeight: true,
displayLegend: true,
useMarquee: true,
showWeekNumber: true,
referenceDate: 1767571200000, // Jan 5, 2026 (Monday)
calendarSet: [],
// This function tests that callbacks survive MM v2.35.0 (served as JSON).
// If the fix works, all event titles are prefixed with "★ ".
eventTransformer: event => {
event.title = "★ " + event.title
return event
}
}
},
{
module: "MMM-CalendarExt3",
position: "top_right",
header: "Month View - Current Month",
config: {
mode: "month",
instanceId: "monthCalendar",
locale: "de-DE",
firstDayOfWeek: 1,
maxEventLines: 4,
displayLegend: false,
fontSize: "14px",
eventHeight: "18px",
calendarSet: []
}
}
]
}
/** ************* DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") { module.exports = config }