config.js 15 KB

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