|
@@ -1,98 +1,92 @@
|
|
|
let config = {
|
|
let config = {
|
|
|
- address: "0.0.0.0",
|
|
|
|
|
|
|
+ address: ['localhost', '127.0.0.1', '::1', '0.0.0.0', '::']
|
|
|
port: 8080,
|
|
port: 8080,
|
|
|
- basePath: "/",
|
|
|
|
|
|
|
+ basePath: '/',
|
|
|
ipWhitelist: [],
|
|
ipWhitelist: [],
|
|
|
- language: "de",
|
|
|
|
|
- locale: "de-DE",
|
|
|
|
|
- logLevel: ["INFO", "LOG", "WARN", "ERROR"],
|
|
|
|
|
|
|
+ language: 'de',
|
|
|
|
|
+ locale: 'de-DE',
|
|
|
|
|
+ logLevel: ['INFO', 'LOG', 'WARN', 'ERROR'],
|
|
|
timeFormat: 24,
|
|
timeFormat: 24,
|
|
|
- units: "metric",
|
|
|
|
|
|
|
+ units: 'metric',
|
|
|
modules: [
|
|
modules: [
|
|
|
{
|
|
{
|
|
|
- module: "alert",
|
|
|
|
|
|
|
+ module: 'alert',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- module: "updatenotification",
|
|
|
|
|
- position: "top_bar"
|
|
|
|
|
|
|
+ module: 'updatenotification',
|
|
|
|
|
+ position: 'top_bar'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- module: "MMM-BurnIn",
|
|
|
|
|
- position: "bottom_bar",
|
|
|
|
|
|
|
+ module: 'MMM-BurnIn',
|
|
|
|
|
+ position: 'bottom_bar',
|
|
|
config: {
|
|
config: {
|
|
|
updateInterval: 15,
|
|
updateInterval: 15,
|
|
|
invertDuration: 5
|
|
invertDuration: 5
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- module: "MMM-Carousel",
|
|
|
|
|
- position: "bottom_bar",
|
|
|
|
|
|
|
+ module: 'MMM-Carousel',
|
|
|
|
|
+ position: 'bottom_bar',
|
|
|
config: {
|
|
config: {
|
|
|
transitionInterval: 20000,
|
|
transitionInterval: 20000,
|
|
|
- ignoreModules: ["alert", "updatenotification", "MMM-BurnIn"],
|
|
|
|
|
- mode: "slides",
|
|
|
|
|
|
|
+ ignoreModules: ['alert', 'updatenotification', 'MMM-BurnIn'],
|
|
|
|
|
+ mode: 'slides',
|
|
|
showPageIndicators: true,
|
|
showPageIndicators: true,
|
|
|
showPageControls: true,
|
|
showPageControls: true,
|
|
|
slides: {
|
|
slides: {
|
|
|
main: [
|
|
main: [
|
|
|
- { name: "clock", position: "top_left", carouselId: "1" },
|
|
|
|
|
- { name: "weather", position: "top_right", carouselId: "1" },
|
|
|
|
|
- { name: "compliments", position: "middle_center", carouselId: "1" }
|
|
|
|
|
|
|
+ { name: 'clock', position: 'top_left', carouselId: '1' },
|
|
|
|
|
+ { name: 'weather', position: 'top_right', carouselId: '1' },
|
|
|
|
|
+ { name: 'compliments', position: 'top_right', carouselId: '1' }
|
|
|
],
|
|
],
|
|
|
- "Birgit" [
|
|
|
|
|
- { name: "clock", position: "top_left", carouselId: "1" }
|
|
|
|
|
- ],
|
|
|
|
|
- "Jonathan" [
|
|
|
|
|
- { name: "clock", position: "top_left", carouselId: "1" }
|
|
|
|
|
- ]
|
|
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- module: "clock",
|
|
|
|
|
- position: "top_left",
|
|
|
|
|
|
|
+ module: 'clock',
|
|
|
|
|
+ position: 'top_left',
|
|
|
config: {
|
|
config: {
|
|
|
- carouselId: "1",
|
|
|
|
|
|
|
+ carouselId: '1',
|
|
|
timeFormat: 24,
|
|
timeFormat: 24,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- module: "weather",
|
|
|
|
|
- position: "top_right",
|
|
|
|
|
|
|
+ module: 'weather',
|
|
|
|
|
+ position: 'top_right',
|
|
|
config: {
|
|
config: {
|
|
|
- carouselId: "1"
|
|
|
|
|
- weatherProvider: "openweathermap",
|
|
|
|
|
- type: "current",
|
|
|
|
|
- location: "Worms",
|
|
|
|
|
- locationID: "2806142",
|
|
|
|
|
- apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
|
|
|
|
|
|
|
+ carouselId: '1'
|
|
|
|
|
+ weatherProvider: 'openweathermap',
|
|
|
|
|
+ type: 'current',
|
|
|
|
|
+ location: 'Worms',
|
|
|
|
|
+ locationID: '2806142', //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
|
|
|
|
|
+ apiKey: 'e3185c8094b5cbc1d4291d0dcf64e113'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- module: "weather",
|
|
|
|
|
- position: "top_right",
|
|
|
|
|
- header: "Wettervorhersage",
|
|
|
|
|
|
|
+ module: 'weather',
|
|
|
|
|
+ position: 'top_right',
|
|
|
|
|
+ header: 'Wettervorhersage',
|
|
|
config: {
|
|
config: {
|
|
|
- carouselId: "1"
|
|
|
|
|
- weatherProvider: "openweathermap",
|
|
|
|
|
- type: "forecast",
|
|
|
|
|
- location: "Worms",
|
|
|
|
|
- locationID: "2806142",
|
|
|
|
|
- apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
|
|
|
|
|
|
|
+ carouselId: '1'
|
|
|
|
|
+ weatherProvider: 'openweathermap',
|
|
|
|
|
+ type: 'forecast',
|
|
|
|
|
+ location: 'Worms',
|
|
|
|
|
+ locationID: '2806142', //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
|
|
|
|
|
+ apiKey: 'e3185c8094b5cbc1d4291d0dcf64e113'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- module: "compliments",
|
|
|
|
|
- position: "middle_center",
|
|
|
|
|
|
|
+ module: 'compliments',
|
|
|
|
|
+ position: 'middle_center',
|
|
|
config: {
|
|
config: {
|
|
|
- carouselId: "1",
|
|
|
|
|
|
|
+ carouselId: '1',
|
|
|
updateInterval: 20000,
|
|
updateInterval: 20000,
|
|
|
fadeSpeed: 3000,
|
|
fadeSpeed: 3000,
|
|
|
morningStartTime: 5,
|
|
morningStartTime: 5,
|
|
|
morningEndTime: 12,
|
|
morningEndTime: 12,
|
|
|
afternoonStartTime: 12,
|
|
afternoonStartTime: 12,
|
|
|
afternoonEndTime: 20,
|
|
afternoonEndTime: 20,
|
|
|
- remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json"
|
|
|
|
|
|
|
+ remoteFile: 'https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json'
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|