Browse Source

Initial Upload

Jonathan Starck 3 years ago
parent
commit
19e35168ed
2 changed files with 177 additions and 0 deletions
  1. 146 0
      config/config.js
  2. 31 0
      css/custom.css

+ 146 - 0
config/config.js

@@ -0,0 +1,146 @@
+/* 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", 	// 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"],
+
+	language: "de",
+	locale: "de-DE",
+	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
+	timeFormat: 24,
+	units: "metric",
+
+	modules: [
+	{
+            module: 'MMM-Carousel',
+            position: 'bottom_bar', // Required only for navigation controls
+            config: {
+                transitionInterval: 10000,
+                ignoreModules: ['alert','updatenotification','MMM-BurnIn'],
+                mode: 'slides',
+                showPageIndicators: true,
+                showPageControls: true,
+                slides: {
+                    main: ['clock', 'calendar', 'compliments', 'weather','newsfeed' ],
+					'Slide 1': ['clock', 'calendar', 'compliments', 'MMM-Strava','newsfeed' ],
+                },
+            }
+        },
+		{
+			module: "alert",
+		},
+		{
+			module: "updatenotification",
+			position: "top_bar"
+		},
+		{
+			module: "clock",
+			position: "top_left"
+		},
+		{
+			module: "calendar",
+			header: "Kalender",
+			position: "top_left",
+			config: {
+				calendars: [
+					{
+						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/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AWFOXjvMTWxYfQxCKxEaGdHaxWbWQoFZrke1cxI0VevOJI6AD1dZR0YR_tDk3Oh35o"
+					},
+					{
+						symbol: "calendar-check",
+						url: "webcal://p50-caldav.icloud.com/published/2/MjE4ODU4NTI1MjE4ODU4NXgB0aDPRyaNTbFBhbPi7AXavA_dk4HtOH-Xnn95ifNlVJo7QbBTng09wDRMNJKmZ7XQQsirQ4QNkol1rrnjUWc"
+					}
+				]
+			}
+		},
+		{
+			module: "compliments",
+			position: "lower_third"
+		},
+		{
+			module: "weather",
+			position: "top_right",
+			config: {
+				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",
+			config: {
+				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: "newsfeed",
+			position: "bottom_bar",
+			config: {
+				feeds: [
+					{
+						title: "Tagesschau.de",
+						url: "https://www.tagesschau.de/xml/rss2/"
+					},
+					{
+						title: "Der Postillon",
+						url: "http://feeds.feedburner.com/blogspot/rkEL"
+					}
+				],
+				showSourceTitle: true,
+				showPublishDate: true,
+				broadcastNewsFeeds: true,
+				broadcastNewsUpdates: true
+			}
+		},
+		{
+			module: "MMM-Strava",
+			position: "top_right",
+			config: {
+				client_id: "78459",
+				client_secret: 'fa53397e480227309b5abd37b690187a58112fe5'
+			}
+		},
+		{
+			module: 'MMM-BurnIn',
+			position: 'bottom_bar',
+			config: {
+			   updateInterval: 15,
+			   invertDuration: 5
+			}
+		}
+	]
+};
+
+/*************** DO NOT EDIT THE LINE BELOW ***************/
+if (typeof module !== "undefined") {module.exports = config;}

+ 31 - 0
css/custom.css

@@ -0,0 +1,31 @@
+/* Magic Mirror Custom CSS Sample
+ *
+ * Change color and fonts here.
+ *
+ * Beware that properties cannot be unitless, so for example write '--gap-body: 0px;' instead of just '--gap-body: 0;'
+ *
+ * MIT Licensed.
+ */
+
+/* Uncomment and adjust accordingly if you want to import another font from the google-fonts-api: */
+/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;700&display=swap'); */
+
+:root {
+  --color-text: #999;
+  --color-text-dimmed: #666;
+  --color-text-bright: #fff;
+  --color-background: black;
+
+  --font-primary: "Roboto Condensed";
+  --font-secondary: "Roboto";
+  
+  --font-size: 20px;
+  --font-size-small: 0.75rem;
+
+  --gap-body-top: 60px;
+  --gap-body-right: 60px;
+  --gap-body-bottom: 60px;
+  --gap-body-left: 60px;
+  
+  --gap-modules: 30px;
+}