|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- /* 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 = {
- electronOptions: {
- webPreferences: {
- webviewTag: true,
- },
- },
- 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"],
-
- 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
-
- modules: [
- {
- module: "alert",
- },
- {
- module: 'MMM-DynamicWeather',
- position: 'fullscreen_above',
- config: { // See https://github.com/scottcl88/MMM-DynamicWeather for more information.
- api_key: "b5c1eee1956050dbcf9c922625c8c182",
- locationID: "2861650",
- effectDuration: 30000,
- effectDelay: 60000
-
- }
- },
- {
- module: 'MMM-flick-gestures'
- },
- {
- module: 'MMM-pages',
- config: {
- modules:
- [["newsfeed", "MMM-EasyPix", "MMM-WebView"],
- ["MMM-COVID19-AMPEL",]],
- fixed: ["MMM-connection-status", "clock", "MMM-page-indicator", "MMM-DynamicWeather","MMM-PublicTransportHafas", "weather"],
- rotationTime: 15000,
- }
- },
- {
- module: 'MMM-page-indicator',
- position: 'bottom_bar',
- config: {
- pages: 2,
- }
- },
- {
- module: "clock",
- position: "top_left"
- },
- {
- module: "weather",
- position: "top_right",
- header: "Wetter: ",
- config: {
- weatherProvider: "openweathermap",
- type: "forecast",
- tableClass: "medium",
- location: "Nürnberg",
- locationID: "2861650", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
- apiKey: "b5c1eee1956050dbcf9c922625c8c182"
- }
- },
- {
- module: "MMM-PublicTransportHafas",
- position: "bottom_right",
-
- config: {
- // Departures options
- stationID: "8004442", // Replace with your stationID!
- stationName: "Verbindung Dürrenhof -> Hauptbahnhof", // Replace with your station name!
- direction: "8000284", // Show only departures heading to this station. (A station ID.)
- excludedTransportationTypes: ["bus", "subway", "national"], // Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: "tram", "bus", "suburban", "subway", "regional" and "national"
- ignoredLines: [], // Which lines should be ignored? (comma-separated list of line names)
- timeToStation: 0, // How long do you need to walk to the next Station?
-
- // Look and Feel
- displayLastUpdate: true, // Display the last time of module update.
- maxUnreachableDepartures: 0, // How many unreachable departures should be shown?
- maxReachableDepartures: 7, // How many reachable departures should be shown?
- showColoredLineSymbols: true, // Want colored line symbols?
- customLineStyles: "", // Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitive)
- showOnlyLineNumbers: false, // Display only the line number instead of the complete name, i. e. "11" instead of "STR 11"
- showTableHeadersAsSymbols: true, // Table Headers as symbols or text?
- useColorForRealtimeInfo: true, // Want colored real time information (timeToStation, early)?
- updatesEvery: 180 //Sekunden Biatch
- }
- },
-
- {
- module: "MMM-EasyPix",
- position: "middle_center",
- config: {
- picName: "th-qrCode.png", // Enter the picture file name.
- maxWidth: "8%", // Size picture precisely. Retains aspect ratio.
- //sounds: ["1.mp3", "me2.mp3"], // mp3 sound file names in quotes seperated by commas for Hello-Lucy
- //updateInterval: 30 * 60 * 1000, // updates display
- //animationSpeed: 3000,
- }
- },
- //{
- //module: 'MMM-Canteen',
- //position: 'top_center',
- //config: {
- //canteenName: 'Mensateria Ohm Nürnberg',
- //updateInterval: 600000,
- //canteen: 268,
- //status: "students",
- //truncate: 100,
- //switchTime: "16:00"
- //}
- //},
- {
- module: "newsfeed",
- position: "bottom_center",
- config: {
- feeds: [
- {
- title: "Teschnische Hochschule Nürnberg",
- url: "https://www.th-nuernberg.de/news-archiv/rss.xml"
- }
- ],
- showDescription: true,
- showSourceTitle: true,
- showPublishDate: true,
- broadcastNewsFeeds: true,
- broadcastNewsUpdates: true,
- updateInterval: 20000
- }
- },
-
- {
- module: 'MMM-COVID19-AMPEL',
- position: 'bottom_center',
- config: {
- header: 'COVID-19 Inzidenzwert', // Header Title of Display on MagicMirror
- cityID: ["284", "282"], // City ID from https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/917fc37a709542548cc3be077a786c17_0/data
- infoRowClass: "medium", // small, medium
- showUpdateDateInHeader: true, //Show update date in header
- showUpdateDateInRow: false, //Show update date in each row
- showStatusLightLeft: true, //Show left status light
- showStatusLightRight: true, // Show right status light
- showTitle: true, //Show Title row with headlines if you want to display more than one information
- showSKLK: false, //Show the Region information if the Pace displayed is the city or regional area (Stadt or Land)
- showCases: true, //Show amount of active cases in city
- showCasesPerPeople: false, //Show Percentage of active cases per inhabitant
- showDeathRatePerPeople: true, //show death rate in % of infected people
- show7DayIncidence: true, // Show 7 day incidence value for your location
- landModeOnly: false, // Shows Bundesland instead of City in Bundesland (Thos who want to display only the Bundesland)
- showVaccinations: false, //Shows the total quota of fist shots people got in the whole country in header
- numberOfDigits: 2, //Round the Percentage and incidence value to number of digits
- updateInterval: 3600000, // update interval in milliseconds // 1 Hour - Values are only refreshed every 24 H on Server
- fadeSpeed: 4000,
- }
- },
- {
- module: 'MMM-WebView',
- position: 'bottom_left',
- config: {
- url: 'file:///home/pi/Desktop/Git/smartMirror/speiseplan-skript/speiseplan.html',
- width: '20rem',
- height: '25rem',
- autoRefresh: true,
- autoRefreshInterval: 1800000
- },
- },
-
-
- ]
- };
-
- /*************** DO NOT EDIT THE LINE BELOW ***************/
- if (typeof module !== "undefined") {module.exports = config;}
|