config.js 13 KB

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