config.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. let config = {
  2. address: "0.0.0.0",
  3. port: 8080,
  4. basePath: "/",
  5. ipWhitelist: [],
  6. language: "de",
  7. locale: "de-DE",
  8. logLevel: ["INFO", "LOG", "WARN", "ERROR"],
  9. timeFormat: 24,
  10. units: "metric",
  11. modules: [
  12. {
  13. module: "alert",
  14. },
  15. {
  16. module: "updatenotification",
  17. position: "top_bar"
  18. },
  19. {
  20. module: "MMM-BurnIn",
  21. position: "bottom_bar",
  22. config: {
  23. updateInterval: 15,
  24. invertDuration: 5
  25. }
  26. },
  27. {
  28. module: "MMM-Carousel",
  29. position: "bottom_bar",
  30. config: {
  31. transitionInterval: 20000,
  32. ignoreModules: ["alert", "updatenotification", "MMM-BurnIn"],
  33. mode: "slides",
  34. showPageIndicators: true,
  35. showPageControls: true,
  36. slides: {
  37. main: [
  38. { name: "clock", position: "top_left", carouselId: "1" },
  39. { name: "weather", position: "top_right", carouselId: "1" },
  40. { name: 'MMM-DWD-WarnWeather', position: "top_right", carouselId: "1" },
  41. { name: "compliments", position: "middle_center", carouselId: "1" },
  42. { name: "newsfeed", position: "bottom_bar", carouselId: "1" }
  43. ],
  44. "Birgit": [
  45. { name: "clock", position: "top_left", carouselId: "1" }
  46. ],
  47. "Jonathan": [
  48. { name: "clock", position: "top_left", carouselId: "1" }
  49. ]
  50. },
  51. }
  52. },
  53. {
  54. module: "clock",
  55. position: "top_left",
  56. config: {
  57. carouselId: "1",
  58. timeFormat: 24,
  59. }
  60. },
  61. {
  62. module: "weather",
  63. position: "top_right",
  64. config: {
  65. carouselId: "1",
  66. weatherProvider: "openweathermap",
  67. type: "current",
  68. location: "Worms",
  69. locationID: "2806142",
  70. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  71. }
  72. },
  73. {
  74. module: "weather",
  75. position: "top_right",
  76. header: "Wettervorhersage",
  77. config: {
  78. carouselId: "1",
  79. weatherProvider: "openweathermap",
  80. type: "forecast",
  81. location: "Worms",
  82. locationID: "2806142",
  83. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  84. }
  85. },
  86. {
  87. module: 'MMM-DWD-WarnWeather',
  88. position: 'top_right',
  89. config: {
  90. carouselId: "1",
  91. warnCellID: '807319000',
  92. changeColor: true,
  93. minutes: false,
  94. displayRegionName: false,
  95. displayInnerHeader: false,
  96. interval: 10 * 60 * 1000,
  97. loadingText: 'Warnungen werden geladen...',
  98. noWarningText: 'Keine Warnungen',
  99. severityThreshold: 2
  100. }
  101. },
  102. {
  103. module: "compliments",
  104. position: "middle_center",
  105. config: {
  106. carouselId: "1",
  107. updateInterval: 20000,
  108. fadeSpeed: 3000,
  109. morningStartTime: 5,
  110. morningEndTime: 12,
  111. afternoonStartTime: 12,
  112. afternoonEndTime: 20,
  113. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/428db52c39bba05f78a02ca3ec5d4e13e224b52d/compliments.json"
  114. }
  115. },
  116. {
  117. module: "newsfeed",
  118. position: "bottom_bar",
  119. config: {
  120. carouselId: "1",
  121. feeds: [
  122. {
  123. title: "Tagesschau.de",
  124. url: "https://www.tagesschau.de/xml/rss2/"
  125. },
  126. {
  127. title: "Der Postillon",
  128. url: "http://feeds.feedburner.com/blogspot/rkEL"
  129. }
  130. ],
  131. showSourceTitle: true,
  132. showPublishDate: true,
  133. broadcastNewsFeeds: true,
  134. broadcastNewsUpdates: true
  135. }
  136. }
  137. ]
  138. }