config.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. let config = {
  2. address: ['localhost', '127.0.0.1', '::1', '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: 'top_right', carouselId: '1' }
  41. ],
  42. },
  43. }
  44. },
  45. {
  46. module: 'clock',
  47. position: 'top_left',
  48. config: {
  49. carouselId: '1',
  50. timeFormat: 24,
  51. }
  52. },
  53. {
  54. module: 'weather',
  55. position: 'top_right',
  56. config: {
  57. carouselId: '1'
  58. weatherProvider: 'openweathermap',
  59. type: 'current',
  60. location: 'Worms',
  61. locationID: '2806142', //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  62. apiKey: 'e3185c8094b5cbc1d4291d0dcf64e113'
  63. }
  64. },
  65. {
  66. module: 'weather',
  67. position: 'top_right',
  68. header: 'Wettervorhersage',
  69. config: {
  70. carouselId: '1'
  71. weatherProvider: 'openweathermap',
  72. type: 'forecast',
  73. location: 'Worms',
  74. locationID: '2806142', //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  75. apiKey: 'e3185c8094b5cbc1d4291d0dcf64e113'
  76. }
  77. },
  78. {
  79. module: 'compliments',
  80. position: 'middle_center',
  81. config: {
  82. carouselId: '1',
  83. updateInterval: 20000,
  84. fadeSpeed: 3000,
  85. morningStartTime: 5,
  86. morningEndTime: 12,
  87. afternoonStartTime: 12,
  88. afternoonEndTime: 20,
  89. remoteFile: 'https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json'
  90. }
  91. }
  92. ]
  93. }