config.js 13 KB

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