config.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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: 'clock', position: "top_left", carouselId: "1" },
  48. { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
  49. { name: 'MMM-ImageSlideshow', position: "middle_center", carouselId: "5" },
  50. { name: 'weather', position: "bottom_left", carouselId: "5" },
  51. { name: 'MMM-DWD-WarnWeather', position: "bottom_right", carouselId: "5" },
  52. { name: 'newsfeed', position: "bottom_bar", carouselId: "5" },
  53. ],
  54. }
  55. }
  56. },
  57. /*
  58. SECTION - Main Slide
  59. */
  60. {
  61. module: 'clock',
  62. position: "top_left",
  63. config: {
  64. timeFormat: 24,
  65. carouselId: '1'
  66. }
  67. },
  68. {
  69. module: 'MMM-SimpleLogo',
  70. position: 'top_right',
  71. config: {
  72. carouselId: "1",
  73. fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
  74. text: "",
  75. position: "right",
  76. width: "200px",
  77. }
  78. },
  79. {
  80. module: "calendar",
  81. header: "Tagesübersicht",
  82. classes: "daily-overview",
  83. position: "middle_center",
  84. config: {
  85. carouselId: "1",
  86. tableClass: "large daily-overview-table wachenaufgaben",
  87. fetchInterval: 600000, /* 600000 */
  88. maxTitleLength: 50,
  89. displaySymbol: true,
  90. showLocation: false,
  91. maxTitleLines: 1,
  92. maximumEntries: 9,
  93. maximumNumberOfDays: 1,
  94. calendars: [
  95. {
  96. /* RW21 Wachenaufgaben */
  97. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw?export',
  98. symbolClass: 'todo-symbol',
  99. titleClass: 'todo-title',
  100. timeClass: 'todotime',
  101. symbol: 'clipboard-list-check'
  102. },
  103. {
  104. /* RW21 Putzplan */
  105. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8?export',
  106. symbolClass: 'clean-symbol',
  107. titleClass: 'clean-title',
  108. timeClass: 'clean-time',
  109. symbol: 'vacuum',
  110. },
  111. {
  112. /* RW21 Allgemeines */
  113. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
  114. symbolClass: 'info-symbol',
  115. titleClass: 'info-title',
  116. timeClass: 'info-time',
  117. symbol: 'circle-info',
  118. maximumNumberOfDays: 7,
  119. }
  120. ]
  121. }
  122. },
  123. /*
  124. !!SECTION
  125. */
  126. /*
  127. SECTION - Slide 2
  128. */
  129. {
  130. module: "calendar",
  131. header: "MZ 21/83-1",
  132. classes: "rtw-overview",
  133. position: "middle_center",
  134. config: {
  135. carouselId: "2",
  136. tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-rtw",
  137. fetchInterval: 600000, /* 600000 */
  138. maxTitleLength: 50,
  139. displaySymbol: true,
  140. showLocation: false,
  141. maxTitleLines: 1,
  142. maximumEntries: 9,
  143. maximumNumberOfDays: 1,
  144. calendars: [
  145. {
  146. /* Fahrzeug 21/83-1 */
  147. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/exdmis8xiZc54mn3?export',
  148. symbolClass: 'rtw-symbol',
  149. titleClass: 'rtw-title',
  150. timeClass: 'rtw-time',
  151. symbol: 'truck-medical'
  152. }
  153. ]
  154. }
  155. },
  156. /*
  157. !!SECTION
  158. */
  159. /*
  160. SECTION - Slide 3
  161. */
  162. {
  163. module: "calendar",
  164. header: "MZ 21/84-1",
  165. classes: "nktw-overview",
  166. position: "middle_center",
  167. config: {
  168. carouselId: "3",
  169. tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-nktw",
  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/84-1 */
  180. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/NGATEN6qkf9wWEc6?export',
  181. symbolClass: 'nktw-symbol',
  182. titleClass: 'nktw-title',
  183. timeClass: 'nktw-time',
  184. symbol: 'truck-medical',
  185. },
  186. ]
  187. }
  188. },
  189. /*
  190. !!SECTION
  191. */
  192. /*
  193. SECTION - Slide 4
  194. */
  195. {
  196. module: "calendar",
  197. header: "MZ 21/85-1",
  198. classes: "ktw-overview",
  199. position: "middle_center",
  200. config: {
  201. carouselId: "4",
  202. tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-ktw",
  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/85-1 */
  213. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/G6Ho8gHmWk4X7qB7?export',
  214. symbolClass: 'ktw-symbol',
  215. titleClass: 'ktw-title',
  216. timeClass: 'ktw-time',
  217. symbol: 'truck-medical',
  218. }
  219. ]
  220. }
  221. },
  222. /*
  223. !!SECTION
  224. */
  225. /*
  226. SECTION - Slide 5
  227. */
  228. {
  229. module: 'MMM-ImageSlideshow',
  230. position: 'middle_center',
  231. config: {
  232. carouselId: "5",
  233. imagePaths: ['modules/MMM-ImageSlideshow/public/slide_1'],
  234. slideshowSpeed: 15000,
  235. fixedImageWidth: 900,
  236. randomizeImageOrder: true,
  237. }
  238. },
  239. {
  240. module: "weather",
  241. position: "bottom_left",
  242. config: {
  243. carouselId: "5",
  244. weatherProvider: "openweathermap",
  245. type: "current",
  246. location: "Nierstein",
  247. locationID: "2862485",
  248. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  249. }
  250. },
  251. {
  252. module: "weather",
  253. position: "bottom_left",
  254. header: "Wettervorhersage",
  255. config: {
  256. carouselId: "5",
  257. weatherProvider: "openweathermap",
  258. type: "forecast",
  259. location: "Nierstein",
  260. locationID: "2862485",
  261. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  262. }
  263. },
  264. {
  265. module: 'MMM-DWD-WarnWeather',
  266. position: 'bottom_right',
  267. header: 'Wetterwarnungen',
  268. config: {
  269. carouselId: "5",
  270. region: 'Nierstein',
  271. changeColor: true,
  272. minutes: false,
  273. displayRegionName: true,
  274. displayInnerHeader: true,
  275. interval: 10 * 60 * 1000,
  276. loadingText: 'Warnungen werden geladen...',
  277. noWarningText: 'Keine Warnungen',
  278. severityThreshold: 2
  279. }
  280. },
  281. {
  282. module: "newsfeed",
  283. position: "bottom_bar",
  284. config: {
  285. carouselId: "5",
  286. feeds: [
  287. {
  288. title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
  289. url: "https://www.drk-rhein-nahe.de/news-rss.xml",
  290. ignoreOlderThan: "31536000000"
  291. },
  292. {
  293. title: "Deutscher Berufsverband Rettungsdienst e.V.",
  294. url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
  295. ignoreOlderThan: "31536000000"
  296. },
  297. {
  298. title: "Allgmeine Zeitung - VG Rhein-Selz",
  299. url: "https://www.allgemeine-zeitung.de/rss/lokales/oppenheim/vg-rhein-selz",
  300. ignoreOlderThan: "345600000"
  301. },
  302. {
  303. title: "Der Postillon",
  304. url: "http://feeds.feedburner.com/blogspot/rkEL",
  305. ignoreOlderThan: "345600000"
  306. }
  307. ],
  308. showSourceTitle: true,
  309. showPublishDate: true,
  310. broadcastNewsFeeds: true,
  311. broadcastNewsUpdates: true
  312. }
  313. },
  314. /*
  315. !!SECTION
  316. */
  317. {
  318. module: "MMM-BurnIn",
  319. position: "bottom_bar",
  320. config: {
  321. updateInterval: 15,
  322. invertDuration: 5
  323. }
  324. }
  325. ]
  326. }
  327. /*************** DO NOT EDIT THE LINE BELOW ***************/
  328. if (typeof module !== "undefined") { module.exports = config; }