config.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. let config = {
  2. address: "0.0.0.0",
  3. port: 8080,
  4. basePath: "/",
  5. ipWhitelist: [],
  6. language: "de",
  7. locale: "de-DE",
  8. logLevel: ["INFO", "LOG", "WARN", "ERROR"],
  9. timeFormat: 24,
  10. units: "metric",
  11. modules: [
  12. {
  13. module: "alert",
  14. },
  15. {
  16. module: "updatenotification",
  17. position: "top_bar"
  18. },
  19. {
  20. module: "MMM-BurnIn",
  21. position: "bottom_bar",
  22. config: {
  23. updateInterval: 15,
  24. invertDuration: 5
  25. }
  26. },
  27. {
  28. module: "MMM-Carousel",
  29. position: "bottom_bar",
  30. config: {
  31. transitionInterval: 20000,
  32. ignoreModules: ["alert", "updatenotification", "MMM-BurnIn"],
  33. mode: "slides",
  34. showPageIndicators: true,
  35. showPageControls: true,
  36. slides: {
  37. main: [
  38. { name: "clock", position: "top_left", carouselId: "1" },
  39. { name: "weather", position: "top_right", carouselId: "1" },
  40. { name: "compliments", position: "middle_center", carouselId: "1" }
  41. ],
  42. "Birgit": [
  43. { name: "clock", position: "top_left", carouselId: "1" }
  44. ],
  45. "Jonathan": [
  46. { name: "clock", position: "top_left", carouselId: "1" }
  47. ]
  48. },
  49. }
  50. },
  51. {
  52. module: "clock",
  53. position: "top_left",
  54. config: {
  55. carouselId: "1",
  56. timeFormat: 24,
  57. }
  58. },
  59. {
  60. module: "weather",
  61. position: "top_right",
  62. config: {
  63. carouselId: "1"
  64. weatherProvider: "openweathermap",
  65. type: "current",
  66. location: "Worms",
  67. locationID: "2806142",
  68. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  69. }
  70. },
  71. {
  72. module: "weather",
  73. position: "top_right",
  74. header: "Wettervorhersage",
  75. config: {
  76. carouselId: "1"
  77. weatherProvider: "openweathermap",
  78. type: "forecast",
  79. location: "Worms",
  80. locationID: "2806142",
  81. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  82. }
  83. },
  84. {
  85. module: "compliments",
  86. position: "middle_center",
  87. config: {
  88. carouselId: "1",
  89. updateInterval: 20000,
  90. fadeSpeed: 3000,
  91. morningStartTime: 5,
  92. morningEndTime: 12,
  93. afternoonStartTime: 12,
  94. afternoonEndTime: 20,
  95. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json"
  96. }
  97. }
  98. ]
  99. }