config.js 17 KB

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