Browse Source

Ausprobieren einer neuen Konnfiguration

Jonathan Starck 3 years ago
parent
commit
1a3dcaeadf
2 changed files with 322 additions and 258 deletions
  1. 63 258
      config/config.js
  2. 259 0
      config/config.old.js

+ 63 - 258
config/config.js

@@ -1,259 +1,64 @@
-/* Magic Mirror Config Sample
- *
- * By Michael Teeuw https://michaelteeuw.nl
- * MIT Licensed.
- *
- * For more information on how you can configure this file
- * see https://docs.magicmirror.builders/getting-started/configuration.html#general
- * and https://docs.magicmirror.builders/modules/configuration.html
- */
 let config = {
-	address: "0.0.0.0",
-	port: 8080,
-	basePath: "/",
-	ipWhitelist: [],
-	useHttps: false,
-	language: "de",
-	locale: "de-DE",
-	logLevel: ["INFO", "LOG", "WARN", "ERROR"],
-	timeFormat: 24,
-	units: "metric",
-	modules: [
-		{
-			module: 'MMM-Carousel',
-			position: 'bottom_bar',
-			config: {
-				transitionInterval: 30000,
-				showPageIndicators: true,
-				showPageControls: false,
-				ignoreModules: ['clock', 'alert', 'MMM-BurnIn'],
-				mode: 'slides',
-				slides: {
-					main: ['weather', 'MMM-DWD-WarnWeather', 'MMM-ImageSlideshow', 'MMM-SimpleLogo', 'newsfeed'],
-					"Slide 2": ['MMM-SimpleLogo', 'calendar'],
-					"Slide 3": ['MMM-EasyPix'],
-					"Slide 4": ['MMM-SimpleLogo', 'compliments']
-					/*main: ['MMM-SimpleLogo','calendar']*/
-				}
-			}
-		},
-		{
-			module: "alert",
-		},
-		{
-			module: 'MMM-ImageSlideshow',
-			position: 'middle_center',
-			config: {
-				imagePaths: ['modules/MMM-ImageSlideshow/public/slide_1'],
-				slideshowSpeed: 15000,
-				fixedImageWidth: 900,
-				randomizeImageOrder: true,
-			}
-		},
-		{
-			module: "MMM-EasyPix",
-			position: "middle_center",
-			config: {
-				picName: "wachenwappen.png", // Enter the picture file name.
-				maxWidth: "100%",        // Size picture precisely. Retains aspect ratio.
-			}
-		},
-		{
-			module: "compliments",
-			position: "middle_center",
-			config: {
-				updateInterval: 20000,
-				fadeSpeed: 3000,
-				morningStartTime: 6,
-				morningEndTime: 12,
-				afternoonStartTime: 12,
-				afternoonEndTime: 19,
-				remoteFile: "https://gist.githubusercontent.com/Psycho0verload/9b3f22a476537f93ca3edf77cc0bac84/raw/f00ff05d2bde68382647c3cac61328659de84b1f/compliments.json"
-			}
-		},
-		{
-			module: "updatenotification",
-			position: "top_bar"
-		},
-		{
-			module: "clock",
-			position: "top_left"
-		},
-		{
-			module: "weather",
-			position: "bottom_left",
-			config: {
-				weatherProvider: "openweathermap",
-				type: "current",
-				location: "Nierstein",
-				locationID: "2862485",
-				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
-			}
-		},
-		{
-			module: "weather",
-			position: "bottom_left",
-			header: "Wettervorhersage",
-			config: {
-				weatherProvider: "openweathermap",
-				type: "forecast",
-				location: "Nierstein",
-				locationID: "2862485",
-				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
-			}
-		},
-		{
-			module: 'MMM-DWD-WarnWeather',
-			position: 'bottom_left',
-			header: 'Wetterwarnungen',
-			config: {
-				region: 'Nierstein',
-				changeColor: true,
-				minutes: false,
-				displayRegionName: true,
-				displayInnerHeader: true,
-				interval: 10 * 60 * 1000,
-				loadingText: 'Warnungen werden geladen...',
-				noWarningText: 'Keine Warnungen',
-				severityThreshold: 2
-			}
-		},
-		{
-			module: 'MMM-SimpleLogo',
-			position: 'top_right',
-			config: {
-				fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
-				text: "",
-				position: "right",
-				width: "250px",
-				refreshInterval: "refresh"
-			}
-		},
-		{
-			module: "newsfeed",
-			position: "bottom_bar",
-			config: {
-				feeds: [
-					{
-						title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
-						url: "https://www.drk-rhein-nahe.de/news-rss.xml",
-						ignoreOlderThan: "31536000000"
-					},
-					{
-						title: "Deutscher Berufsverband Rettungsdienst e.V.",
-						url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
-						ignoreOlderThan: "31536000000"
-					},
-					{
-						title: "Allgmeine Zeitung - VG Rhein-Selz",
-						url: "https://www.allgemeine-zeitung.de/rss/lokales/oppenheim/vg-rhein-selz",
-						ignoreOlderThan: "345600000"
-					},
-					{
-						title: "Der Postillon",
-						url: "http://feeds.feedburner.com/blogspot/rkEL",
-						ignoreOlderThan: "345600000"
-					}
-				],
-				showSourceTitle: true,
-				showPublishDate: true,
-				broadcastNewsFeeds: true,
-				broadcastNewsUpdates: true
-			}
-		},
-		{
-			module: "MMM-BurnIn",
-			position: "bottom_bar", // whatever, doesn't render anything
-			config: {
-				updateInterval: 15, // in Minutes
-				invertDuration: 5 // in Seconds
-			}
-		},
-		{
-			module: "calendar",
-			position: "middle_center",	// This can be any of the regions. Best results in left or right regions.
-			config: {
-				tableClass: "large wachenaufgaben",
-				fetchInterval: 600000,
-				maxTitleLength: 50,
-				displaySymbol: true,
-				maximumNumberOfDays: 1,
-				showLocation: false,
-				maxTitleLines: 1,
-				maximumEntries: 9,
-				nextDaysRelative: true,
-				timeFormat: "relative",
-				hideOngoing: false,
-				calendars: [
-					{
-						url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
-						symbolClass: 'todo-symbol',
-						titleClass: 'todo-title',
-						timeClass: 'todotime',
-						symbol: 'clipboard-list-check',
-					},
-					{
-						url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8/?export',
-						symbolClass: 'clean-symbol',
-						titleClass: 'clean-title',
-						timeClass: 'clean-time',
-						symbol: 'vacuum',
-					},
-					{
-						url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
-						symbolClass: 'info-symbol',
-						titleClass: 'info-title',
-						timeClass: 'info-time',
-						symbol: 'circle-info',
-						maximumNumberOfDays: 7,
-					},
-
-				],
-			}
-		},
-		{
-			module: 'MMM-WatchDog',
-			config: {
-				interval: 2,
-				timeout: 10
-			}
-		}
-		// {
-		// 	module: "MMM-CalendarExt2",
-		// 	config: {
-		// 		calendars: [
-		// 			// {
-		// 			// 	name: "Aufgaben",
-		// 			// 	url: 'webcal://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
-		// 			// 	icon: "bi:clipboard2-check",
-		// 			// 	className: "todo",
-		// 			// },
-		// 			{
-		// 				name: "Infos",
-		// 				url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
-		// 				icon: "bi:info-circle",
-		// 				className: "clean",
-		// 			},
-		// 		],
-
-		// 		views: [
-		// 			{
-		// 				name: "Wachenaufgaben",
-		// 				mode: "daily",
-		// 				locale: "de-DE",
-		// 				position: "bottom_right",
-		// 				calendars: ["Infos"],
-		// 			},
-		// 		],
-		// 		scenes: [
-		// 			{
-		// 				name: "AUTOKALENTERI",
-		// 			},
-		// 		],
-		// 	},
-		// },
-	]
-};
-
-/*************** DO NOT EDIT THE LINE BELOW ***************/
-if (typeof module !== "undefined") { module.exports = config; }
+    port: 8080,
+    language: "de",
+    locale: "de-DE",
+    timeFormat: 24,
+    units: "metric",
+    modules: [
+        /**====================== Definiton des Carousels ========================**/
+        {
+            module: 'MMM-Carousel',
+            position: 'bottom_bar',
+            config: {
+                transitionInterval: 30000,
+                showPageIndicators: true,
+                showPageControls: false,
+                ignoreModules: [],
+                mode: 'slides',
+                slides: {
+                    Main: [
+                        {
+                            name: 'clock',
+                            position: "top_left",
+                            carouselId: "1"
+                        }
+                    ],
+                    "Slide 2": [
+                        {
+                            name: 'clock',
+                            position: "middle_center",
+                            carouselId: "1"
+                        }
+                    ]
+                }
+            }
+        },
+        /**====================== Definitonen der Uhr ========================**/
+        {
+            module: "clock",
+            config: {
+                carouselId: "1",
+                timeFormat: "24"
+            }
+        },
+        {
+            module: "clock",
+            config: {
+                carouselId: "2",
+                timeFormat: "12"
+            }
+        },
+        /**====================== Definitonen für Module in Top Right ========================**/
+        {
+            module: 'MMM-SimpleLogo',
+            position: 'top_right',
+            config: {
+                fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
+                text: "",
+                position: "right",
+                width: "250px",
+                refreshInterval: "refresh"
+            }
+        },
+    ]
+}

+ 259 - 0
config/config.old.js

@@ -0,0 +1,259 @@
+/* Magic Mirror Config Sample
+ *
+ * By Michael Teeuw https://michaelteeuw.nl
+ * MIT Licensed.
+ *
+ * For more information on how you can configure this file
+ * see https://docs.magicmirror.builders/getting-started/configuration.html#general
+ * and https://docs.magicmirror.builders/modules/configuration.html
+ */
+let config = {
+	address: "0.0.0.0",
+	port: 8080,
+	basePath: "/",
+	ipWhitelist: [],
+	useHttps: false,
+	language: "de",
+	locale: "de-DE",
+	logLevel: ["INFO", "LOG", "WARN", "ERROR"],
+	timeFormat: 24,
+	units: "metric",
+	modules: [
+		{
+			module: 'MMM-Carousel',
+			position: 'bottom_bar',
+			config: {
+				transitionInterval: 30000,
+				showPageIndicators: true,
+				showPageControls: false,
+				ignoreModules: ['clock', 'alert', 'MMM-BurnIn'],
+				mode: 'slides',
+				slides: {
+					main: ['weather', 'MMM-DWD-WarnWeather', 'MMM-ImageSlideshow', 'MMM-SimpleLogo', 'newsfeed'],
+					"Slide 2": ['MMM-SimpleLogo', 'calendar'],
+					"Slide 3": ['MMM-EasyPix'],
+					"Slide 4": ['MMM-SimpleLogo', 'compliments']
+					/*main: ['MMM-SimpleLogo','calendar']*/
+				}
+			}
+		},
+		{
+			module: "alert",
+		},
+		{
+			module: 'MMM-ImageSlideshow',
+			position: 'middle_center',
+			config: {
+				imagePaths: ['modules/MMM-ImageSlideshow/public/slide_1'],
+				slideshowSpeed: 15000,
+				fixedImageWidth: 900,
+				randomizeImageOrder: true,
+			}
+		},
+		{
+			module: "MMM-EasyPix",
+			position: "middle_center",
+			config: {
+				picName: "wachenwappen.png", // Enter the picture file name.
+				maxWidth: "100%",        // Size picture precisely. Retains aspect ratio.
+			}
+		},
+		{
+			module: "compliments",
+			position: "middle_center",
+			config: {
+				updateInterval: 20000,
+				fadeSpeed: 3000,
+				morningStartTime: 6,
+				morningEndTime: 12,
+				afternoonStartTime: 12,
+				afternoonEndTime: 19,
+				remoteFile: "https://gist.githubusercontent.com/Psycho0verload/9b3f22a476537f93ca3edf77cc0bac84/raw/f00ff05d2bde68382647c3cac61328659de84b1f/compliments.json"
+			}
+		},
+		{
+			module: "updatenotification",
+			position: "top_bar"
+		},
+		{
+			module: "clock",
+			position: "top_left"
+		},
+		{
+			module: "weather",
+			position: "bottom_left",
+			config: {
+				weatherProvider: "openweathermap",
+				type: "current",
+				location: "Nierstein",
+				locationID: "2862485",
+				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
+			}
+		},
+		{
+			module: "weather",
+			position: "bottom_left",
+			header: "Wettervorhersage",
+			config: {
+				weatherProvider: "openweathermap",
+				type: "forecast",
+				location: "Nierstein",
+				locationID: "2862485",
+				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
+			}
+		},
+		{
+			module: 'MMM-DWD-WarnWeather',
+			position: 'bottom_left',
+			header: 'Wetterwarnungen',
+			config: {
+				region: 'Nierstein',
+				changeColor: true,
+				minutes: false,
+				displayRegionName: true,
+				displayInnerHeader: true,
+				interval: 10 * 60 * 1000,
+				loadingText: 'Warnungen werden geladen...',
+				noWarningText: 'Keine Warnungen',
+				severityThreshold: 2
+			}
+		},
+		{
+			module: 'MMM-SimpleLogo',
+			position: 'top_right',
+			config: {
+				fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
+				text: "",
+				position: "right",
+				width: "250px",
+				refreshInterval: "refresh"
+			}
+		},
+		{
+			module: "newsfeed",
+			position: "bottom_bar",
+			config: {
+				feeds: [
+					{
+						title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
+						url: "https://www.drk-rhein-nahe.de/news-rss.xml",
+						ignoreOlderThan: "31536000000"
+					},
+					{
+						title: "Deutscher Berufsverband Rettungsdienst e.V.",
+						url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
+						ignoreOlderThan: "31536000000"
+					},
+					{
+						title: "Allgmeine Zeitung - VG Rhein-Selz",
+						url: "https://www.allgemeine-zeitung.de/rss/lokales/oppenheim/vg-rhein-selz",
+						ignoreOlderThan: "345600000"
+					},
+					{
+						title: "Der Postillon",
+						url: "http://feeds.feedburner.com/blogspot/rkEL",
+						ignoreOlderThan: "345600000"
+					}
+				],
+				showSourceTitle: true,
+				showPublishDate: true,
+				broadcastNewsFeeds: true,
+				broadcastNewsUpdates: true
+			}
+		},
+		{
+			module: "MMM-BurnIn",
+			position: "bottom_bar", // whatever, doesn't render anything
+			config: {
+				updateInterval: 15, // in Minutes
+				invertDuration: 5 // in Seconds
+			}
+		},
+		{
+			module: "calendar",
+			position: "middle_center",	// This can be any of the regions. Best results in left or right regions.
+			config: {
+				tableClass: "large wachenaufgaben",
+				fetchInterval: 600000,
+				maxTitleLength: 50,
+				displaySymbol: true,
+				maximumNumberOfDays: 1,
+				showLocation: false,
+				maxTitleLines: 1,
+				maximumEntries: 9,
+				nextDaysRelative: true,
+				timeFormat: "relative",
+				hideOngoing: false,
+				calendars: [
+					{
+						url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
+						symbolClass: 'todo-symbol',
+						titleClass: 'todo-title',
+						timeClass: 'todotime',
+						symbol: 'clipboard-list-check',
+					},
+					{
+						url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8/?export',
+						symbolClass: 'clean-symbol',
+						titleClass: 'clean-title',
+						timeClass: 'clean-time',
+						symbol: 'vacuum',
+					},
+					{
+						url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
+						symbolClass: 'info-symbol',
+						titleClass: 'info-title',
+						timeClass: 'info-time',
+						symbol: 'circle-info',
+						maximumNumberOfDays: 7,
+					},
+
+				],
+			}
+		},
+		{
+			module: 'MMM-WatchDog',
+			config: {
+				interval: 2,
+				timeout: 10
+			}
+		}
+		// {
+		// 	module: "MMM-CalendarExt2",
+		// 	config: {
+		// 		calendars: [
+		// 			// {
+		// 			// 	name: "Aufgaben",
+		// 			// 	url: 'webcal://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw/?export',
+		// 			// 	icon: "bi:clipboard2-check",
+		// 			// 	className: "todo",
+		// 			// },
+		// 			{
+		// 				name: "Infos",
+		// 				url: 'https://nc.x0p.it/remote.php/dav/public-calendars/eMQW6HmyjfgS8bXq?export',
+		// 				icon: "bi:info-circle",
+		// 				className: "clean",
+		// 			},
+		// 		],
+
+		// 		views: [
+		// 			{
+		// 				name: "Wachenaufgaben",
+		// 				mode: "daily",
+		// 				locale: "de-DE",
+		// 				position: "bottom_right",
+		// 				calendars: ["Infos"],
+		// 			},
+		// 		],
+		// 		scenes: [
+		// 			{
+		// 				name: "AUTOKALENTERI",
+		// 			},
+		// 		],
+		// 	},
+		// },
+	]
+};
+
+/*************** DO NOT EDIT THE LINE BELOW ***************/
+if (typeof module !== "undefined") { module.exports = config; }