config.js 16 KB

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