Jonathan Starck 3 rokov pred
rodič
commit
7dd6a790da
1 zmenil súbory, kde vykonal 98 pridanie a 83 odobranie
  1. 98 83
      config/config.js

+ 98 - 83
config/config.js

@@ -17,26 +17,27 @@ let config = {
 			module: "updatenotification",
 			position: "top_bar"
 		},
-        {
-            module: 'MMM-Carousel',
-            position: 'bottom_bar',
-            config: {
-                transitionInterval: 22000,
-                showPageIndicators: true,
-                showPageControls: false,
-                ignoreModules: ["MMM-BurnIn"],
-                mode: 'slides',
-                slides: {
-                    "Main": [
-                        { name: 'clock', position: "top_left", carouselId: "1" },
+		{
+			module: 'MMM-Carousel',
+			position: 'bottom_bar',
+			config: {
+				transitionInterval: 22000,
+				showPageIndicators: true,
+				showPageControls: false,
+				ignoreModules: ["MMM-BurnIn"],
+				mode: 'slides',
+				slides: {
+					"Main": [
+						{ name: 'clock', position: "top_left", carouselId: "1" },
 						{ name: 'weather', position: "top_right", carouselId: "1" },
 						{ name: 'MMM-DWD-WarnWeather', position: "top_right", carouselId: "1" },
+						{ name: 'compliments', position: "middle_center", carouselId: "1" },
 						{ name: 'newsfeed', position: "bottom_bar", carouselId: "1" }
-                    ]
-                }
+					]
+				}
 
-            }
-        },
+			}
+		},
 		{
 			module: "clock",
 			position: "top_left",
@@ -46,74 +47,88 @@ let config = {
 			}
 		},
 		{
-            module: "weather",
-            position: "top_right",
-            config: {
-                carouselId: "1",
-                weatherProvider: "openweathermap",
-                type: "current",
-                location: "Worms",
-                locationID: "2806142",
-                apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
-            }
-        },
-        {
-            module: "weather",
-            position: "top_right",
-            header: "Wettervorhersage",
-            config: {
-                carouselId: "1",
-                weatherProvider: "openweathermap",
-                type: "forecast",
-                location: "Worms",
-                locationID: "2806142",
-                apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
-            }
-        },
-        {
-            module: 'MMM-DWD-WarnWeather',
-            position: 'top_right',
-            config: {
-                carouselId: "1",
-                region: 'Worms',
-                changeColor: true,
-                minutes: false,
-                displayRegionName: true,
-                displayInnerHeader: true,
-                interval: 10 * 60 * 1000,
-                loadingText: 'Warnungen werden geladen...',
-                noWarningText: 'Keine Warnungen',
-                severityThreshold: 2
-            }
-        },
+			module: "weather",
+			position: "top_right",
+			config: {
+				carouselId: "1",
+				weatherProvider: "openweathermap",
+				type: "current",
+				location: "Worms",
+				locationID: "2806142",
+				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
+			}
+		},
+		{
+			module: "weather",
+			position: "top_right",
+			header: "Wettervorhersage",
+			config: {
+				carouselId: "1",
+				weatherProvider: "openweathermap",
+				type: "forecast",
+				location: "Worms",
+				locationID: "2806142",
+				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
+			}
+		},
 		{
-            module: "newsfeed",
-            position: "bottom_bar",
-            config: {
-                carouselId: "1",
-                feeds: [
-                    {
-                        title: "Tagesschau.de",
-                        url: "https://www.tagesschau.de/xml/rss2/",
-                        ignoreOlderThan: "345600000"
-                    },
-                    {
-                        title: "Schwarzwälder Bote - Rottweil",
-                        url: "https://www.schwarzwaelder-bote.de/rottweil.rss.feed",
-                        ignoreOlderThan: "345600000"
-                    },
-                    {
-                        title: "Der Postillon",
-                        url: "http://feeds.feedburner.com/blogspot/rkEL",
-                        ignoreOlderThan: "345600000"
-                    }
-                ],
-                showSourceTitle: true,
-                showPublishDate: true,
-                broadcastNewsFeeds: false,
-                broadcastNewsUpdates: false
-            }
-        },
+			module: 'MMM-DWD-WarnWeather',
+			position: 'top_right',
+			config: {
+				carouselId: "1",
+				region: 'Worms',
+				changeColor: true,
+				minutes: false,
+				displayRegionName: true,
+				displayInnerHeader: true,
+				interval: 10 * 60 * 1000,
+				loadingText: 'Warnungen werden geladen...',
+				noWarningText: 'Keine Warnungen',
+				severityThreshold: 2
+			}
+		},
+		{
+			module: "compliments",
+			position: "middle_center",
+			config: {
+				carouselId: "1",
+				updateInterval: 20000,
+				fadeSpeed: 3000,
+				morningStartTime: 6,
+				morningEndTime: 12,
+				afternoonStartTime: 12,
+				afternoonEndTime: 19,
+				remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/7a19397c80610e82bb6d3272f784f0a76808ca6b/compliments.json"
+			}
+		},
+		{
+			module: "newsfeed",
+			position: "bottom_bar",
+			config: {
+				carouselId: "1",
+				feeds: [
+					{
+						title: "Tagesschau.de",
+						url: "https://www.tagesschau.de/xml/rss2/",
+						ignoreOlderThan: "345600000"
+					},
+					{
+						title: "Schwarzwälder Bote - Rottweil",
+						url: "https://www.schwarzwaelder-bote.de/rottweil.rss.feed",
+						ignoreOlderThan: "345600000"
+					},
+					{
+						title: "Der Postillon",
+						url: "http://feeds.feedburner.com/blogspot/rkEL",
+						ignoreOlderThan: "345600000"
+					}
+				],
+				showSourceTitle: true,
+				showPublishDate: true,
+				broadcastNewsFeeds: false,
+				broadcastNewsUpdates: false
+			}
+		},
 		{
 			module: "MMM-BurnIn",
 			position: "bottom_bar",