Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.js.sample 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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: "en",
  28. locale: "en-US",
  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: "alert",
  40. },
  41. {
  42. module: "updatenotification",
  43. position: "top_bar"
  44. },
  45. {
  46. module: "clock",
  47. position: "top_left"
  48. },
  49. {
  50. module: "calendar",
  51. header: "US Holidays",
  52. position: "top_left",
  53. config: {
  54. calendars: [
  55. {
  56. symbol: "calendar-check",
  57. url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"
  58. }
  59. ]
  60. }
  61. },
  62. {
  63. module: "compliments",
  64. position: "lower_third"
  65. },
  66. {
  67. module: "weather",
  68. position: "top_right",
  69. config: {
  70. weatherProvider: "openweathermap",
  71. type: "current",
  72. location: "New York",
  73. locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  74. apiKey: "YOUR_OPENWEATHER_API_KEY"
  75. }
  76. },
  77. {
  78. module: "weather",
  79. position: "top_right",
  80. header: "Weather Forecast",
  81. config: {
  82. weatherProvider: "openweathermap",
  83. type: "forecast",
  84. location: "New York",
  85. locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  86. apiKey: "YOUR_OPENWEATHER_API_KEY"
  87. }
  88. },
  89. {
  90. module: "newsfeed",
  91. position: "bottom_bar",
  92. config: {
  93. feeds: [
  94. {
  95. title: "New York Times",
  96. url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
  97. }
  98. ],
  99. showSourceTitle: true,
  100. showPublishDate: true,
  101. broadcastNewsFeeds: true,
  102. broadcastNewsUpdates: true
  103. }
  104. },
  105. ]
  106. };
  107. /*************** DO NOT EDIT THE LINE BELOW ***************/
  108. if (typeof module !== "undefined") {module.exports = config;}