config.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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: "localhost", // Address to listen on, can be:
  12. // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
  13. // - another specific IPv4/6 to listen on a specific interface
  14. // - "0.0.0.0", "::" to listen on any interface
  15. // Default, when address config is left out or empty, is "localhost"
  16. port: 8080,
  17. basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
  18. // you must set the sub path here. basePath must end with a /
  19. ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
  20. // or add a specific IPv4 of 192.168.1.5 :
  21. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
  22. // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
  23. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
  24. useHttps: false, // Support HTTPS or not, default "false" will use HTTP
  25. httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
  26. httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
  27. language: "de",
  28. locale: "de-DE",
  29. logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
  30. timeFormat: 24,
  31. units: "metric",
  32. // serverOnly: true/false/"local" ,
  33. // local for armv6l processors, default
  34. // starts serveronly and then starts chrome browser
  35. // false, default for all NON-armv6l devices
  36. // true, force serveronly mode, because you want to.. no UI on this device
  37. modules: [
  38. {
  39. module: "MMM-MagicMover",
  40. config: {
  41. updateInterval: 120 * 1000,
  42. ignoredRegions: [],
  43. maxMove: 20,
  44. }
  45. },
  46. {
  47. module: 'MMM-Carousel',
  48. position: 'bottom_bar', // Required only for navigation controls
  49. config: {
  50. transitionInterval: 20000,
  51. showPageIndicators: true,
  52. showPageControls: true,
  53. ignoreModules: ['clock', 'alert'],
  54. mode: 'slides',
  55. slides: {
  56. main: ['clock', { name: "weather", position: "top_right", classes: "CSSclassName", carouselId: "1" }, { name: "MMM-DWD-WarnWeather", position: "top_right", classes: "CSSclassName", carouselId: "1" }, 'compliments', 'MMM-wiki', 'calendar', 'MMM-Todoist'],
  57. "Slide 2": [{ name: "weather", position: "top_right", classes: "CSSclassName", carouselId: "2" }],
  58. }
  59. }
  60. },
  61. {
  62. module: "alert",
  63. },
  64. {
  65. module: "updatenotification",
  66. position: "top_bar"
  67. },
  68. {
  69. module: "clock",
  70. position: "top_left"
  71. },
  72. {
  73. module: "weather",
  74. position: "top_right",
  75. config: {
  76. carouselId: "1",
  77. weatherProvider: "openweathermap",
  78. type: "current",
  79. location: "Worms",
  80. locationID: "2806142",
  81. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  82. }
  83. },
  84. {
  85. module: 'MMM-DWD-WarnWeather',
  86. position: 'top_right',
  87. config: {
  88. carouselId: "1",
  89. region: 'Worms',
  90. changeColor: true,
  91. minutes: false,
  92. displayRegionName: false,
  93. displayInnerHeader: false,
  94. interval: 10 * 60 * 1000,
  95. loadingText: 'Warnungen werden geladen...',
  96. noWarningText: 'Keine Warnungen',
  97. severityThreshold: 2
  98. }
  99. },
  100. {
  101. module: "weather",
  102. position: "top_right",
  103. header: "Wettervorhersage",
  104. config: {
  105. carouselId: "2",
  106. weatherProvider: "openweathermap",
  107. type: "daily",
  108. location: "Worms",
  109. locationID: "2806142",
  110. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113",
  111. updateInterval: 1200000
  112. }
  113. },
  114. {
  115. module: "compliments",
  116. position: "middle_center",
  117. config: {
  118. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json"
  119. }
  120. },
  121. {
  122. module: "MMM-wiki",
  123. position: "middle_center",
  124. config: {
  125. updateInterval: 30000,
  126. language: "de",
  127. characterLimit: 500,
  128. category: "Schon_gewusst",
  129. badTitles: [
  130. "Graphical",
  131. "timeline",
  132. "List"
  133. ],
  134. badContents: [
  135. "This article",
  136. "See also",
  137. "redirects here",
  138. "The following outline",
  139. "may refer to"
  140. ],
  141. }
  142. },
  143. {
  144. module: "calendar",
  145. header: "Jonathan - heute und morgen",
  146. position: "bottom_left",
  147. config: {
  148. maximumEntries: 5,
  149. showLocation: true,
  150. maximumNumberOfDays: 2,
  151. titleReplace: { '🚑': '', },
  152. calendars: [
  153. {
  154. symbol: "ambulance",
  155. url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AWFOXjvMTWxYfQxCKxEaGdHaxWbWQoFZrke1cxI0VevOJI6AD1dZR0YR_tDk3Oh35o"
  156. },
  157. {
  158. symbol: "calendar-check",
  159. url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AW4zB7F4Er7L-pe0M80P5X0HC1SqZ8Yyhpxl-VqPkWwQ84lbmADkN2qL7XHj7GHwpQ"
  160. },
  161. {
  162. symbol: "calendar-check",
  163. url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AXavA_dk4HtOH-Xnn95ifNlVJo7QbBTng09wDRMNJKmZ7XQQsirQ4QNkol1rrnjUWc"
  164. },
  165. ]
  166. }
  167. },
  168. {
  169. module: "calendar",
  170. header: "Biggi - heute und morgen",
  171. position: "bottom_left",
  172. config: {
  173. maximumEntries: 5,
  174. showLocation: true,
  175. maximumNumberOfDays: 2,
  176. calendars: [
  177. {
  178. symbol: "pills",
  179. url: "https://calendar.google.com/calendar/ical/ptgait6k6k5vblpkn9p63c662c%40group.calendar.google.com/private-8bda3f347dbbcb2af317c584ba9d97f4/basic.ics"
  180. },
  181. {
  182. symbol: "calendar-check",
  183. url: "https://calendar.google.com/calendar/ical/traxlerbirgit%40gmail.com/private-d992dff7e89fb0b7291f60a3dfe324c2/basic.ics"
  184. },
  185. ]
  186. }
  187. },
  188. {
  189. module: "calendar",
  190. header: "Jinaki - heute und morgen",
  191. position: "bottom_left",
  192. config: {
  193. maximumEntries: 5,
  194. showLocation: true,
  195. maximumNumberOfDays: 2,
  196. calendars: [
  197. {
  198. symbol: "paw",
  199. url: "https://calendar.google.com/calendar/ical/51egvobpdg428dpc0jrkm0b9a0%40group.calendar.google.com/private-7b8a5c55c9a1350949901104f23aa17c/basic.ics"
  200. },
  201. ]
  202. }
  203. },
  204. {
  205. module: "calendar",
  206. header: "Wohnung - heute und morgen",
  207. position: "bottom_left",
  208. config: {
  209. maximumEntries: 5,
  210. showLocation: true,
  211. maximumNumberOfDays: 2,
  212. titleReplace: { ' - Schillerstraße': '', },
  213. calendars: [
  214. {
  215. symbol: "home",
  216. url: "https://calendar.google.com/calendar/ical/2b0a2vl1q9kfjsk3p5e2psib1s%40group.calendar.google.com/private-0d830ea99e99bc834639d73dbc688e41/basic.ics"
  217. },
  218. ]
  219. }
  220. },
  221. {
  222. module: 'MMM-Todoist',
  223. position: 'bottom_right', // This can be any of the regions. Best results in left or right regions.
  224. header: 'ToDo - Jonathan', // This is optional
  225. config: { // See 'Configuration options' for more information.
  226. hideWhenEmpty: true,
  227. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  228. maximumEntries: 60,
  229. updateInterval: 10 * 60 * 1000,
  230. fade: true,
  231. // projects and/or labels is mandatory:
  232. projects: [2273680564]
  233. }
  234. },
  235. {
  236. module: 'MMM-Todoist',
  237. position: 'bottom_right',
  238. header: 'ToDo - Biggi',
  239. config: {
  240. hideWhenEmpty: true,
  241. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  242. maximumEntries: 60,
  243. updateInterval: 10 * 60 * 1000,
  244. fade: true,
  245. projects: [2273786906]
  246. }
  247. },
  248. {
  249. module: 'MMM-Todoist',
  250. position: 'bottom_right',
  251. header: 'ToDo - Jinaki',
  252. config: {
  253. hideWhenEmpty: true,
  254. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  255. maximumEntries: 60,
  256. updateInterval: 10 * 60 * 1000,
  257. fade: true,
  258. projects: [2273684134]
  259. }
  260. },
  261. {
  262. module: 'MMM-Todoist',
  263. position: 'bottom_right', // This can be any of the regions. Best results in left or right regions.
  264. header: 'ToDo - Wohnung', // This is optional
  265. config: { // See 'Configuration options' for more information.
  266. hideWhenEmpty: true,
  267. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  268. maximumEntries: 60,
  269. updateInterval: 10 * 60 * 1000, // Update every 10 minutes
  270. fade: true,
  271. // projects and/or labels is mandatory:
  272. projects: [2273684252]
  273. }
  274. },
  275. {
  276. module: 'MMM-Todoist',
  277. position: 'bottom_right', // This can be any of the regions. Best results in left or right regions.
  278. header: 'Einkaufsliste', // This is optional
  279. config: { // See 'Configuration options' for more information.
  280. hideWhenEmpty: true,
  281. accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
  282. maximumEntries: 60,
  283. updateInterval: 10 * 60 * 1000, // Update every 10 minutes
  284. fade: true,
  285. // projects and/or labels is mandatory:
  286. projects: [2273680600]
  287. }
  288. },
  289. ]
  290. };
  291. /*************** DO NOT EDIT THE LINE BELOW ***************/
  292. if (typeof module !== "undefined") { module.exports = config; }