SHARE
TWEET

Untitled

a guest May 1st, 2017 6 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.             module: "alert",
  48.         },
  49.         {
  50.             module: "updatenotification",
  51.             position: "top_bar"
  52.         },
  53.         {
  54.             module: "clock",
  55.             position: "top_left"
  56.         },
  57.         {
  58.             module: "calendar",
  59.             header: "Feestdagen",
  60.             position: "top_left",
  61.             config: {
  62.                 calendars: [
  63.                     {
  64.                         symbol: "calendar-check-o ",
  65.                         url: "webcal://ical.mac.com/ical/Dutch32Holidays.ics"
  66.                     }
  67.                 ]
  68.             }
  69.         },
  70.         {
  71.             module: "compliments",
  72.             position: "lower_third"
  73.         },
  74.         {
  75.             module: "currentweather",
  76.             position: "top_right",
  77.             config: {
  78.                 location: "Best",
  79.                 locationID: "2759040",  //ID from http://www.openweathermap.org/help/city_list.txt
  80.                 appid: "XXX"
  81.             }
  82.         },
  83.         {
  84.             module: "weatherforecast",
  85.             position: "top_right",
  86.             header: "Weather Forecast",
  87.             config: {
  88.                 location: "Best",
  89.                 locationID: "2759040",  //ID from http://www.openweathermap.org/help/city_list.txt
  90.                 appid: "XXX"
  91.             }
  92.         },
  93.         {
  94.             module: "newsfeed",
  95.             position: "bottom_bar",
  96.             config: {
  97.                 feeds: [
  98.                     {
  99.                         title: "Eindhovens Dagblad",
  100.                         url: "http://www.ed.nl/best-e-o/rss.xml"
  101.                     }
  102.                 ],
  103.                 showSourceTitle: true,
  104.                 showPublishDate: true
  105.             }
  106.         },
  107.     ]
  108.  
  109. };
  110.  
  111. /*************** DO NOT EDIT THE LINE BELOW ***************/
  112. if (typeof module !== "undefined") {module.exports = config;}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top