Advertisement
Guest User

Untitled

a guest
May 1st, 2017
128
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.  
  7. var config = {
  8.     port: 8080,
  9.  
  10.     ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.
  11.  
  12.     language: "nl",
  13.     timeFormat: 24,
  14.     units: "metric",
  15.  
  16.     modules: [
  17.         {
  18.             module: 'MMM-Facial-Recognition',
  19.             config: {
  20.                 // 1=LBPH | 2=Fisher | 3=Eigen
  21.                 recognitionAlgorithm: 1,
  22.                 // Threshold for the confidence of a recognized face before it's considered a
  23.                 // positive match.  Confidence values below this threshold will be considered
  24.                 // a positive match because the lower the confidence value, or distance, the
  25.                 // more confident the algorithm is that the face was correctly detected.
  26.                 lbphThreshold: 50,
  27.                 fisherThreshold: 250,
  28.                 eigenThreshold: 3000,
  29.                 // force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically)
  30.                 useUSBCam: false,
  31.                 // Path to your training xml
  32.                 trainingFile: 'modules/MMM-Facial-Recognition/training.xml',
  33.                 // recognition intervall in seconds (smaller number = faster but CPU intens!)
  34.                 interval: 2,
  35.                 // Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds
  36.                 logoutDelay: 15,
  37.                 // Array with usernames (copy and paste from training script)
  38.                 users: [],
  39.                 //Module set used for strangers and if no user is detected
  40.                 defaultClass: "default",
  41.                 //Set of modules which should be shown for every user
  42.                 everyoneClass: "everyone",
  43.                 // Boolean to toggle welcomeMessage
  44.                 welcomeMessage: true
  45.                 }
  46.         },
  47.         {
  48.             module: "alert",
  49.             classes: 'default everyone'
  50.         },
  51.         {
  52.             module: "updatenotification",
  53.             position: "top_bar"
  54.             classes: 'default everyone'
  55.         },
  56.         {
  57.             module: "clock",
  58.             position: "top_left"
  59.             classes: 'default everyone'
  60.         },
  61.         {
  62.             module: "calendar",
  63.             header: "Feestdagen",
  64.             position: "top_left",
  65.             classes: 'default everyone'
  66.             config: {
  67.                 calendars: [
  68.                     {
  69.                         symbol: "calendar-check-o ",
  70.                         url: "webcal://ical.mac.com/ical/Dutch32Holidays.ics"
  71.                     }
  72.                 ]
  73.             }
  74.         },
  75.         {
  76.             module: "compliments",
  77.             position: "lower_third"
  78.             classes: 'default'
  79.         },
  80.         {
  81.             module: "currentweather",
  82.             position: "top_right",
  83.             config: {
  84.                 location: "Best",
  85.                 locationID: "2759040",  //ID from http://www.openweathermap.org/help/city_list.txt
  86.                 appid: "XXX"
  87.             }
  88.         },
  89.         {
  90.             module: "weatherforecast",
  91.             position: "top_right",
  92.             header: "Weather Forecast",
  93.             config: {
  94.                 location: "Best",
  95.                 locationID: "2759040",  //ID from http://www.openweathermap.org/help/city_list.txt
  96.                 appid: "XXX"
  97.             }
  98.         },
  99.         {
  100.             module: "newsfeed",
  101.             position: "bottom_bar",
  102.             config: {
  103.                 feeds: [
  104.                     {
  105.                         title: "Eindhovens Dagblad",
  106.                         url: "http://www.ed.nl/best-e-o/rss.xml"
  107.                     }
  108.                 ],
  109.                 showSourceTitle: true,
  110.                 showPublishDate: true
  111.             }
  112.         },
  113.     ]
  114.  
  115. };
  116.  
  117. /*************** DO NOT EDIT THE LINE BELOW ***************/
  118. if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement