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.

defaults.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* global mmPort */
  2. /* Magic Mirror
  3. * Config Defaults
  4. *
  5. * By Michael Teeuw https://michaelteeuw.nl
  6. * MIT Licensed.
  7. */
  8. const address = "localhost";
  9. let port = 8080;
  10. if (typeof mmPort !== "undefined") {
  11. port = mmPort;
  12. }
  13. const defaults = {
  14. address: address,
  15. port: port,
  16. basePath: "/",
  17. kioskmode: false,
  18. electronOptions: {},
  19. ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
  20. language: "en",
  21. logLevel: ["INFO", "LOG", "WARN", "ERROR"],
  22. timeFormat: 24,
  23. units: "metric",
  24. zoom: 1,
  25. customCss: "css/custom.css",
  26. modules: [
  27. {
  28. module: "updatenotification",
  29. position: "top_center"
  30. },
  31. {
  32. module: "helloworld",
  33. position: "upper_third",
  34. classes: "large thin",
  35. config: {
  36. text: "Magic Mirror<sup>2</sup>"
  37. }
  38. },
  39. {
  40. module: "helloworld",
  41. position: "middle_center",
  42. config: {
  43. text: "Please create a config file or check the existing one for errors."
  44. }
  45. },
  46. {
  47. module: "helloworld",
  48. position: "middle_center",
  49. classes: "small dimmed",
  50. config: {
  51. text: "See README for more information."
  52. }
  53. },
  54. {
  55. module: "helloworld",
  56. position: "middle_center",
  57. classes: "xsmall",
  58. config: {
  59. text: "If you get this message while your config file is already created,<br>" + "it probably contains an error. To validate your config file run in your MagicMirror directory<br>" + "<pre>npm run config:check</pre>"
  60. }
  61. },
  62. {
  63. module: "helloworld",
  64. position: "bottom_bar",
  65. classes: "xsmall dimmed",
  66. config: {
  67. text: "www.michaelteeuw.nl"
  68. }
  69. }
  70. ],
  71. paths: {
  72. modules: "modules",
  73. vendor: "vendor"
  74. }
  75. };
  76. /*************** DO NOT EDIT THE LINE BELOW ***************/
  77. if (typeof module !== "undefined") {
  78. module.exports = defaults;
  79. }