config.js 7.8 KB

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