Jonathan Starck 3 ani în urmă
părinte
comite
42864a28b2
1 a modificat fișierele cu 196 adăugiri și 100 ștergeri
  1. 196 100
      config/config.js

+ 196 - 100
config/config.js

@@ -17,13 +17,13 @@ let config = {
             module: 'MMM-Carousel',
             position: 'bottom_bar',
             config: {
-                transitionInterval: 30000,
+                transitionInterval: 20000,
                 showPageIndicators: true,
                 showPageControls: false,
-                ignoreModules: [],
+                ignoreModules: ["MMM-BurnIn"],
                 mode: 'slides',
                 slides: {
-                    Main: [
+                    "Main": [
                         { name: 'clock', position: "top_left", carouselId: "1" },
                         { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
                         { name: 'calendar', position: "middle_center", carouselId: "1" }
@@ -43,6 +43,13 @@ let config = {
                         { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
                         { name: 'calendar', position: "middle_center", carouselId: "4" }
                     ],
+                    "Slide 5": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'weather', position: "bottom_left", carouselId: "5" },
+                        { name: 'MMM-DWD-WarnWeather', position: "bottom_left", carouselId: "5" },
+                        { name: 'newsfeed', position: "bottom_bar", carouselId: "5" },
+                    ],
                 }
 
             }
@@ -116,105 +123,194 @@ let config = {
         /*
             !!SECTION
         */
-       /*
-            SECTION - Slide 2
-        */
-            {
-                module: "calendar",
-                header: "MZ 21/83-1",
-                classes: "rtw-overview",
-                position: "middle_center",
-                config: {
-                    carouselId: "2",
-                    tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-rtw",
-                    fetchInterval: 600000, /* 600000 */
-                    maxTitleLength: 50,
-                    displaySymbol: true,
-                    showLocation: false,
-                    maxTitleLines: 1,
-                    maximumEntries: 9,
-                    maximumNumberOfDays: 1,
-                    calendars: [
-                        {
-                            /* Fahrzeug 21/83-1 */
-                            url: 'https://nc.x0p.it/remote.php/dav/public-calendars/exdmis8xiZc54mn3?export',
-                            symbolClass: 'rtw-symbol',
-                            titleClass: 'rtw-title',
-                            timeClass: 'rtw-time',
-                            symbol: 'truck-medical'
-                        }
-                    ]
-                }
-            },
-       /*
-            !!SECTION
-        */
-              /*
-            SECTION - Slide 3
-        */
-            {
-                module: "calendar",
-                header: "MZ 21/84-1",
-                classes: "nktw-overview",
-                position: "middle_center",
-                config: {
-                    carouselId: "3",
-                    tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-nktw",
-                    fetchInterval: 600000, /* 600000 */
-                    maxTitleLength: 50,
-                    displaySymbol: true,
-                    showLocation: false,
-                    maxTitleLines: 1,
-                    maximumEntries: 9,
-                    maximumNumberOfDays: 1,
-                    calendars: [
-                        {
-                            /* Fahrzeug 21/84-1 */
-                            url: 'https://nc.x0p.it/remote.php/dav/public-calendars/NGATEN6qkf9wWEc6?export',
-                            symbolClass: 'nktw-symbol',
-                            titleClass: 'nktw-title',
-                            timeClass: 'nktw-time',
-                            symbol: 'truck-medical',
-                        },
-                    ]
-                }
-            },
-       /*
-            !!SECTION
-        */
-              /*
-            SECTION - Slide 4
-        */
-            {
-                module: "calendar",
-                header: "MZ 21/85-1",
-                classes: "ktw-overview",
-                position: "middle_center",
-                config: {
-                    carouselId: "4",
-                    tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-ktw",
-                    fetchInterval: 600000, /* 600000 */
-                    maxTitleLength: 50,
-                    displaySymbol: true,
-                    showLocation: false,
-                    maxTitleLines: 1,
-                    maximumEntries: 9,
-                    maximumNumberOfDays: 1,
-                    calendars: [
-                        {
-                            /* Fahrzeug 21/85-1 */
-                            url: 'https://nc.x0p.it/remote.php/dav/public-calendars/G6Ho8gHmWk4X7qB7?export',
-                            symbolClass: 'ktw-symbol',
-                            titleClass: 'ktw-title',
-                            timeClass: 'ktw-time',
-                            symbol: 'truck-medical',
-                        }
-                    ]
-                }
+        /*
+             SECTION - Slide 2
+         */
+        {
+            module: "calendar",
+            header: "MZ 21/83-1",
+            classes: "rtw-overview",
+            position: "middle_center",
+            config: {
+                carouselId: "2",
+                tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-rtw",
+                fetchInterval: 600000, /* 600000 */
+                maxTitleLength: 50,
+                displaySymbol: true,
+                showLocation: false,
+                maxTitleLines: 1,
+                maximumEntries: 9,
+                maximumNumberOfDays: 1,
+                calendars: [
+                    {
+                        /* Fahrzeug 21/83-1 */
+                        url: 'https://nc.x0p.it/remote.php/dav/public-calendars/exdmis8xiZc54mn3?export',
+                        symbolClass: 'rtw-symbol',
+                        titleClass: 'rtw-title',
+                        timeClass: 'rtw-time',
+                        symbol: 'truck-medical'
+                    }
+                ]
             }
-       /*
-            !!SECTION
+        },
+        /*
+             !!SECTION
+         */
+        /*
+      SECTION - Slide 3
+  */
+        {
+            module: "calendar",
+            header: "MZ 21/84-1",
+            classes: "nktw-overview",
+            position: "middle_center",
+            config: {
+                carouselId: "3",
+                tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-nktw",
+                fetchInterval: 600000, /* 600000 */
+                maxTitleLength: 50,
+                displaySymbol: true,
+                showLocation: false,
+                maxTitleLines: 1,
+                maximumEntries: 9,
+                maximumNumberOfDays: 1,
+                calendars: [
+                    {
+                        /* Fahrzeug 21/84-1 */
+                        url: 'https://nc.x0p.it/remote.php/dav/public-calendars/NGATEN6qkf9wWEc6?export',
+                        symbolClass: 'nktw-symbol',
+                        titleClass: 'nktw-title',
+                        timeClass: 'nktw-time',
+                        symbol: 'truck-medical',
+                    },
+                ]
+            }
+        },
+        /*
+             !!SECTION
+         */
+        /*
+      SECTION - Slide 4
+  */
+        {
+            module: "calendar",
+            header: "MZ 21/85-1",
+            classes: "ktw-overview",
+            position: "middle_center",
+            config: {
+                carouselId: "4",
+                tableClass: "large daily-overview-table fahrzeugaufgaben fahrzeugaufgaben-ktw",
+                fetchInterval: 600000, /* 600000 */
+                maxTitleLength: 50,
+                displaySymbol: true,
+                showLocation: false,
+                maxTitleLines: 1,
+                maximumEntries: 9,
+                maximumNumberOfDays: 1,
+                calendars: [
+                    {
+                        /* Fahrzeug 21/85-1 */
+                        url: 'https://nc.x0p.it/remote.php/dav/public-calendars/G6Ho8gHmWk4X7qB7?export',
+                        symbolClass: 'ktw-symbol',
+                        titleClass: 'ktw-title',
+                        timeClass: 'ktw-time',
+                        symbol: 'truck-medical',
+                    }
+                ]
+            }
+        },
+        /*
+             !!SECTION
+         */
+        /*
+        SECTION - Slide 5
         */
+        {
+			module: "weather",
+			position: "bottom_left",
+			config: {
+                carouselId: "5",
+				weatherProvider: "openweathermap",
+				type: "current",
+				location: "Nierstein",
+				locationID: "2862485",
+				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
+			}
+		},
+		{
+			module: "weather",
+			position: "bottom_left",
+			header: "Wettervorhersage",
+			config: {
+                carouselId: "5",
+				weatherProvider: "openweathermap",
+				type: "forecast",
+				location: "Nierstein",
+				locationID: "2862485",
+				apiKey: "e3185c8094b5cbc1d4291d0dcf64e113"
+			}
+		},
+		{
+			module: 'MMM-DWD-WarnWeather',
+			position: 'bottom_left',
+			header: 'Wetterwarnungen',
+			config: {
+                carouselId: "5",
+				region: 'Nierstein',
+				changeColor: true,
+				minutes: false,
+				displayRegionName: true,
+				displayInnerHeader: true,
+				interval: 10 * 60 * 1000,
+				loadingText: 'Warnungen werden geladen...',
+				noWarningText: 'Keine Warnungen',
+				severityThreshold: 2
+			}
+		},
+        {
+            module: "newsfeed",
+            position: "bottom_bar",
+            config: {
+                carouselId: "5",
+                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
+            }
+        },
+        /*
+             !!SECTION
+         */
+        {
+            module: "MMM-BurnIn",
+            position: "bottom_bar",
+            config: {
+                updateInterval: 15,
+                invertDuration: 5
+            }
+        }
     ]
 }