config.js 18 KB

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