config.js 14 KB

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