config.js 14 KB

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