config.js 8.0 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", // 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. 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-Carousel',
  40. position: 'bottom_bar', // Required only for navigation controls
  41. config: {
  42. transitionInterval: 30000,
  43. showPageIndicators: true,
  44. showPageControls: true,
  45. ignoreModules: ['clock', 'alert', 'MMM-BurnIn'],
  46. mode: 'slides',
  47. slides: {
  48. main: ['weather', 'MMM-DWD-WarnWeather', 'MMM-ImageSlideshow', 'MMM-SimpleLogo','MMM-CalendarExt2', 'newsfeed', 'MMM-WiFiPassword'],
  49. "Slide 2": ['MMM-SimpleLogo', 'calendar'],
  50. "Slide 3": ['MMM-EasyPix'],
  51. "Slide 4": ['compliments', 'MMM-SimpleLogo']
  52. }
  53. }
  54. },
  55. {
  56. module: "alert",
  57. },
  58. {
  59. module: 'MMM-ImageSlideshow',
  60. position: 'middle_center',
  61. config: {
  62. imagePaths: ['modules/MMM-ImageSlideshow/public/slide_1'],
  63. slideshowSpeed: 15000,
  64. fixedImageWidth: 900,
  65. randomizeImageOrder: true,
  66. }
  67. },
  68. {
  69. module: "MMM-EasyPix",
  70. position: "middle_center",
  71. config: {
  72. picName: "wachenwappen.png", // Enter the picture file name.
  73. maxWidth: "100%", // Size picture precisely. Retains aspect ratio.
  74. }
  75. },
  76. {
  77. module: "compliments",
  78. position: "middle_center",
  79. disabled: false,
  80. config: {
  81. updateInterval: 20000,
  82. fadeSpeed: 3000,
  83. morningStartTime: 6,
  84. morningEndTime: 12,
  85. afternoonStartTime: 12,
  86. afternoonEndTime: 19,
  87. compliments: {
  88. anytime: [
  89. "Dir einen ruhigen Dienst!",
  90. "Ihr seid doch wieder ohne Aufsicht\nIch merk das doch!",
  91. "Hier könnte Ihre Werbung stehen.",
  92. "Some people need a highfive… in the face… with a chair…",
  93. "Unsere Wache ist selbstaufräumend.\nJeder räumt sein Zeug selbst in seinen Spind.",
  94. "Geht der Melder im Mai ist der April vorbei.",
  95. "Ein bisschen mehr ernst täterätäte uns gut.",
  96. "Die ersten vierzig Jahre der Kindheit sind die Schwersten.",
  97. "Was ist ein nackter Ritter?\nEntrüstet",
  98. "Atomwitz.\nKeiner lacht, alle strahlen."
  99. ],
  100. morning: [
  101. "Guten Morgen!",
  102. "Kaffee am Morgen vertreibt Kummer und Sorgen!",
  103. "Der frühe Vogel stirbt wegen Schlafmangel."
  104. ],
  105. afternoon: [
  106. "Alle Tagesaufgaben schon erledigt?",
  107. "Ist dein Einsatzfahrzeug schmutzig?\nSei mutig und putze es auch an einem nicht Routinedesi-Tag!",
  108. "Auch die hartnäckigsten Vegetarier beißen ungern ins Grass."
  109. ],
  110. evening: [
  111. "Guten Abend und gute Nacht!",
  112. "Wer im Glashaus sitzt sollte Nachts das Licht ausmachen.",
  113. "Ich wäre gern mal abends so müde wie morgens!"
  114. ]
  115. }
  116. }
  117. },
  118. {
  119. module: "updatenotification",
  120. position: "top_bar"
  121. },
  122. {
  123. module: "clock",
  124. position: "top_left"
  125. },
  126. {
  127. module: "weather",
  128. position: "bottom_left",
  129. config: {
  130. weatherProvider: "openweathermap",
  131. type: "current",
  132. location: "Nierstein",
  133. locationID: "2862485", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  134. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  135. }
  136. },
  137. {
  138. module: "weather",
  139. position: "bottom_left",
  140. header: "Wettervorhersage",
  141. config: {
  142. weatherProvider: "openweathermap",
  143. type: "forecast",
  144. location: "Nierstein",
  145. locationID: "2862485", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  146. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  147. }
  148. },
  149. {
  150. module: 'MMM-DWD-WarnWeather',
  151. position: 'bottom_left',
  152. header: 'Wetterwarnungen',
  153. config: {
  154. region: 'Nierstein',
  155. changeColor: true,
  156. minutes: false,
  157. displayRegionName: true,
  158. displayInnerHeader: true,
  159. interval: 10 * 60 * 1000, // every 10 minutes
  160. loadingText: 'Warnungen werden geladen...',
  161. noWarningText: 'Keine Warnungen',
  162. severityThreshold: 2
  163. }
  164. },
  165. {
  166. module: 'MMM-SimpleLogo',
  167. position: 'top_right',
  168. config: {
  169. fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
  170. text: "",
  171. position: "right",
  172. width: "250px",
  173. refreshInterval: "refresh"
  174. }
  175. },
  176. {
  177. module: 'MMM-WiFiPassword',
  178. position: "bottom_right",
  179. disabled: true,
  180. config: {
  181. //See 'Configuration options' for more information.
  182. header: "Wachen-WLAN",
  183. network: "RW21 MA-WLAN",
  184. password: "Elefant17#",
  185. showAuthType: false,
  186. qrSize: "250",
  187. }
  188. },
  189. {
  190. module: "newsfeed",
  191. position: "bottom_bar",
  192. config: {
  193. feeds: [
  194. {
  195. title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
  196. url: "https://www.drk-rhein-nahe.de/news-rss.xml",
  197. ignoreOlderThan: "31536000000"
  198. },
  199. {
  200. title: "Deutscher Berufsverband Rettungsdienst e.V.",
  201. url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
  202. ignoreOlderThan: "31536000000"
  203. },
  204. {
  205. title: "Allgmeine Zeitung - VG Rhein-Selz",
  206. url: "https://www.allgemeine-zeitung.de/rss/lokales/oppenheim/vg-rhein-selz",
  207. ignoreOlderThan: "345600000"
  208. }
  209. ],
  210. showSourceTitle: true,
  211. showPublishDate: true,
  212. broadcastNewsFeeds: true,
  213. broadcastNewsUpdates: true
  214. }
  215. },
  216. {
  217. module: "MMM-BurnIn",
  218. position: "bottom_bar", // whatever, doesn't render anything
  219. config: {
  220. updateInterval: 15, // in Minutes
  221. invertDuration: 5 // in Seconds
  222. }
  223. },
  224. {
  225. module: "calendar",
  226. position: "middle_center", // This can be any of the regions. Best results in left or right regions.
  227. config: {
  228. tableClass: "xlarge",
  229. fetchInterval: 20000,
  230. maxTitleLength: 50,
  231. calendars: [
  232. {
  233. url: 'https://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AV3d-E-x-6DiosmdvqwmyCmtNNsJbvCuvFEzJYrPXBa3RaNhNYzh6Us9HDAo05Jtzs',
  234. symbol: 'calendar'
  235. },
  236. ],
  237. }
  238. },
  239. {
  240. module: "MMM-CalendarExt2",
  241. position: "top_right",
  242. config: {
  243. calendars: [
  244. {
  245. name: "Wachenaufgaben",
  246. url: 'https://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AV3d-E-x-6DiosmdvqwmyCmtNNsJbvCuvFEzJYrPXBa3RaNhNYzh6Us9HDAo05Jtzs',
  247. icon: "mdi:alert-circle-check-outline",
  248. className: "wachenaufgaben",
  249. },
  250. ],
  251. views: [
  252. {
  253. name: "Waachenaufgaben",
  254. mode: "daily",
  255. position: "top_right",
  256. calendars: ["Wachenaufgaben"],
  257. },
  258. ],
  259. scenes: [
  260. {
  261. name: "AUTOKALENTERI",
  262. },
  263. ],
  264. },
  265. },
  266. ]
  267. };
  268. /*************** DO NOT EDIT THE LINE BELOW ***************/
  269. if (typeof module !== "undefined") { module.exports = config; }