config.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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: 'MMM-DWD-WarnWeather', position: "top_right", carouselId: "1" },
  41. { name: "compliments", position: "middle_center", carouselId: "1" }
  42. ],
  43. "Birgit": [
  44. { name: "clock", position: "top_left", carouselId: "1" }
  45. ],
  46. "Jonathan": [
  47. { name: "clock", position: "top_left", carouselId: "1" }
  48. ]
  49. },
  50. }
  51. },
  52. {
  53. module: "clock",
  54. position: "top_left",
  55. config: {
  56. carouselId: "1",
  57. timeFormat: 24,
  58. }
  59. },
  60. {
  61. module: "weather",
  62. position: "top_right",
  63. config: {
  64. carouselId: "1",
  65. weatherProvider: "openweathermap",
  66. type: "current",
  67. location: "Worms",
  68. locationID: "2806142",
  69. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  70. }
  71. },
  72. {
  73. module: 'MMM-DWD-WarnWeather',
  74. position: 'top_right',
  75. config: {
  76. carouselId: "1",
  77. region: 'Worms',
  78. changeColor: true,
  79. minutes: false,
  80. displayRegionName: false,
  81. displayInnerHeader: false,
  82. interval: 10 * 60 * 1000,
  83. loadingText: 'Warnungen werden geladen...',
  84. noWarningText: 'Keine Warnungen',
  85. severityThreshold: 2
  86. }
  87. },
  88. {
  89. module: "weather",
  90. position: "top_right",
  91. header: "Wettervorhersage",
  92. config: {
  93. carouselId: "1",
  94. weatherProvider: "openweathermap",
  95. type: "forecast",
  96. location: "Worms",
  97. locationID: "2806142",
  98. apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
  99. }
  100. },
  101. {
  102. module: "compliments",
  103. position: "middle_center",
  104. config: {
  105. carouselId: "1",
  106. updateInterval: 20000,
  107. fadeSpeed: 3000,
  108. morningStartTime: 5,
  109. morningEndTime: 12,
  110. afternoonStartTime: 12,
  111. afternoonEndTime: 20,
  112. remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json"
  113. }
  114. }
  115. ]
  116. }