config.js 14 KB

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