config.js 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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: false,
  29. ignoreModules: ['clock', 'alert', 'MMM-BurnIn'],
  30. mode: 'slides',
  31. slides: {
  32. main: ['weather', 'MMM-DWD-WarnWeather', 'MMM-ImageSlideshow', 'MMM-SimpleLogo','MMM-COVID19-AMPEL', 'newsfeed'],
  33. "Slide 2": ['MMM-SimpleLogo', 'calendar'],
  34. "Slide 3": ['MMM-EasyPix'],
  35. "Slide 4": ['MMM-SimpleLogo', 'compliments']
  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. config: {
  65. updateInterval: 20000,
  66. fadeSpeed: 3000,
  67. morningStartTime: 6,
  68. morningEndTime: 12,
  69. afternoonStartTime: 12,
  70. afternoonEndTime: 19,
  71. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/9b3f22a476537f93ca3edf77cc0bac84/raw/f00ff05d2bde68382647c3cac61328659de84b1f/compliments.json"
  72. }
  73. },
  74. {
  75. module: "updatenotification",
  76. position: "top_bar"
  77. },
  78. {
  79. module: "clock",
  80. position: "top_left"
  81. },
  82. {
  83. module: "weather",
  84. position: "bottom_left",
  85. config: {
  86. weatherProvider: "openweathermap",
  87. type: "current",
  88. location: "Nierstein",
  89. locationID: "2862485",
  90. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  91. }
  92. },
  93. {
  94. module: "weather",
  95. position: "bottom_left",
  96. header: "Wettervorhersage",
  97. config: {
  98. weatherProvider: "openweathermap",
  99. type: "forecast",
  100. location: "Nierstein",
  101. locationID: "2862485",
  102. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  103. }
  104. },
  105. {
  106. module: 'MMM-DWD-WarnWeather',
  107. position: 'bottom_left',
  108. header: 'Wetterwarnungen',
  109. config: {
  110. region: 'Nierstein',
  111. changeColor: true,
  112. minutes: false,
  113. displayRegionName: true,
  114. displayInnerHeader: true,
  115. interval: 10 * 60 * 1000,
  116. loadingText: 'Warnungen werden geladen...',
  117. noWarningText: 'Keine Warnungen',
  118. severityThreshold: 2
  119. }
  120. },
  121. {
  122. module: 'MMM-SimpleLogo',
  123. position: 'top_right',
  124. config: {
  125. fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
  126. text: "",
  127. position: "right",
  128. width: "250px",
  129. refreshInterval: "refresh"
  130. }
  131. },
  132. {
  133. module: "newsfeed",
  134. position: "bottom_bar",
  135. config: {
  136. feeds: [
  137. {
  138. title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
  139. url: "https://www.drk-rhein-nahe.de/news-rss.xml",
  140. ignoreOlderThan: "31536000000"
  141. },
  142. {
  143. title: "Deutscher Berufsverband Rettungsdienst e.V.",
  144. url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
  145. ignoreOlderThan: "31536000000"
  146. },
  147. {
  148. title: "Allgmeine Zeitung - VG Rhein-Selz",
  149. url: "https://www.allgemeine-zeitung.de/rss/lokales/oppenheim/vg-rhein-selz",
  150. ignoreOlderThan: "345600000"
  151. },
  152. {
  153. title: "Der Postillon",
  154. url: "http://feeds.feedburner.com/blogspot/rkEL",
  155. ignoreOlderThan: "345600000"
  156. }
  157. ],
  158. showSourceTitle: true,
  159. showPublishDate: true,
  160. broadcastNewsFeeds: true,
  161. broadcastNewsUpdates: true
  162. }
  163. },
  164. {
  165. module: "MMM-BurnIn",
  166. position: "bottom_bar", // whatever, doesn't render anything
  167. config: {
  168. updateInterval: 15, // in Minutes
  169. invertDuration: 5 // in Seconds
  170. }
  171. },
  172. {
  173. module: "calendar",
  174. position: "middle_center", // This can be any of the regions. Best results in left or right regions.
  175. config: {
  176. tableClass: "large wachenaufgaben",
  177. fetchInterval: 600000,
  178. maxTitleLength: 50,
  179. displaySymbol: true,
  180. maximumNumberOfDays: 1,
  181. showLocation: false,
  182. maxTitleLines: 1,
  183. maximumEntries: 9,
  184. nextDaysRelative: true,
  185. timeFormat: "relative",
  186. calendars: [
  187. {
  188. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
  189. symbolClass: 'todo-symbol',
  190. titleClass: 'todo-title',
  191. timeClass: 'todotime',
  192. symbol: 'clipboard-list-check',
  193. },
  194. {
  195. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8/?export',
  196. symbolClass: 'clean-symbol',
  197. titleClass: 'clean-title',
  198. timeClass: 'clean-time',
  199. symbol: 'vacuum',
  200. },
  201. {
  202. url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
  203. symbolClass: 'info-symbol',
  204. titleClass: 'info-title',
  205. timeClass: 'info-time',
  206. symbol: 'circle-info',
  207. maximumNumberOfDays: 7,
  208. },
  209. ],
  210. }
  211. },
  212. {
  213. module: 'MMM-COVID19-AMPEL',
  214. position: 'bottom_right',
  215. config: {
  216. header: 'COVID-19 Inzidenzwert', // Header Title of Display on MagicMirror
  217. cityID: ["224","223"], // City ID from https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0/data
  218. infoRowClass: "small", // small, medium
  219. showUpdateDateInHeader: true, //Show update date in header
  220. showUpdateDateInRow: false, //Show update date in each row
  221. showStatusLightLeft: true, //Show left status light
  222. showStatusLightRight: true, // Show right status light
  223. showTitle: true, //Show Title row with headlines if you want to display more than one information
  224. showSKLK: true, //Show the Region information if the Pace displayed is the city or regional area (Stadt or Land)
  225. showCases: true, //Show amount of active cases in city
  226. showCasesPerPeople: true, //Show Percentage of active cases per inhabitant
  227. showDeathRatePerPeople: true, //show death rate in % of infected people
  228. show7DayIncidence: true, // Show 7 day incidence value for your location
  229. landModeOnly: false, // Shows Bundesland instead of City in Bundesland (Thos who want to display only the Bundesland)
  230. showVaccinations: true, //Shows the total quota of fist shots people got in the whole country in header
  231. numberOfDigits: 2, //Round the Percentage and incidence value to number of digits
  232. updateInterval: 3600000, // update interval in milliseconds // 1 Hour - Values are only refreshed every 24 H on Server
  233. fadeSpeed: 4000
  234. }
  235. }
  236. // {
  237. // module: "MMM-CalendarExt2",
  238. // config: {
  239. // calendars: [
  240. // // {
  241. // // name: "Aufgaben",
  242. // // url: 'webcal://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
  243. // // icon: "bi:clipboard2-check",
  244. // // className: "todo",
  245. // // },
  246. // {
  247. // name: "Infos",
  248. // url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
  249. // icon: "bi:info-circle",
  250. // className: "clean",
  251. // },
  252. // ],
  253. // views: [
  254. // {
  255. // name: "Wachenaufgaben",
  256. // mode: "daily",
  257. // locale: "de-DE",
  258. // position: "bottom_right",
  259. // calendars: ["Infos"],
  260. // },
  261. // ],
  262. // scenes: [
  263. // {
  264. // name: "AUTOKALENTERI",
  265. // },
  266. // ],
  267. // },
  268. // },
  269. ]
  270. };
  271. /*************** DO NOT EDIT THE LINE BELOW ***************/
  272. if (typeof module !== "undefined") { module.exports = config; }