config.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /* Magic Mirror Config Sample
  2. *
  3. * By Michael Teeuw https://michaelteeuw.nl
  4. * MIT Licensed.
  5. *
  6. * For more information on how you can configure this file
  7. * see https://docs.magicmirror.builders/getting-started/configuration.html#general
  8. * and https://docs.magicmirror.builders/modules/configuration.html
  9. */
  10. let config = {
  11. address: "0.0.0.0",
  12. port: 8080,
  13. basePath: "/",
  14. ipWhitelist: [],
  15. useHttps: false,
  16. language: "de",
  17. locale: "de-DE",
  18. logLevel: ["INFO", "LOG", "WARN", "ERROR"],
  19. timeFormat: 24,
  20. units: "metric",
  21. modules: [
  22. {
  23. module: 'MMM-Carousel',
  24. position: 'bottom_bar',
  25. config: {
  26. transitionInterval: 30000,
  27. showPageIndicators: true,
  28. showPageControls: true,
  29. ignoreModules: ['clock', 'alert', 'MMM-BurnIn'],
  30. mode: 'slides',
  31. slides: {
  32. main: ['weather', 'MMM-DWD-WarnWeather', 'MMM-ImageSlideshow', 'MMM-SimpleLogo','MMM-CalendarExt2', 'newsfeed'],
  33. "Slide 2": ['MMM-SimpleLogo', 'calendar'],
  34. "Slide 3": ['MMM-EasyPix'],
  35. "Slide 4": ['compliments', 'MMM-SimpleLogo']
  36. /*main: ['MMM-SimpleLogo','calendar']*/
  37. }
  38. }
  39. },
  40. {
  41. module: "alert",
  42. },
  43. {
  44. module: 'MMM-ImageSlideshow',
  45. position: 'middle_center',
  46. config: {
  47. imagePaths: ['modules/MMM-ImageSlideshow/public/slide_1'],
  48. slideshowSpeed: 15000,
  49. fixedImageWidth: 900,
  50. randomizeImageOrder: true,
  51. }
  52. },
  53. {
  54. module: "MMM-EasyPix",
  55. position: "middle_center",
  56. config: {
  57. picName: "wachenwappen.png", // Enter the picture file name.
  58. maxWidth: "100%", // Size picture precisely. Retains aspect ratio.
  59. }
  60. },
  61. {
  62. module: "compliments",
  63. position: "middle_center",
  64. disabled: false,
  65. config: {
  66. updateInterval: 20000,
  67. fadeSpeed: 3000,
  68. morningStartTime: 6,
  69. morningEndTime: 12,
  70. afternoonStartTime: 12,
  71. afternoonEndTime: 19,
  72. compliments: {
  73. remoteFile: 'https://git.x0p.it/RW21/MagicMirror/raw/master/compliments.json'
  74. }
  75. }
  76. },
  77. {
  78. module: "updatenotification",
  79. position: "top_bar"
  80. },
  81. {
  82. module: "clock",
  83. position: "top_left"
  84. },
  85. {
  86. module: "weather",
  87. position: "bottom_left",
  88. config: {
  89. weatherProvider: "openweathermap",
  90. type: "current",
  91. location: "Nierstein",
  92. locationID: "2862485",
  93. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  94. }
  95. },
  96. {
  97. module: "weather",
  98. position: "bottom_left",
  99. header: "Wettervorhersage",
  100. config: {
  101. weatherProvider: "openweathermap",
  102. type: "forecast",
  103. location: "Nierstein",
  104. locationID: "2862485",
  105. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  106. }
  107. },
  108. {
  109. module: 'MMM-DWD-WarnWeather',
  110. position: 'bottom_left',
  111. header: 'Wetterwarnungen',
  112. config: {
  113. region: 'Nierstein',
  114. changeColor: true,
  115. minutes: false,
  116. displayRegionName: true,
  117. displayInnerHeader: true,
  118. interval: 10 * 60 * 1000,
  119. loadingText: 'Warnungen werden geladen...',
  120. noWarningText: 'Keine Warnungen',
  121. severityThreshold: 2
  122. }
  123. },
  124. {
  125. module: 'MMM-SimpleLogo',
  126. position: 'top_right',
  127. config: {
  128. fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
  129. text: "",
  130. position: "right",
  131. width: "250px",
  132. refreshInterval: "refresh"
  133. }
  134. },
  135. {
  136. module: "newsfeed",
  137. position: "bottom_bar",
  138. config: {
  139. feeds: [
  140. {
  141. title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
  142. url: "https://www.drk-rhein-nahe.de/news-rss.xml",
  143. ignoreOlderThan: "31536000000"
  144. },
  145. {
  146. title: "Deutscher Berufsverband Rettungsdienst e.V.",
  147. url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
  148. ignoreOlderThan: "31536000000"
  149. },
  150. {
  151. title: "Allgmeine Zeitung - VG Rhein-Selz",
  152. url: "https://www.allgemeine-zeitung.de/rss/lokales/oppenheim/vg-rhein-selz",
  153. ignoreOlderThan: "345600000"
  154. },
  155. {
  156. title: "Der Postillon",
  157. url: "http://feeds.feedburner.com/blogspot/rkEL",
  158. ignoreOlderThan: "345600000"
  159. }
  160. ],
  161. showSourceTitle: true,
  162. showPublishDate: true,
  163. broadcastNewsFeeds: true,
  164. broadcastNewsUpdates: true
  165. }
  166. },
  167. {
  168. module: "MMM-BurnIn",
  169. position: "bottom_bar", // whatever, doesn't render anything
  170. config: {
  171. updateInterval: 15, // in Minutes
  172. invertDuration: 5 // in Seconds
  173. }
  174. },
  175. {
  176. module: "calendar",
  177. position: "middle_center", // This can be any of the regions. Best results in left or right regions.
  178. config: {
  179. tableClass: "large wachenaufgaben",
  180. fetchInterval: 600000,
  181. maxTitleLength: 50,
  182. displaySymbol: true,
  183. maximumNumberOfDays: 1,
  184. showLocation: false,
  185. maxTitleLines: 1,
  186. maximumEntries: 9,
  187. nextDaysRelative: true,
  188. timeFormat: "relative",
  189. calendars: [
  190. {
  191. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
  192. symbolClass: 'todo-symbol',
  193. titleClass: 'todo-title',
  194. timeClass: 'todotime',
  195. symbol: 'clipboard-list-check',
  196. },
  197. {
  198. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8/?export',
  199. symbolClass: 'clean-symbol',
  200. titleClass: 'clean-title',
  201. timeClass: 'clean-time',
  202. symbol: 'vacuum',
  203. },
  204. {
  205. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
  206. symbolClass: 'info-symbol',
  207. titleClass: 'info-title',
  208. timeClass: 'info-time',
  209. symbol: 'circle-info',
  210. maximumNumberOfDays: 7,
  211. },
  212. ],
  213. }
  214. },
  215. {
  216. module: "MMM-CalendarExt2",
  217. config: {
  218. calendars: [
  219. // {
  220. // name: "Aufgaben",
  221. // url: 'webcal://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
  222. // icon: "bi:clipboard2-check",
  223. // className: "todo",
  224. // },
  225. {
  226. name: "Infos",
  227. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
  228. icon: "bi:info-circle",
  229. className: "clean",
  230. },
  231. ],
  232. views: [
  233. {
  234. name: "Wachenaufgaben",
  235. mode: "daily",
  236. locale: "de-DE",
  237. position: "bottom_right",
  238. calendars: ["Infos"],
  239. },
  240. ],
  241. scenes: [
  242. {
  243. name: "AUTOKALENTERI",
  244. },
  245. ],
  246. },
  247. },
  248. ]
  249. };
  250. /*************** DO NOT EDIT THE LINE BELOW ***************/
  251. if (typeof module !== "undefined") { module.exports = config; }