Advertisement
Guest User

config.js

a guest
Oct 6th, 2018
5,566
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: "en",
  25.     timeFormat: 12,
  26.     units: "imperial",
  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_monthly",
  42.             position: "top_left"
  43.         },
  44.         {
  45.             module: "MMM-MyCalendar",
  46.             header: "Upcoming Events",
  47.             position: "top_left",
  48.             config: {
  49.                 colored: true,
  50.                 hideOngoing: false,
  51.                 showLocation: false,
  52.                 useRelativeDates: true,
  53.                 calendars: [
  54.                     {
  55.                         symbol: "calendar",
  56.                         url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
  57.                         color: "#009900"
  58.                     },
  59.                     {
  60.                         symbol: "birthday-cake",
  61.                         url: "CALENDAR_2_URL",
  62.                         color: "#105bfb"
  63.                     },
  64.                     {
  65.                         symbol: "birthday-cake",
  66.                         url: "CALENDAR_3_URL",
  67.                         color: "#fbcd10"
  68.                     }
  69.                 ]
  70.             }
  71.         },
  72.         {
  73.             module: 'MMM-MyWeather',
  74.             position: 'top_right',
  75.             config: {
  76.                 apikey: "WUNDERGROUND API KEY", // private; don't share!
  77.                 pws: "pws:XXXXXXXNN", // saint louis, lindell
  78.                 colorIcon: true,
  79.                 fadePoint: ".75",
  80.                 fcdaycount: "2",
  81.                 fcdaystart: "0",
  82.                 hourly: "1",
  83.                 hourlyinterval: 1,
  84.                 hourlycount: 3,
  85.                 alerttime: 10000,
  86.                 alerttruncatestring: "english:",
  87.                 roundTmpDecs: 1,
  88.                 windunits: "mph",
  89.                 UseCardinals: 1,
  90.                 layout: "vertical",
  91.                 iconset: "flat_colourful",
  92.                 sysstat: 0
  93.             }
  94.         },
  95.         {
  96.             module: "MMM-MyScoreboard",
  97.             position: "top_right",
  98.             classes: "default everyone",
  99.             header: "Scoreboard",
  100.             config: {
  101.                 showLeagueSeparators: true,
  102.                 colored: true,
  103.                 rolloverHours: 5,
  104.                 viewStyle: "mediumLogos",
  105.                 sports: [
  106.                 {
  107.                     league: "NHL"
  108.                 },
  109.                 {
  110.                     league: "MLB"
  111.                 },
  112.                 {
  113.                     league: "NFL"
  114.                 },
  115.                 {
  116.                     league: "NCAAM_MM",
  117.                     label: "March Madness"
  118.                 }
  119.                 ]
  120.              }
  121.         },
  122.         {
  123.             module: "MMM-NowPlayingOnSpotify",
  124.             position: "bottom_left",
  125.             config: {
  126.                 clientID: "CLIENTID",
  127.                 clientSecret: "CLIENTSECRET",
  128.                 accessToken: "ACCESSTOKEN",
  129.                 refreshToken: "REFRESHTOKEN",
  130.                 updatesEvery: 15
  131.             }
  132.         },
  133.         {
  134.             module: "MMM-SystemStats",
  135.             position: "bottom_center", // This can be any of the regions.
  136.             classes: "small", // Add your own styling. Optional.
  137.             config: {
  138.                 updateInterval: 10000,
  139.                 animationSpeed: 0,
  140.                 align: "right", // align labels
  141.                 //header: 'System Stats', // This is optional
  142.             },
  143.         },
  144.         {
  145.             module: "MMM-lyft",
  146.             position: "bottom_right",
  147.             header: "Lyft/Uber (CITY)",
  148.             config: {
  149.                 ride_types: ["Lyft","Lyft XL"],
  150.                 lat: XX.XXXXX,  // use your exact pickup loaction
  151.                 lng: YY.YYYYY, // use your exact pickup loaction
  152.                 clientId: "CLIENTID",
  153.                 clientSecret: "CLIENTSECRET"
  154.             }
  155.         },
  156.         {
  157.             module: "MMM-uber",
  158.             position: "bottom_right",
  159.             config: {
  160.                 ride_types: ["UberX","UberXL"],
  161.                 lat: XX.XXXXX,  // use your exact pickup loaction
  162.                 lng: YY.YYYYY, // use your exact pickup loaction
  163.                 uberServerToken: "TOKEN",
  164.             }
  165.         },
  166.         {
  167.             module: "newsfeed",
  168.             position: "bottom_bar",
  169.             config: {
  170.                 updateInterval: 45*1000, // 45 seconds
  171.                 ignoreOldItems: true,
  172.                 wrapTitle: false,
  173.                 feeds: [
  174.                     {
  175.                         title: "CNN",
  176.                         url: "http://rss.cnn.com/rss/cnn_topstories.rss"
  177.                     },
  178.                     {
  179.                         title: "/r/Science",
  180.                         url: "https://www.reddit.com/r/science/.rss"
  181.                     },
  182.                     {
  183.                         title: "r/Technology",
  184.                         url:"https://www.reddit.com/r/technology/.rss"
  185.                     },
  186.                     {
  187.                         title: "r/News",
  188.                         url: "https://www.reddit.com/r/news/.rss"
  189.                     },
  190.                     {
  191.                         title: "WIRED Science",
  192.                         url: "https://www.wired.com/feed/category/science/latest/rss"
  193.                     }
  194.                 ],
  195.                 showSourceTitle: true,
  196.                 showPublishDate: true
  197.             }
  198.         },
  199. /*  Commented out while setting up
  200.         {
  201.             module: "MMM-awesome-alexa",
  202.             position: "bottom_bar",
  203.             config: {
  204.                 wakeWord: "Alexa",
  205.                 clientId: "CLIENTID",
  206.                 clientSecret: "CLIENTSECRET",
  207.                 deviceId: "MagicMirror",
  208.                 refreshToken: "Atzr|TOKEN",
  209.                 lite: false,
  210.                 isSpeechVisualizationEnabled: true
  211.             }
  212.         },
  213. */
  214.         {
  215.           module: "MMM-Wallpaper",
  216.           position: "fullscreen_below",
  217.           config: { // See "Configuration options" for more information.
  218.             source: "/r/EarthPorn",
  219.             slideInterval: 10*60*1000, // Change slides every minute
  220.             orientation: "vertical"
  221.           }
  222.         },
  223.     ]
  224.  
  225. };
  226.  
  227. /*************** DO NOT EDIT THE LINE BELOW ***************/
  228. if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement