Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Magic Mirror Config Sample
- *
- * By Michael Teeuw http://michaelteeuw.nl
- * MIT Licensed.
- *
- * For more information how you can configurate this file
- * See https://github.com/MichMich/MagicMirror#configuration
- *
- */
- var 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, is "localhost"
- port: 8080,
- 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"],
- language: "sv",
- timeFormat: 24,
- units: "metric",
- modules: [
- {
- module: "alert",
- },
- {
- module: "updatenotification",
- position: "top_bar"
- },
- {
- module: "clock",
- position: "top_left"
- },
- {
- module: "calendar",
- header: "Kommande högtider",
- position: "top_left",
- config: {
- calendars: [
- {
- symbol: "calendar-check",
- url: "webcal://ical.mac.com/ical/Swedish32Holidays.ics" }
- ]
- }
- },
- {
- module: "compliments",
- position: "lower_third"
- },
- {
- module: "currentweather",
- position: "top_right",
- config: {
- location: "Linderöd,Sweden",
- locationID: "2721226", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
- appid: "869bd9a9ad51995c558f1af77e4c7cfc"
- }
- },
- {
- module: "weatherforecast",
- position: "top_right",
- header: "Weather Forecast",
- config: {
- location: "Linderöd,Sweden",
- locationID: "2721226", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
- appid: "869bd9a9ad51995c558f1af77e4c7cfc"
- }
- },
- {
- module: "newsfeed",
- position: "bottom_bar",
- config: {
- feeds: [
- {
- title: "New York Times",
- url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
- }
- ],
- showSourceTitle: true,
- showPublishDate: true,
- broadcastNewsFeeds: true,
- broadcastNewsUpdates: true
- }
- },
- {
- module: "MMM-CrisisInformationSweden",
- position: "top_right",
- config: {
- updateInterval: 30*60*1000, // Optional. Number of ms between API updates.
- uiUpdateInterval: 10*1000, // Optional. Number of ms between changing to next announcement.
- alwaysNational: true, // Optional, Regardless of other settings always show national info.
- areas: [], // Optional. An array of strings with area names.
- // Only those messages aimed at the areas listed in the array are shown.
- // The strings must match exactly with the AreaDesc of the message.
- // If empty or undefined show all messages. Not implemented yet.
- showDescription: true, // Optional. Show message description.
- oldest: 7, // Optional. Dont show messages older then this number of days.
- silent: false, // Optional. If enabled no messages are shown if therer are no
- // messages younger then 'oldest' setting
- debug: false, // Optional. Enable some extra output when debugging
- }
- },
- {
- module: "MMM-ResRobot",
- position: "left",
- header: "Avgångar",
- config: {
- routes: [
- {from: "740074238", to: ""}, // ResRobot Station IDs of starting and destination station(s). At least one route must be defined.
- {from: "", to: ""}, // "from" is required but "to" is optional (set "to" to empty string to indicate all destinations)
- ],
- skipMinutes: 0, // Skip departures that happens within the next <value> minutes.
- maximumEntries: 6, // Number of departures to show on screen
- truncateAfter: 5, // A value > 0 will truncate direction name at first space after <value> characters. 0 = no truncation
- apiKey: "55d50c2f-9549-4d03-98b5-8eb3e1b8290c" // Your ResRobot apiKey
- }
- },
- {
- module: "MMM-Skolmaten",
- header: "Tollarpsskola",
- position: "bottom_right",
- config: {
- url: "https://skolmaten.se/tollarps-skola/rss/days/?offset=-1&limit=9"
- }
- },
- {
- module: "MMM-Namnsdag",
- position: "bottom_right",
- header: "Namnsdag",
- }
- },
- ]
- };
- /*************** DO NOT EDIT THE LINE BELOW ***************/
- if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement