config.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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: 'newsfeed', position: "bottom_bar", carouselId: "1" }
  35. ]
  36. }
  37. }
  38. },
  39. {
  40. module: "clock",
  41. position: "top_left",
  42. config: {
  43. carouselId: '1',
  44. timeFormat: 24,
  45. }
  46. },
  47. {
  48. module: "weather",
  49. position: "top_right",
  50. config: {
  51. carouselId: "1",
  52. weatherProvider: "openweathermap",
  53. type: "current",
  54. location: "Worms",
  55. locationID: "2806142",
  56. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  57. }
  58. },
  59. {
  60. module: "weather",
  61. position: "top_right",
  62. header: "Wettervorhersage",
  63. config: {
  64. carouselId: "1",
  65. weatherProvider: "openweathermap",
  66. type: "forecast",
  67. location: "Worms",
  68. locationID: "2806142",
  69. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  70. }
  71. },
  72. {
  73. module: 'MMM-DWD-WarnWeather',
  74. position: 'top_right',
  75. config: {
  76. carouselId: "1",
  77. region: 'Worms',
  78. changeColor: true,
  79. minutes: false,
  80. displayRegionName: true,
  81. displayInnerHeader: true,
  82. interval: 10 * 60 * 1000,
  83. loadingText: 'Warnungen werden geladen...',
  84. noWarningText: 'Keine Warnungen',
  85. severityThreshold: 2
  86. }
  87. },
  88. {
  89. module: "newsfeed",
  90. position: "bottom_bar",
  91. config: {
  92. carouselId: "1",
  93. feeds: [
  94. {
  95. title: "Tagesschau.de",
  96. url: "https://www.tagesschau.de/xml/rss2/",
  97. ignoreOlderThan: "345600000"
  98. },
  99. {
  100. title: "Schwarzwälder Bote - Rottweil",
  101. url: "https://www.schwarzwaelder-bote.de/rottweil.rss.feed",
  102. ignoreOlderThan: "345600000"
  103. },
  104. {
  105. title: "Der Postillon",
  106. url: "http://feeds.feedburner.com/blogspot/rkEL",
  107. ignoreOlderThan: "345600000"
  108. }
  109. ],
  110. showSourceTitle: true,
  111. showPublishDate: true,
  112. broadcastNewsFeeds: false,
  113. broadcastNewsUpdates: false
  114. }
  115. },
  116. {
  117. module: "MMM-BurnIn",
  118. position: "bottom_bar",
  119. config: {
  120. updateInterval: 15,
  121. invertDuration: 5
  122. }
  123. }
  124. ]
  125. };
  126. /*************** DO NOT EDIT THE LINE BELOW ***************/
  127. if (typeof module !== "undefined") { module.exports = config; }