config.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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: "alert",
  15. },
  16. {
  17. module: "updatenotification",
  18. position: "top_bar"
  19. },
  20. {
  21. module: 'MMM-Carousel',
  22. position: 'bottom_bar',
  23. config: {
  24. transitionInterval: 22000,
  25. showPageIndicators: true,
  26. showPageControls: false,
  27. ignoreModules: ["MMM-BurnIn"],
  28. mode: 'slides',
  29. slides: {
  30. "Main": [
  31. { name: 'clock', position: "top_left", carouselId: "1" },
  32. { name: 'weather', position: "top_right", carouselId: "1" },
  33. { name: 'MMM-DWD-WarnWeather', position: "top_right", carouselId: "1" },
  34. { name: 'compliments', position: "middle_center", carouselId: "1" },
  35. { name: 'newsfeed', position: "bottom_bar", carouselId: "1" }
  36. ]
  37. }
  38. }
  39. },
  40. {
  41. module: "clock",
  42. position: "top_left",
  43. config: {
  44. carouselId: '1',
  45. timeFormat: 24,
  46. }
  47. },
  48. {
  49. module: "weather",
  50. position: "top_right",
  51. config: {
  52. carouselId: "1",
  53. weatherProvider: "openweathermap",
  54. type: "current",
  55. location: "Worms",
  56. locationID: "2806142",
  57. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  58. }
  59. },
  60. {
  61. module: "weather",
  62. position: "top_right",
  63. header: "Wettervorhersage",
  64. config: {
  65. carouselId: "1",
  66. weatherProvider: "openweathermap",
  67. type: "forecast",
  68. location: "Worms",
  69. locationID: "2806142",
  70. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  71. }
  72. },
  73. {
  74. module: 'MMM-DWD-WarnWeather',
  75. position: 'top_right',
  76. config: {
  77. carouselId: "1",
  78. region: 'Worms',
  79. changeColor: true,
  80. minutes: false,
  81. displayRegionName: true,
  82. displayInnerHeader: true,
  83. interval: 10 * 60 * 1000,
  84. loadingText: 'Warnungen werden geladen...',
  85. noWarningText: 'Keine Warnungen',
  86. severityThreshold: 2
  87. }
  88. },
  89. {
  90. module: "compliments",
  91. position: "middle_center",
  92. config: {
  93. carouselId: "1",
  94. updateInterval: 20000,
  95. fadeSpeed: 3000,
  96. morningStartTime: 6,
  97. morningEndTime: 12,
  98. afternoonStartTime: 12,
  99. afternoonEndTime: 19,
  100. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/7a19397c80610e82bb6d3272f784f0a76808ca6b/compliments.json"
  101. }
  102. },
  103. {
  104. module: "newsfeed",
  105. position: "bottom_bar",
  106. config: {
  107. carouselId: "1",
  108. feeds: [
  109. {
  110. title: "Tagesschau.de",
  111. url: "https://www.tagesschau.de/xml/rss2/",
  112. ignoreOlderThan: "345600000"
  113. },
  114. {
  115. title: "Schwarzwälder Bote - Rottweil",
  116. url: "https://www.schwarzwaelder-bote.de/rottweil.rss.feed",
  117. ignoreOlderThan: "345600000"
  118. },
  119. {
  120. title: "Der Postillon",
  121. url: "http://feeds.feedburner.com/blogspot/rkEL",
  122. ignoreOlderThan: "345600000"
  123. }
  124. ],
  125. showSourceTitle: true,
  126. showPublishDate: true,
  127. broadcastNewsFeeds: false,
  128. broadcastNewsUpdates: false
  129. }
  130. },
  131. {
  132. module: "MMM-BurnIn",
  133. position: "bottom_bar",
  134. config: {
  135. updateInterval: 15,
  136. invertDuration: 5
  137. }
  138. }
  139. ]
  140. };
  141. /*************** DO NOT EDIT THE LINE BELOW ***************/
  142. if (typeof module !== "undefined") { module.exports = config; }