Jelajahi Sumber

Upload der korrekten Datei.

Jonathan Starck 3 tahun lalu
induk
melakukan
11b74dffd8
1 mengubah file dengan 214 tambahan dan 279 penghapusan
  1. 214 279
      config/config.js

+ 214 - 279
config/config.js

@@ -8,288 +8,223 @@
  * and https://docs.magicmirror.builders/modules/configuration.html
  */
 let config = {
-    address: "localhost", 	// Address to listen on, can be:
-    // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
-    // - another specific IPv4/6 to listen on a specific interface
-    // - "0.0.0.0", "::" to listen on any interface
-    // Default, when address config is left out or empty, is "localhost"
-    port: 8080,
-    basePath: "/", 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy
-    // you must set the sub path here. basePath must end with a /
-    ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], 	// Set [] to allow all IP addresses
-    // or add a specific IPv4 of 192.168.1.5 :
-    // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
-    // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
-    // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
+	address: "0.0.0.0", 	// Address to listen on, can be:
+	// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
+	// - another specific IPv4/6 to listen on a specific interface
+	// - "0.0.0.0", "::" to listen on any interface
+	// Default, when address config is left out or empty, is "localhost"
+	port: 8080,
+	basePath: "/", 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy
+	// you must set the sub path here. basePath must end with a /
+	ipWhitelist: [], 	// Set [] to allow all IP addresses
+	// or add a specific IPv4 of 192.168.1.5 :
+	// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
+	// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
+	// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
 
-    useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
-    httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
-    httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
+	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
+	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
+	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
 
-    language: "de",
-    locale: "de-DE",
-    logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
-    timeFormat: 24,
-    units: "metric",
-    // serverOnly:  true/false/"local" ,
-    // local for armv6l processors, default
-    //   starts serveronly and then starts chrome browser
-    // false, default for all NON-armv6l devices
-    // true, force serveronly mode, because you want to.. no UI on this device
+	language: "de",
+	locale: "de-DE",
+	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
+	timeFormat: 24,
+	units: "metric",
+	// serverOnly:  true/false/"local" ,
+	// local for armv6l processors, default
+	//   starts serveronly and then starts chrome browser
+	// false, default for all NON-armv6l devices
+	// true, force serveronly mode, because you want to.. no UI on this device
 
-    modules: [
-        {
-            module: "MMM-MagicMover",
-            config: {
-                updateInterval: 120 * 1000,
-                ignoredRegions: [],
-                maxMove: 20,
-            }
-        },
-        {
-            module: 'MMM-Carousel',
-            position: 'bottom_bar', // Required only for navigation controls
-            config: {
-                transitionInterval: 20000,
-                showPageIndicators: true,
-                showPageControls: true,
-                ignoreModules: ['clock', 'alert'],
-                mode: 'slides',
-                slides: {
-                    main: ['clock', { name: "weather", position: "top_right", classes: "CSSclassName", carouselId: "1" }, { name: "MMM-DWD-WarnWeather", position: "top_right", classes: "CSSclassName", carouselId: "1" }, 'compliments', 'MMM-wiki', 'calendar', 'MMM-Todoist'],
-                    "Slide 2": [{ name: "weather", position: "top_right", classes: "CSSclassName", carouselId: "2" }],
-                }
-            }
-        },
-        {
-            module: "alert",
-        },
-        {
-            module: "updatenotification",
-            position: "top_bar"
-        },
-        {
-            module: "clock",
-            position: "top_left"
-        },
-        {
-            module: "weather",
-            position: "top_right",
-            config: {
-                carouselId: "1",
-                weatherProvider: "openweathermap",
-                type: "current",
-                location: "Worms",
-                locationID: "2806142",
-                apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
-            }
-        },
-        {
-            module: 'MMM-DWD-WarnWeather',
-            position: 'top_right',
-            config: {
-                carouselId: "1",
-                region: 'Worms',
-                changeColor: true,
-                minutes: false,
-                displayRegionName: false,
-                displayInnerHeader: false,
-                interval: 10 * 60 * 1000,
-                loadingText: 'Warnungen werden geladen...',
-                noWarningText: 'Keine Warnungen',
-                severityThreshold: 2
-            }
-        },
-        {
-            module: "weather",
-            position: "top_right",
-            header: "Wettervorhersage",
-            config: {
-                carouselId: "2",
-                weatherProvider: "openweathermap",
-                type: "daily",
-                location: "Worms",
-                locationID: "2806142",
-                apiKey: "e3185c8094b5cbc1d4291d0dcf64e113",
-                updateInterval: 1200000
-            }
-        },
-        {
-            module: "compliments",
-            position: "middle_center",
-            config: {
-                remoteFile: "https://gist.githubusercontent.com/Psycho0verload/af47b09bacebfc887a5a4f7fef44fd39/raw/compliments.json"
-            }
-        },
-        {
-            module: "MMM-wiki",
-            position: "middle_center",
-            config: {
-                updateInterval: 30000,
-                language: "de",
-                characterLimit: 500,
-                category: "Schon_gewusst",
-                badTitles: [
-                    "Graphical",
-                    "timeline",
-                    "List"
-                ],
-                badContents: [
-                    "This article",
-                    "See also",
-                    "redirects here",
-                    "The following outline",
-                    "may refer to"
-                ],
-            }
-        },
-        {
-            module: "calendar",
-            header: "Jonathan - heute und morgen",
-            position: "bottom_left",
-            config: {
-                maximumEntries: 5,
-                showLocation: true,
-                maximumNumberOfDays: 2,
-                titleReplace: { '🚑': '', },
-                calendars: [
-                    {
-                        symbol: "ambulance",
-                        url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AWFOXjvMTWxYfQxCKxEaGdHaxWbWQoFZrke1cxI0VevOJI6AD1dZR0YR_tDk3Oh35o"
-                    },
-                    {
-                        symbol: "calendar-check",
-                        url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AW4zB7F4Er7L-pe0M80P5X0HC1SqZ8Yyhpxl-VqPkWwQ84lbmADkN2qL7XHj7GHwpQ"
-                    },
-                    {
-                        symbol: "calendar-check",
-                        url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AXavA_dk4HtOH-Xnn95ifNlVJo7QbBTng09wDRMNJKmZ7XQQsirQ4QNkol1rrnjUWc"
-                    },
-                ]
-            }
-        },
-        {
-            module: "calendar",
-            header: "Biggi - heute und morgen",
-            position: "bottom_left",
-            config: {
-                maximumEntries: 5,
-                showLocation: true,
-                maximumNumberOfDays: 2,
-                calendars: [
-                    {
-                        symbol: "pills",
-                        url: "https://calendar.google.com/calendar/ical/ptgait6k6k5vblpkn9p63c662c%40group.calendar.google.com/private-8bda3f347dbbcb2af317c584ba9d97f4/basic.ics"
-                    },
-                    {
-                        symbol: "calendar-check",
-                        url: "https://calendar.google.com/calendar/ical/traxlerbirgit%40gmail.com/private-d992dff7e89fb0b7291f60a3dfe324c2/basic.ics"
-                    },
-                ]
-            }
-        },
-        {
-            module: "calendar",
-            header: "Jinaki - heute und morgen",
-            position: "bottom_left",
-            config: {
-                maximumEntries: 5,
-                showLocation: true,
-                maximumNumberOfDays: 2,
-                calendars: [
-                    {
-                        symbol: "paw",
-                        url: "https://calendar.google.com/calendar/ical/51egvobpdg428dpc0jrkm0b9a0%40group.calendar.google.com/private-7b8a5c55c9a1350949901104f23aa17c/basic.ics"
-                    },
-                ]
-            }
-        },
-        {
-            module: "calendar",
-            header: "Wohnung - heute und morgen",
-            position: "bottom_left",
-            config: {
-                maximumEntries: 5,
-                showLocation: true,
-                maximumNumberOfDays: 2,
-                titleReplace: { ' - Schillerstraße': '', },
-                calendars: [
-                    {
-                        symbol: "home",
-                        url: "https://calendar.google.com/calendar/ical/2b0a2vl1q9kfjsk3p5e2psib1s%40group.calendar.google.com/private-0d830ea99e99bc834639d73dbc688e41/basic.ics"
-                    },
-                ]
-            }
-        },
-        {
-            module: 'MMM-Todoist',
-            position: 'bottom_right', // This can be any of the regions. Best results in left or right regions.
-            header: 'ToDo - Jonathan', // This is optional
-            config: { // See 'Configuration options' for more information.
-                hideWhenEmpty: true,
-                accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
-                maximumEntries: 60,
-                updateInterval: 10 * 60 * 1000,
-                fade: true,
-                // projects and/or labels is mandatory:
-                projects: [2273680564]
-            }
-        },
-        {
-            module: 'MMM-Todoist',
-            position: 'bottom_right',
-            header: 'ToDo - Biggi',
-            config: {
-                hideWhenEmpty: true,
-                accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
-                maximumEntries: 60,
-                updateInterval: 10 * 60 * 1000,
-                fade: true,
-                projects: [2273786906]
-            }
-        },
-        {
-            module: 'MMM-Todoist',
-            position: 'bottom_right',
-            header: 'ToDo - Jinaki',
-            config: {
-                hideWhenEmpty: true,
-                accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
-                maximumEntries: 60,
-                updateInterval: 10 * 60 * 1000,
-                fade: true,
-                projects: [2273684134]
-            }
-        },
-        {
-            module: 'MMM-Todoist',
-            position: 'bottom_right', // This can be any of the regions. Best results in left or right regions.
-            header: 'ToDo - Wohnung', // This is optional
-            config: { // See 'Configuration options' for more information.
-                hideWhenEmpty: true,
-                accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
-                maximumEntries: 60,
-                updateInterval: 10 * 60 * 1000, // Update every 10 minutes
-                fade: true,
-                // projects and/or labels is mandatory:
-                projects: [2273684252]
-            }
-        },
-        {
-            module: 'MMM-Todoist',
-            position: 'bottom_right', // This can be any of the regions. Best results in left or right regions.
-            header: 'Einkaufsliste', // This is optional
-            config: { // See 'Configuration options' for more information.
-                hideWhenEmpty: true,
-                accessToken: '88c7c668a17e16c8dc780278a992ec935bd05ad1',
-                maximumEntries: 60,
-                updateInterval: 10 * 60 * 1000, // Update every 10 minutes
-                fade: true,
-                // projects and/or labels is mandatory:
-                projects: [2273680600]
-            }
-        },
-    ]
+	modules: [
+		{
+			module: 'MMM-Carousel',
+			position: 'bottom_bar', // Required only for navigation controls
+			config: {
+				transitionInterval: 30000,
+				showPageIndicators: true,
+				showPageControls: true,
+				ignoreModules: ['clock', 'alert', 'MMM-BurnIn'],
+				mode: 'slides',
+				slides: {
+					main: ['MMM-EasyPix'],
+					"Slide 2": ['weather', 'MMM-DWD-WarnWeather', 'MMM-ImageSlideshow' , 'MMM-SimpleLogo', 'newsfeed', 'MMM-WiFiPassword'],
+					"Slide 3": ['compliments', 'MMM-SimpleLogo']
+				}
+			}
+		},
+		{
+			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",
+			disabled: false,
+			config: {
+				updateInterval: 20000,
+				fadeSpeed: 3000,
+				morningStartTime: 6,
+				morningEndTime: 12,
+				afternoonStartTime: 12,
+				afternoonEndTime: 19,
+				compliments: {
+					anytime: [
+						"Dir einen ruhigen Dienst!",
+						"Ihr seid doch wieder ohne Aufsicht\nIch merk das doch!",
+						"Hier könnte Ihre Werbung stehen.",
+						"Some people need a highfive… in the face… with a chair…",
+						"Unsere Wache ist selbstaufräumend.\nJeder räumt sein Zeug selbst in seinen Spind.",
+						"Geht der Melder im Mai ist der April vorbei.",
+						"Ein bisschen mehr ernst täterätäte uns gut.",
+						"Die ersten vierzig Jahre der Kindheit sind die Schwersten.",
+						"Was ist ein nackter Ritter?\nEntrüstet",
+						"Atomwitz.\nKeiner lacht, alle strahlen."
+					],
+					morning: [
+						"Guten Morgen!",
+						"Kaffee am Morgen vertreibt Kummer und Sorgen!",
+						"Der frühe Vogel stirbt wegen Schlafmangel."
+					],
+					afternoon: [
+						"Alle Tagesaufgaben schon erledigt?",
+						"Ist dein Einsatzfahrzeug schmutzig?\nSei mutig und putze es auch an einem nicht Routinedesi-Tag!",
+						"Auch die hartnäckigsten Vegetarier beißen ungern ins Grass."
+					],
+					evening: [
+						"Guten Abend und gute Nacht!",
+						"Wer im Glashaus sitzt sollte Nachts das Licht ausmachen.",
+						"Ich wäre gern mal abends so müde wie morgens!"
+					]
+				}
+			}
+		},
+		{
+			module: "updatenotification",
+			position: "top_bar"
+		},
+		{
+			module: "clock",
+			position: "top_left"
+		},
+		{
+			module: "weather",
+			position: "bottom_left",
+			config: {
+				weatherProvider: "openweathermap",
+				type: "current",
+				location: "Nierstein",
+				locationID: "2862485", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
+				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
+			}
+		},
+		{
+			module: "weather",
+			position: "bottom_left",
+			header: "Wettervorhersage",
+			config: {
+				weatherProvider: "openweathermap",
+				type: "forecast",
+				location: "Nierstein",
+				locationID: "2862485", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
+				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, // every 10 minutes
+				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: 'MMM-WiFiPassword',
+			position: "bottom_right",
+			config: {
+				//See 'Configuration options' for more information.
+				header: "Wachen-WLAN",
+				network: "RW21 MA-WLAN",
+				password: "Elefant17#",
+				showAuthType: false,
+				qrSize: "250",
+			}
+		},
+		{
+			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"
+					}
+
+				],
+				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
+			}
+		},
+	]
 };
 
 /*************** DO NOT EDIT THE LINE BELOW ***************/