Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Magic Mirror Config Sample
  2.  *
  3.  * By Michael Teeuw http://michaelteeuw.nl
  4.  * MIT Licensed.
  5.  *
  6.  * For more information how you can configurate this file
  7.  * See https://github.com/MichMich/MagicMirror#configuration
  8.  *
  9.  */
  10.  
  11. var config = {
  12.     address: "localhost", // Address to listen on, can be:
  13.                           // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
  14.                           // - another specific IPv4/6 to listen on a specific interface
  15.                           // - "", "0.0.0.0", "::" to listen on any interface
  16.                           // Default, when address config is left out, is "localhost"
  17.     port: 8080,
  18.     ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
  19.                                                            // or add a specific IPv4 of 192.168.1.5 :
  20.                                                            // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
  21.                                                            // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
  22.                                                            // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
  23.  
  24.     language: "sv",
  25.     timeFormat: 24,
  26.     units: "metric",
  27.  
  28.     modules: [
  29.         {
  30.             module: "alert",
  31.         },
  32.         {
  33.             module: "updatenotification",
  34.             position: "top_bar"
  35.         },
  36.         {
  37.             module: "clock",
  38.             position: "top_left"
  39.         },
  40.         {
  41.             module: "calendar",
  42.             header: "Kommande högtider",
  43.             position: "top_left",
  44.             config: {
  45.                 calendars: [
  46.                     {
  47.                         symbol: "calendar-check",
  48.                         url: "webcal://ical.mac.com/ical/Swedish32Holidays.ics"                 }
  49.                 ]
  50.             }
  51.         },
  52.         {
  53.             module: "compliments",
  54.             position: "lower_third"
  55.         },
  56.         {
  57.             module: "currentweather",
  58.             position: "top_right",
  59.             config: {
  60.                 location: "Linderöd,Sweden",
  61.                 locationID: "2721226",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  62.                 appid: "869bd9a9ad51995c558f1af77e4c7cfc"
  63.             }
  64.         },
  65.         {
  66.             module: "weatherforecast",
  67.             position: "top_right",
  68.             header: "Weather Forecast",
  69.             config: {
  70.                 location: "Linderöd,Sweden",
  71.                 locationID: "2721226",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  72.                 appid: "869bd9a9ad51995c558f1af77e4c7cfc"
  73.             }
  74.         },
  75.         {
  76.             module: "newsfeed",
  77.             position: "bottom_bar",
  78.             config: {
  79.                 feeds: [
  80.                     {
  81.                         title: "New York Times",
  82.                         url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
  83.                     }
  84.                 ],
  85.                 showSourceTitle: true,
  86.                 showPublishDate: true,
  87.                 broadcastNewsFeeds: true,
  88.                 broadcastNewsUpdates: true
  89.             }
  90.         },
  91.         {
  92.                 module: "MMM-CrisisInformationSweden",
  93.                 position: "top_right",
  94.                 config: {
  95.                     updateInterval: 30*60*1000,     // Optional. Number of ms between API updates.
  96.                     uiUpdateInterval: 10*1000,      // Optional. Number of ms between changing to next announcement.
  97.                     alwaysNational: true,           // Optional, Regardless of other settings always show national info.
  98.                     areas: [],                      // Optional. An array of strings with area names.
  99.                                                     // Only those messages aimed at the areas listed in the array are shown.
  100.                                                     // The strings must match exactly with the AreaDesc of the message.
  101.                                                     // If empty or undefined show all messages. Not implemented yet.
  102.                     showDescription: true,          // Optional. Show message description.
  103.                     oldest: 7,                      // Optional. Dont show messages older then this number of days.
  104.                     silent: false,                   // Optional. If enabled no messages are shown if therer are no
  105.                                                     // messages younger then 'oldest' setting
  106.                     debug: false,                   // Optional. Enable some extra output when debugging
  107.                 }
  108.         },
  109.         {
  110.             module: "MMM-ResRobot",
  111.             position: "left",
  112.             header: "Avgångar",
  113.             config: {
  114.                 routes: [
  115.                     {from: "740074238", to: ""},    // ResRobot Station IDs of starting and destination station(s). At least one route must be defined.
  116.                     {from: "", to: ""}, // "from" is required but "to" is optional (set "to" to empty string to indicate all destinations)
  117.                 ],
  118.                 skipMinutes: 0,     // Skip departures that happens within the next <value> minutes.
  119.                 maximumEntries: 6,  // Number of departures to show on screen
  120.                 truncateAfter: 5,   // A value > 0 will truncate direction name at first space after <value> characters. 0 = no truncation
  121.                 apiKey: "55d50c2f-9549-4d03-98b5-8eb3e1b8290c"      // Your ResRobot apiKey
  122.                 }
  123.         },
  124.         {
  125.             module: "MMM-Skolmaten",
  126.             header: "Tollarpsskola",
  127.             position: "bottom_right",
  128.             config: {
  129.                 url: "https://skolmaten.se/tollarps-skola/rss/days/?offset=-1&limit=9"
  130.             }
  131.         },
  132.         {
  133.             module: "MMM-Namnsdag",
  134.             position: "bottom_right",
  135.             header: "Namnsdag",
  136.            
  137.             }
  138.         },
  139.     ]
  140.  
  141. };
  142.  
  143. /*************** DO NOT EDIT THE LINE BELOW ***************/
  144. if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement