config.js 3.6 KB

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