config.js 17 KB

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