Jonathan Starck преди 3 години
родител
ревизия
69b9f1c562
променени са 1 файла, в които са добавени 478 реда и са изтрити 15 реда
  1. 478 15
      config/config.js

+ 478 - 15
config/config.js

@@ -11,23 +11,486 @@ let config = {
     units: "metric",
     modules: [
         {
-            module: 'MMM-MyWeather',
+            module: "alert",
+        },
+        {
+            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: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'calendar', position: "middle_center", carouselId: "1" }
+                    ],
+                    "Slide 1": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        /*
+                        { name: 'newsfeed', position: "middle_center", carouselId: "1" },
+                        { name: 'MMM-News-QR', position: "middle_center", carouselId: "1" },
+                        */
+                        { name: 'MMM-EasyPix', position: "middle_center", carouselId: "1" }
+                    ],
+                    "Slide 2": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'MMM-EasyPix', position: "middle_center", carouselId: "3" }
+                    ],
+                    "Slide 3": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'calendar', position: "middle_center", carouselId: "2" }
+                    ],
+                    "Slide 4": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'calendar', position: "middle_center", carouselId: "3" }
+                    ],
+                    "Slide 5": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'calendar', position: "middle_center", carouselId: "4" }
+                    ],
+                    "Slide 6": [
+                        { name: 'MMM-BackgroundSlideshow', position: "fullscreen_below", carouselId: "5" },
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'MMM-AutoDimmer', position: "fullscreen_above"}
+                    ],
+                    "Slide 7": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'compliments', position: "middle_center", carouselId: "1" }
+                    ],
+                    "Slide 8": [
+                        { name: 'clock', position: "top_left", carouselId: "1" },
+                        { name: 'MMM-SimpleLogo', position: "top_right", carouselId: "1" },
+                        { name: 'MMM-ImageSlideshow', position: "middle_center", carouselId: "5" },
+                        { name: 'weather', position: "bottom_left", carouselId: "5" },
+                        { name: 'MMM-DWD-WarnWeather', position: "bottom_left", carouselId: "5" },
+                        { name: 'MMM-EasyPix', position: "bottom_right", carouselId: "2" },
+                        { name: 'newsfeed', position: "bottom_bar", carouselId: "5" }
+                    ],
+                }
+
+            }
+        },
+        /*
+            SECTION - Main Slide
+        */
+        {
+            module: 'clock',
+            position: "top_left",
+            config: {
+                timeFormat: 24,
+                carouselId: '1'
+            }
+        },
+        {
+            module: 'MMM-SimpleLogo',
             position: 'top_right',
             config: {
-                apikey: '7f8378788aee47dfad655c9adbb967a4',
-                lat: "49.86",
-                lon: "8.35",
-                hourly: '3',
-                fctext: '1',
-                fcdaycount: "5",
-                fcdaystart: "0",
-                hourlyinterval: "3",
-                hourlycount: "2",
-                alerttime: 10000,
-                alerttruncatestring: "english:",
-                roundTmpDecs: 1,
-                UseCardinals: 0,
-                layout: "horizontal"
+                carouselId: "1",
+                fileUrl: "modules/MMM-SimpleLogo/public/wachenwappen.png",
+                text: "",
+                position: "right",
+                width: "200px",
+            }
+        },
+        {
+            module: "MMM-EasyPix",
+            position: "middle_center",
+            config: {
+                carouselId: "1",
+                picName: "RW-Nierstein_big.jpg", 
+                maxWidth: "80%",         
+            }
+        },
+        {
+            module: "MMM-EasyPix",
+            position: "middle_center",
+            config: {
+                carouselId: "3",
+                picName: "Wachenkasse.jpg", 
+                maxWidth: "80%",         
+            }
+        },
+        {
+            module: "calendar",
+            header: "Tagesübersicht",
+            classes: "daily-overview",
+            position: "middle_center",
+            config: {
+                carouselId: "1",
+                tableClass: "large daily-overview-table wachenaufgaben",
+                fetchInterval: 600000, /* 600000 */
+                maxTitleLength: 50,
+                displaySymbol: true,
+                showLocation: false,
+                maxTitleLines: 1,
+                maximumEntries: 9,
+                maximumNumberOfDays: 1,
+                calendars: [
+                    {
+                        /* RW21 Wachenaufgaben */
+                        url: 'https://nc.x0p.it/remote.php/dav/public-calendars/ZMGgBLGn52oATzDw?export',
+                        symbolClass: 'todo-symbol',
+                        titleClass: 'todo-title',
+                        timeClass: 'todotime',
+                        symbol: 'clipboard-list-check'
+                    },
+                    {
+                        /* RW21 Putzplan */
+                        url: 'https://nc.x0p.it/remote.php/dav/public-calendars/WW49cKGiiZyy95q8?export',
+                        symbolClass: 'clean-symbol',
+                        titleClass: 'clean-title',
+                        timeClass: 'clean-time',
+                        symbol: 'vacuum',
+                    },
+                    {
+                        /* RW21 Allgemeines */
+                        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,
+                    },
+                    {
+                        /* RW21 Muellkalender */
+                        url: 'https://nc.x0p.it/remote.php/dav/public-calendars/krSEAP9TEXwqqm2n?export',
+                        symbolClass: 'trash-symbol',
+                        titleClass: 'trash-title',
+                        timeClass: 'trash-time',
+                        symbol: 'trash-can',
+                        maximumNumberOfDays: 2,
+                    }
+                ]
+            }
+        },
+        /*
+            !!SECTION
+        */
+        /*
+             SECTION - Slide 1
+         */
+        {
+            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/9b3f22a476537f93ca3edf77cc0bac84/raw/30b2243e58ce6f87b91335193a59e38a069125db/compliments_1.json"
+            }
+        },
+        /*
+            !!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
+         */
+        /*
+        SECTION - Slide 5
+        */
+        {
+            module: 'MMM-BackgroundSlideshow',
+            position: 'fullscreen_below',
+            config: {
+                carouselId: "5",
+                imagePaths: ['modules/MMM-BackgroundSlideshow/slides/aktionen/'],
+                transitionImages: false,
+                randomizeImageOrder: true,
+                fixedImageWidth: 1920,
+                fixedImageHeight: 1080,
+                slideshowSpeed: 100000
+            }
+        },
+        /*
+             !!SECTION
+        */
+        /*
+        SECTION - Slide 7
+        */
+        {
+            module: 'MMM-ImageSlideshow',
+            position: 'middle_center',
+            config: {
+                carouselId: "5",
+                imagePaths: ['modules/MMM-ImageSlideshow/public/slide_1'],
+                slideshowSpeed: 15000,
+                fixedImageWidth: 900,
+                randomizeImageOrder: true,
+            }
+        },
+        {
+            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',
+            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: "345600000"
+                    // },
+                    {
+                        title: "Deutscher Berufsverband Rettungsdienst e.V.",
+                        url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
+                        ignoreOlderThan: "345600000"
+                    },
+                    {
+                        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: false,
+                broadcastNewsUpdates: false
+            }
+        },
+        /*
+             !!SECTION
+         */
+        /*
+        SECTION - Slide 7
+        */
+        {
+            module: 'MMM-News-QR',
+            position: "middle_center",
+            config: {
+                carouselId: "1",
+                updateType: 'push',
+                interval: 2000,
+                animationSpeed: 2500,
+                colorDark: '#fff',
+                colorLight: '#000',
+                imageSize: 150
+            }
+        },
+        {
+            module: "newsfeed",
+            position: "middle_center",
+            config: {
+                carouselId: "1",
+                feeds: [
+                    // {
+                    //     title: "DRK Rettungsdienst Rheinhessen-Nahe gGmbH",
+                    //     url: "https://www.drk-rhein-nahe.de/news-rss.xml",
+                    //     ignoreOlderThan: "345600000"
+                    // },
+                    {
+                        title: "Deutscher Berufsverband Rettungsdienst e.V.",
+                        url: "https://dbrd.de/index.php/aktivitaeten?format=feed&type=rss",
+                        ignoreOlderThan: "345600000"
+                    },
+                    {
+                        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,
+                showDescription: true
+            }
+        },
+        {
+            module: "MMM-EasyPix",
+            position: "bottom_right",
+            config: {
+                carouselId: "2",
+                picName: "RW-Nierstein.jpg", 
+                maxWidth: "200px",         
+            }
+        },
+        /*
+         !!SECTION
+     */
+        {
+            module: "MMM-BurnIn",
+            position: "bottom_bar",
+            config: {
+                updateInterval: 15,
+                invertDuration: 5
+            }
+        },
+        {
+            module: 'MMM-AutoDimmer',
+            position: 'fullscreen_above',
+            header: '',
+            // Don't change anything above this line
+            config: {
+                carouselId: "1",
+                schedules: [
+                    {
+                        days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
+                        brightTime: 600,
+                        dimTime: 2300,
+                        maxDim: 0.5
+                    }
+                ]
             }
         }
     ]