config.js 18 KB

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