config.js 18 KB

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