config.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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: 'MMM-DWD-WarnWeather',
  73. position: 'top_right',
  74. config: {
  75. carouselId: "1",
  76. region: 'Worms',
  77. changeColor: true,
  78. minutes: false,
  79. displayRegionName: false,
  80. displayInnerHeader: false,
  81. interval: 10 * 60 * 1000,
  82. loadingText: 'Warnungen werden geladen...',
  83. noWarningText: 'Keine Warnungen',
  84. severityThreshold: 2
  85. }
  86. },
  87. {
  88. module: "weather",
  89. position: "top_right",
  90. header: "Wettervorhersage",
  91. config: {
  92. carouselId: "1",
  93. weatherProvider: "openweathermap",
  94. type: "forecast",
  95. location: "Worms",
  96. locationID: "2806142",
  97. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  98. }
  99. },
  100. {
  101. module: "compliments",
  102. position: "middle_center",
  103. config: {
  104. carouselId: "1",
  105. updateInterval: 20000,
  106. fadeSpeed: 3000,
  107. morningStartTime: 5,
  108. morningEndTime: 12,
  109. afternoonStartTime: 12,
  110. afternoonEndTime: 20,
  111. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json"
  112. }
  113. }
  114. ]
  115. }