config.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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: 'MMM-Todoist',
  110. position: 'bottom_left',
  111. header: 'ToDo - Jinaki',
  112. config: {
  113. hideWhenEmpty: true,
  114. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  115. maximumEntries: 60,
  116. updateInterval: 10 * 60 * 1000,
  117. fade: true,
  118. projects: [2273684134]
  119. }
  120. },
  121. {
  122. module: 'MMM-Todoist',
  123. position: 'bottom_center', // This can be any of the regions. Best results in left or right regions.
  124. header: 'ToDo - Wohnung', // This is optional
  125. config: { // See 'Configuration options' for more information.
  126. hideWhenEmpty: true,
  127. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  128. maximumEntries: 60,
  129. updateInterval: 10 * 60 * 1000, // Update every 10 minutes
  130. fade: true,
  131. // projects and/or labels is mandatory:
  132. projects: [2273684252]
  133. }
  134. },
  135. {
  136. module: 'MMM-Todoist',
  137. position: 'bottom_right', // This can be any of the regions. Best results in left or right regions.
  138. header: 'Einkaufsliste', // This is optional
  139. config: { // See 'Configuration options' for more information.
  140. hideWhenEmpty: true,
  141. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  142. maximumEntries: 60,
  143. updateInterval: 10 * 60 * 1000, // Update every 10 minutes
  144. fade: true,
  145. // projects and/or labels is mandatory:
  146. projects: [2273680600]
  147. }
  148. },
  149. {
  150. module: "newsfeed",
  151. position: "bottom_bar",
  152. config: {
  153. carouselId: "1",
  154. feeds: [
  155. {
  156. title: "Tagesschau.de",
  157. url: "https://www.tagesschau.de/xml/rss2/",
  158. ignoreOlderThan: "345600000"
  159. },
  160. {
  161. title: "Schwarzwälder Bote - Rottweil",
  162. url: "https://www.schwarzwaelder-bote.de/rottweil.rss.feed",
  163. ignoreOlderThan: "345600000"
  164. },
  165. {
  166. title: "Der Postillon",
  167. url: "http://feeds.feedburner.com/blogspot/rkEL",
  168. ignoreOlderThan: "345600000"
  169. }
  170. ],
  171. showSourceTitle: true,
  172. showPublishDate: true,
  173. broadcastNewsFeeds: false,
  174. broadcastNewsUpdates: false
  175. }
  176. },
  177. /* !SECTION */
  178. /* SECTION - Slide 1 */
  179. {
  180. module: "MMM-Strava",
  181. position: "top_right",
  182. config: {
  183. carouselId: "1",
  184. client_id: "78459",
  185. client_secret: "ae058af751f6458d3fe79524e201f30743dbbda2"
  186. }
  187. },
  188. /* !SECTION */
  189. {
  190. module: "MMM-BurnIn",
  191. position: "bottom_bar",
  192. config: {
  193. updateInterval: 15,
  194. invertDuration: 5
  195. }
  196. }
  197. ]
  198. };
  199. /*************** DO NOT EDIT THE LINE BELOW ***************/
  200. if (typeof module !== "undefined") { module.exports = config; }