Guest User

Untitled

a guest
Nov 15th, 2021
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  25. useHttps: false, // Support HTTPS or not, default "false" will use HTTP
  26. httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
  27. httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
  28.  
  29. language: "en",
  30. locale: "en-US",
  31. logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
  32. timeFormat: 12,
  33. units: "imperial",
  34. // serverOnly: true/false/"local" ,
  35. // local for armv6l processors, default
  36. // starts serveronly and then starts chrome browser
  37. // false, default for all NON-armv6l devices
  38. // true, force serveronly mode, because you want to.. no UI on this device
  39.  
  40. modules: [
  41. {
  42. module: "alert",
  43. },
  44. {
  45. module: "updatenotification",
  46. position: "top_bar"
  47. },
  48. {
  49. module: "clock",
  50. position: "top_left"
  51. },
  52. {
  53. module: "calendar",
  54. header: "US Holidays",
  55. position: "top_left",
  56. config: {
  57. calendars: [
  58. {
  59. symbol: "holidays",
  60. url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"
  61. },
  62. {
  63. symbol: "calendar",
  64. url: "GOOGLECALENDARURL"
  65. }
  66. ]
  67. }
  68. },
  69. {
  70. module: "weather",
  71. position: "top_right",
  72. config: {
  73. weatherProvider: "openweathermap",
  74. type: "current",
  75. location: "CITY",
  76. locationID: "ID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  77. apiKey: "APIKEY"
  78. }
  79. },
  80. {
  81. module: "weather",
  82. position: "top_right",
  83. header: "Weather Forecast",
  84. config: {
  85. weatherProvider: "openweathermap",
  86. type: "forecast",
  87. location: "CITY",
  88. locationID: "ID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  89. apiKey: "APIKEY"
  90. }
  91. },
  92. {
  93. module: "newsfeed",
  94. position: "bottom_bar",
  95. config: {
  96. feeds: [
  97. {
  98. title: "Wall Street Journal Technology",
  99. url: "https://feeds.a.dj.com/rss/RSSWSJD.xml"
  100. },
  101. {
  102. title: "Wall Street Journal World News",
  103. url: "https://feeds.a.dj.com/rss/RSSWorldNews.xml"
  104. }
  105. ],
  106. showSourceTitle: true,
  107. showPublishDate: true,
  108. broadcastNewsFeeds: true,
  109. broadcastNewsUpdates: true
  110. }
  111. },
  112. {
  113. module: "MMM-cryptocurrency",
  114. position: "top_bar",
  115. config: {
  116. apikey: 'APIKEY',
  117. displayType: "logo"
  118. }
  119. },
  120. {
  121. module: "MMM-jast",
  122. position: "bottom_left",
  123. config: {
  124. maxWidth: "100%",
  125. updateIntervalInSeconds: 300,
  126. fadeSpeedInSeconds: 3.5,
  127. scroll: "vertical",
  128. useGrouping: false,
  129. currencyStyle: "code",
  130. lastUpdateFormat: "HH:mmm",
  131. showColors: true,
  132. showCurrency: true,
  133. showChangePercent: true,
  134. showChangeValue: false,
  135. showChangeValueCurrency: false,
  136. showLastUpdate: false,
  137. showPortfolioValue: false,
  138. showPortfolioGrowthPercent: false,
  139. showPortfolioGrowth: false,
  140. numberDecimalsValues: 2,
  141. numberDecimalsPercentages: 1,
  142. virtualHorizontonalMultiplier: 2,
  143. stocks: [
  144. { name: "Apple", symbol: "AAPL", quanity: 20},
  145. { name: "Micron", symbol: "MU", quanity: 10},
  146. { name: "Vanguard Total Stock Market Index", symbol: "VTSAX", quanity: 42},
  147. { name: "Walmart", symbol: "WMT", quanity: 5},
  148. { name: "Microsoft", symbol: "MSFT", quanity: 3},
  149. { name: "Rivian", symbol: "RIVN"},
  150. { name: "Intel", symbol: "INTC"},
  151. { name: "AMD", symbol: "AMD"},
  152. { name: "Nvidia", symbol: "NVDA"}
  153. ]
  154. }
  155. },
  156. ]
  157. };
  158.  
  159. /*************** DO NOT EDIT THE LINE BELOW ***************/
  160. if (typeof module !== "undefined") {module.exports = config;}
  161.  
RAW Paste Data