config.js 14 KB

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