config.js 11 KB

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