config.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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", // 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: [], // 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. language: "de",
  25. locale: "de-DE",
  26. logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
  27. timeFormat: 24,
  28. units: "metric",
  29. modules: [
  30. {
  31. module: 'MMM-Carousel',
  32. position: 'bottom_bar', // Required only for navigation controls
  33. config: {
  34. transitionInterval: 10000,
  35. ignoreModules: ['alert','updatenotification','MMM-BurnIn'],
  36. mode: 'slides',
  37. showPageIndicators: true,
  38. showPageControls: true,
  39. slides: {
  40. main: ['clock', 'calendar', 'compliments', 'weather','newsfeed' ],
  41. 'Slide 1': ['clock', 'calendar', 'compliments', 'MMM-Strava','newsfeed' ],
  42. },
  43. }
  44. },
  45. {
  46. module: "alert",
  47. },
  48. {
  49. module: "updatenotification",
  50. position: "top_bar"
  51. },
  52. {
  53. module: "clock",
  54. position: "top_left"
  55. },
  56. {
  57. module: "calendar",
  58. header: "Kalender",
  59. position: "top_left",
  60. config: {
  61. calendars: [
  62. {
  63. symbol: "calendar-check",
  64. url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AW4zB7F4Er7L-pe0M80P5X0HC1SqZ8Yyhpxl-VqPkWwQ84lbmADkN2qL7XHj7GHwpQ"
  65. },
  66. {
  67. symbol: "calendar-check",
  68. url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AWFOXjvMTWxYfQxCKxEaGdHaxWbWQoFZrke1cxI0VevOJI6AD1dZR0YR_tDk3Oh35o"
  69. },
  70. {
  71. symbol: "calendar-check",
  72. url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AXavA_dk4HtOH-Xnn95ifNlVJo7QbBTng09wDRMNJKmZ7XQQsirQ4QNkol1rrnjUWc"
  73. }
  74. ]
  75. }
  76. },
  77. {
  78. module: "compliments",
  79. position: "lower_third"
  80. },
  81. {
  82. module: "weather",
  83. position: "top_right",
  84. config: {
  85. weatherProvider: "openweathermap",
  86. type: "current",
  87. location: "Worms",
  88. locationID: "2806142", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  89. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  90. }
  91. },
  92. {
  93. module: "weather",
  94. position: "top_right",
  95. header: "Wettervorhersage",
  96. config: {
  97. weatherProvider: "openweathermap",
  98. type: "forecast",
  99. location: "Worms",
  100. locationID: "2806142", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  101. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  102. }
  103. },
  104. {
  105. module: "newsfeed",
  106. position: "bottom_bar",
  107. config: {
  108. feeds: [
  109. {
  110. title: "Tagesschau.de",
  111. url: "https://www.tagesschau.de/xml/rss2/"
  112. },
  113. {
  114. title: "Der Postillon",
  115. url: "http://feeds.feedburner.com/blogspot/rkEL"
  116. }
  117. ],
  118. showSourceTitle: true,
  119. showPublishDate: true,
  120. broadcastNewsFeeds: true,
  121. broadcastNewsUpdates: true
  122. }
  123. },
  124. {
  125. module: "MMM-Strava",
  126. position: "top_right",
  127. config: {
  128. client_id: "78459",
  129. client_secret: 'fa53397e480227309b5abd37b690187a58112fe5'
  130. }
  131. },
  132. {
  133. module: 'MMM-BurnIn',
  134. position: 'bottom_bar',
  135. config: {
  136. updateInterval: 15,
  137. invertDuration: 5
  138. }
  139. }
  140. ]
  141. };
  142. /*************** DO NOT EDIT THE LINE BELOW ***************/
  143. if (typeof module !== "undefined") {module.exports = config;}