config.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. let config = {
  2. address: "0.0.0.0",
  3. port: 8080,
  4. basePath: "/",
  5. ipWhitelist: [],
  6. useHttps: false,
  7. language: "de",
  8. locale: "de-DE",
  9. logLevel: ["INFO", "LOG", "WARN", "ERROR"],
  10. timeFormat: 24,
  11. units: "metric",
  12. modules: [
  13. {
  14. module: 'MMM-Carousel',
  15. position: 'bottom_bar',
  16. config: {
  17. transitionInterval: 30000,
  18. showPageIndicators: true,
  19. showPageControls: false,
  20. ignoreModules: [],
  21. mode: 'slides',
  22. slides: {
  23. Main: [
  24. { name: 'clock', position: "top_left", carouselId: "1" },
  25. { name: 'calendar', position: "middle_center", carouselId: "1" }
  26. ],
  27. "Slide 2": [
  28. { name: 'clock', classes: '', position: "top_left", carouselId: "2" }
  29. ]
  30. }
  31. }
  32. },
  33. {
  34. module: 'clock',
  35. position: "top_left",
  36. config: {
  37. timeFormat: 24,
  38. carouselId: '1'
  39. }
  40. },
  41. {
  42. module: 'clock',
  43. position: "top_left",
  44. config: {
  45. timeFormat: 12,
  46. carouselId: '2'
  47. }
  48. },
  49. {
  50. module: "calendar",
  51. position: "middle_center", // This can be any of the regions. Best results in left or right regions.
  52. config: {
  53. carouselId: "1",
  54. tableClass: "large wachenaufgaben",
  55. fetchInterval: 600000,
  56. maxTitleLength: 50,
  57. displaySymbol: true,
  58. maximumNumberOfDays: 1,
  59. showLocation: false,
  60. maxTitleLines: 1,
  61. maximumEntries: 9,
  62. calendars: [
  63. {
  64. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
  65. symbolClass: 'todo-symbol',
  66. titleClass: 'todo-title',
  67. timeClass: 'todotime',
  68. symbol: 'clipboard-list-check',
  69. },
  70. {
  71. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8/?export',
  72. symbolClass: 'clean-symbol',
  73. titleClass: 'clean-title',
  74. timeClass: 'clean-time',
  75. symbol: 'vacuum',
  76. },
  77. {
  78. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
  79. symbolClass: 'info-symbol',
  80. titleClass: 'info-title',
  81. timeClass: 'info-time',
  82. symbol: 'circle-info',
  83. maximumNumberOfDays: 7,
  84. }
  85. ]
  86. }
  87. }
  88. ]
  89. }