config.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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: 'MMM-Carousel',
  18. position: 'bottom_bar',
  19. config: {
  20. transitionInterval: 20000,
  21. showPageIndicators: true,
  22. showPageControls: false,
  23. ignoreModules: ["MMM-BurnIn"],
  24. mode: 'slides',
  25. slides: {
  26. "Main": [
  27. { name: 'clock', position: "top_left", carouselId: "1" },
  28. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  29. { name: 'calendar', position: "middle_center", carouselId: "1" }
  30. ],
  31. "Slide 1": [
  32. { name: 'clock', position: "top_left", carouselId: "1" },
  33. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  34. { name: 'compliments', position: "middle_center", carouselId: "1" }
  35. ],
  36. "Slide 2": [
  37. { name: 'clock', position: "top_left", carouselId: "1" },
  38. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  39. { name: 'calendar', position: "middle_center", carouselId: "2" }
  40. ],
  41. "Slide 3": [
  42. { name: 'clock', position: "top_left", carouselId: "1" },
  43. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  44. { name: 'calendar', position: "middle_center", carouselId: "3" }
  45. ],
  46. "Slide 4": [
  47. { name: 'clock', position: "top_left", carouselId: "1" },
  48. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  49. { name: 'calendar', position: "middle_center", carouselId: "4" }
  50. ],
  51. "Slide 5": [
  52. { name: 'clock', position: "top_left", carouselId: "1" },
  53. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  54. { name: 'compliments', position: "middle_center", carouselId: "2" }
  55. ],
  56. "Slide 6": [
  57. { name: 'clock', position: "top_left", carouselId: "1" },
  58. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  59. { name: 'MMM-ImageSlideshow', position: "middle_center", carouselId: "5" },
  60. { name: 'weather', position: "bottom_left", carouselId: "5" },
  61. { name: 'MMM-DWD-WarnWeather', position: "bottom_left", carouselId: "5" },
  62. { name: 'newsfeed', position: "bottom_bar", carouselId: "5" },
  63. ],
  64. }
  65. }
  66. },
  67. /*
  68. SECTION - Main Slide
  69. */
  70. {
  71. module: 'clock',
  72. position: "top_left",
  73. config: {
  74. timeFormat: 24,
  75. carouselId: '1'
  76. }
  77. },
  78. {
  79. module: 'MMM-SimpleLogo',
  80. position: 'top_right',
  81. config: {
  82. carouselId: "1",
  83. fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
  84. text: "",
  85. position: "right",
  86. width: "200px",
  87. }
  88. },
  89. {
  90. module: "calendar",
  91. header: "Tagesübersicht",
  92. classes: "daily-overview",
  93. position: "middle_center",
  94. config: {
  95. carouselId: "1",
  96. tableClass: "large daily-overview-table wachenaufgaben",
  97. fetchInterval: 600000, /* 600000 */
  98. maxTitleLength: 50,
  99. displaySymbol: true,
  100. showLocation: false,
  101. maxTitleLines: 1,
  102. maximumEntries: 9,
  103. maximumNumberOfDays: 1,
  104. calendars: [
  105. {
  106. /* RW21 Wachenaufgaben */
  107. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw?export',
  108. symbolClass: 'todo-symbol',
  109. titleClass: 'todo-title',
  110. timeClass: 'todotime',
  111. symbol: 'clipboard-list-check'
  112. },
  113. {
  114. /* RW21 Putzplan */
  115. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8?export',
  116. symbolClass: 'clean-symbol',
  117. titleClass: 'clean-title',
  118. timeClass: 'clean-time',
  119. symbol: 'vacuum',
  120. },
  121. {
  122. /* RW21 Allgemeines */
  123. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
  124. symbolClass: 'info-symbol',
  125. titleClass: 'info-title',
  126. timeClass: 'info-time',
  127. symbol: 'circle-info',
  128. maximumNumberOfDays: 7,
  129. }
  130. ]
  131. }
  132. },
  133. /*
  134. !!SECTION
  135. */
  136. /*
  137. SECTION - Slide 1
  138. */
  139. {
  140. module: "compliments",
  141. position: "middle_center",
  142. config: {
  143. carouselId: "1",
  144. updateInterval: 20000,
  145. fadeSpeed: 3000,
  146. morningStartTime: 6,
  147. morningEndTime: 12,
  148. afternoonStartTime: 12,
  149. afternoonEndTime: 19,
  150. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/9b3f22a476537f93ca3edf77cc0bac84/raw/041641ad06e9b0aa12a8c5ec41ac88dbbb3b8189/compliments_1.json"
  151. }
  152. },
  153. /*
  154. !!SECTION
  155. */
  156. /*
  157. SECTION - Slide 2
  158. */
  159. {
  160. module: "calendar",
  161. header: "MZ 21/83-1",
  162. classes: "rtw-overview",
  163. position: "middle_center",
  164. config: {
  165. carouselId: "2",
  166. tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-rtw",
  167. fetchInterval: 600000, /* 600000 */
  168. maxTitleLength: 50,
  169. displaySymbol: true,
  170. showLocation: false,
  171. maxTitleLines: 1,
  172. maximumEntries: 9,
  173. maximumNumberOfDays: 1,
  174. calendars: [
  175. {
  176. /* Fahrzeug 21/83-1 */
  177. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/exdmis8xiZc54mn3?export',
  178. symbolClass: 'rtw-symbol',
  179. titleClass: 'rtw-title',
  180. timeClass: 'rtw-time',
  181. symbol: 'truck-medical'
  182. }
  183. ]
  184. }
  185. },
  186. /*
  187. !!SECTION
  188. */
  189. /*
  190. SECTION - Slide 3
  191. */
  192. {
  193. module: "calendar",
  194. header: "MZ 21/84-1",
  195. classes: "nktw-overview",
  196. position: "middle_center",
  197. config: {
  198. carouselId: "3",
  199. tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-nktw",
  200. fetchInterval: 600000, /* 600000 */
  201. maxTitleLength: 50,
  202. displaySymbol: true,
  203. showLocation: false,
  204. maxTitleLines: 1,
  205. maximumEntries: 9,
  206. maximumNumberOfDays: 1,
  207. calendars: [
  208. {
  209. /* Fahrzeug 21/84-1 */
  210. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/NGATEN6qkf9wWEc6?export',
  211. symbolClass: 'nktw-symbol',
  212. titleClass: 'nktw-title',
  213. timeClass: 'nktw-time',
  214. symbol: 'truck-medical',
  215. },
  216. ]
  217. }
  218. },
  219. /*
  220. !!SECTION
  221. */
  222. /*
  223. SECTION - Slide 4
  224. */
  225. {
  226. module: "calendar",
  227. header: "MZ 21/85-1",
  228. classes: "ktw-overview",
  229. position: "middle_center",
  230. config: {
  231. carouselId: "4",
  232. tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-ktw",
  233. fetchInterval: 600000, /* 600000 */
  234. maxTitleLength: 50,
  235. displaySymbol: true,
  236. showLocation: false,
  237. maxTitleLines: 1,
  238. maximumEntries: 9,
  239. maximumNumberOfDays: 1,
  240. calendars: [
  241. {
  242. /* Fahrzeug 21/85-1 */
  243. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/G6Ho8gHmWk4X7qB7?export',
  244. symbolClass: 'ktw-symbol',
  245. titleClass: 'ktw-title',
  246. timeClass: 'ktw-time',
  247. symbol: 'truck-medical',
  248. }
  249. ]
  250. }
  251. },
  252. /*
  253. !!SECTION
  254. */
  255. /*
  256. SECTION - Slide 6
  257. */
  258. {
  259. module: "compliments",
  260. position: "middle_center",
  261. config: {
  262. carouselId: "2",
  263. updateInterval: 20000,
  264. fadeSpeed: 3000,
  265. morningStartTime: 6,
  266. morningEndTime: 12,
  267. afternoonStartTime: 12,
  268. afternoonEndTime: 19,
  269. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/9b3f22a476537f93ca3edf77cc0bac84/raw/041641ad06e9b0aa12a8c5ec41ac88dbbb3b8189/compliments_2.json"
  270. }
  271. },
  272. /*
  273. !!SECTION
  274. */
  275. /*
  276. SECTION - Slide 6
  277. */
  278. {
  279. module: 'MMM-ImageSlideshow',
  280. position: 'middle_center',
  281. config: {
  282. carouselId: "5",
  283. imagePaths: ['modules/MMM-ImageSlideshow/public/slide_1'],
  284. slideshowSpeed: 15000,
  285. fixedImageWidth: 900,
  286. randomizeImageOrder: true,
  287. }
  288. },
  289. {
  290. module: "weather",
  291. position: "bottom_left",
  292. config: {
  293. carouselId: "5",
  294. weatherProvider: "openweathermap",
  295. type: "current",
  296. location: "Nierstein",
  297. locationID: "2862485",
  298. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  299. }
  300. },
  301. {
  302. module: "weather",
  303. position: "bottom_left",
  304. header: "Wettervorhersage",
  305. config: {
  306. carouselId: "5",
  307. weatherProvider: "openweathermap",
  308. type: "forecast",
  309. location: "Nierstein",
  310. locationID: "2862485",
  311. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  312. }
  313. },
  314. {
  315. module: 'MMM-DWD-WarnWeather',
  316. position: 'bottom_left',
  317. config: {
  318. carouselId: "5",
  319. region: 'Nierstein',
  320. changeColor: true,
  321. minutes: false,
  322. displayRegionName: true,
  323. displayInnerHeader: true,
  324. interval: 10 * 60 * 1000,
  325. loadingText: 'Warnungen werden geladen...',
  326. noWarningText: 'Keine Warnungen',
  327. severityThreshold: 2
  328. }
  329. },
  330. {
  331. module: "newsfeed",
  332. position: "bottom_bar",
  333. config: {
  334. carouselId: "5",
  335. feeds: [
  336. {
  337. title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
  338. url: "https://www.drk-rhein-nahe.de/news-rss.xml",
  339. ignoreOlderThan: "31536000000"
  340. },
  341. {
  342. title: "Deutscher Berufsverband Rettungsdienst e.V.",
  343. url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
  344. ignoreOlderThan: "31536000000"
  345. },
  346. {
  347. title: "Allgmeine Zeitung - VG Rhein-Selz",
  348. url: "https://www.allgemeine-zeitung.de/rss/lokales/oppenheim/vg-rhein-selz",
  349. ignoreOlderThan: "345600000"
  350. },
  351. {
  352. title: "Der Postillon",
  353. url: "http://feeds.feedburner.com/blogspot/rkEL",
  354. ignoreOlderThan: "345600000"
  355. }
  356. ],
  357. showSourceTitle: true,
  358. showPublishDate: true,
  359. broadcastNewsFeeds: true,
  360. broadcastNewsUpdates: true
  361. }
  362. },
  363. /*
  364. !!SECTION
  365. */
  366. {
  367. module: "MMM-BurnIn",
  368. position: "bottom_bar",
  369. config: {
  370. updateInterval: 15,
  371. invertDuration: 5
  372. }
  373. }
  374. ]
  375. }
  376. /*************** DO NOT EDIT THE LINE BELOW ***************/
  377. if (typeof module !== "undefined") { module.exports = config; }