Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.29 KB | None | 0 0
  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: 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: "US Holidays",
  43.             position: "top_left",
  44.             config: {
  45.                 calendars: [
  46.                     {
  47.                         symbol: "calendar-check",
  48.                         url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"                   }
  49.                 ]
  50.             }
  51.         },
  52.         {
  53.             module: "compliments",
  54.             position: "lower_third"
  55.         },
  56.  
  57.                        {
  58.       module: "MMM-NowPlayingOnSpotify",
  59.       position: "top_left",
  60.       config: {
  61.       clientID: "",
  62.       clientSecret: "",
  63.       accessToken: ""
  64.                 }
  65.                 },
  66.  
  67. {
  68.                    module: "MMM-Hotword",
  69.                    position: "top_right",
  70.                    config: {
  71.                        recipes: ["hiden_show_all.js",]
  72.                chimeOnFinish: null,
  73.                mic: {
  74.             recordProgram: "arecord",
  75.             device: "plughw:1"
  76.         },
  77.         models: [
  78.             {
  79.                 hotwords    : "smart_mirror",
  80.                 file        : "smart_mirror.umdl",
  81.                 sensitivity : "0.5",
  82.             },
  83.         ],
  84.         commands: {
  85.             "smart_mirror": {
  86.                 notificationExec: {
  87.                     notification: "ASSISTANT_ACTIVATE",
  88.                     payload: (detected, afterRecord) => {
  89.                         return {profile:"default"}
  90.                     }
  91.                 },
  92.                 restart:false,
  93.                 afterRecordLimit:0
  94.             }
  95.         }
  96.     }
  97. },
  98. {
  99.     module: "MMM-AssistantMk2",
  100.     position: "top_right",
  101.     config: {
  102.         deviceLocation: {
  103.             coordinates: {
  104.                 latitude: 58.262341, // -90.0 - +90.0
  105.                 longitude: 12.95413, // -180.0 - +180.0
  106.             },
  107.         },
  108.         record: {
  109.             recordProgram : "arecord",  
  110.             device        : "plughw:1",
  111.         },
  112.         notifications: {
  113.             ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
  114.             ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
  115.         },
  116.         useWelcomeMessage: "brief today",
  117.         profiles: {
  118.             "default" : {
  119.                 lang: "en-US"
  120.             }
  121.         },
  122.     }
  123. },
  124.    
  125.         {
  126.             module: "currentweather",
  127.             position: "top_right",
  128.             config: {
  129.                 location: "Vara",
  130.                 locationID: "2665018",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  131.                 appid: "3ce1587"
  132.             }
  133.         },
  134.         {
  135.             module: "weatherforecast",
  136.             position: "top_right",
  137.             header: "Weather Forecast",
  138.             config: {
  139.                 location: "Vara",
  140.                 locationID: "2665018",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
  141.                 appid: "87"
  142.             }
  143.         },
  144.         {
  145.             module: "newsfeed",
  146.             position: "bottom_bar",
  147.             config: {
  148.             feeds: [
  149.         {
  150.                         title: "Aftonbladet",
  151.                         url: "http://www.aftonbladet.se/nyheter/rss.xml"
  152.                                 },
  153.                                 {
  154.                        title: "Macworld",
  155.              url: "http://feeds.idg.se/idg/FPjt",
  156.                                 },
  157.                 ],
  158.                 showSourceTitle: true,
  159.                 showPublishDate: true,
  160.                 broadcastNewsFeeds: true,
  161.                 broadcastNewsUpdates: true
  162.             }
  163.         },
  164.     ]
  165.  
  166. };
  167.  
  168. /*************** DO NOT EDIT THE LINE BELOW ***************/
  169. if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement