-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmm-config.js
124 lines (119 loc) · 4.97 KB
/
mm-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
address: "0.0.0.0", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "0.0.0.0" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 8080,
ipWhitelist: [], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
language: "en",
timeFormat: 24,
units: "metric",
modules: [
{
module: "braccounting",
position: "top_left",
config: {
src:"http://192.168.0.100:8080/snippets/bestlist",
width: "550px",
height: "1920px",
backgroundColor: "#000",
updateInterval: 3600000, // in milli seconds
}
},
{
module: "braccounting",
position: "top_right",
config: {
src:"http://192.168.0.100:8080/snippets/newsfeed",
width: "350px",
height: "1920px",
backgroundColor: "#000",
}
},
{
module: 'smoke-background',
position: 'fullscreen_below',
config: {
height: "1920",
width: "1080",
}
},
// {
// module: 'MMM-Face-Reco-DNN',
// config: {
// // Logout 15 seconds after user was not detected any more
// // If they are detected within this period, the delay will start again
// logoutDelay: 15000,
// // How often the recognition starts in milliseconds
// // With a Raspberry Pi 3+ it works well every 2 seconds
// checkInterval: 2000,
// // Module set used for when there is no face detected ie no one is in front of the camera
// noFaceClass: 'noface',
// // Module set used for when there is an unknown/unrecognised face detected
// unknownClass: 'unknown',
// // Module set used for when there is a known/recognised face detected
// knownClass: 'known',
// // Module set used for strangers and if no user is detected
// defaultClass: 'default',
// // Set of modules which should be shown for any user ie when there is any face detected
// everyoneClass: 'everyone',
// // Set of modules that are always shown - show if there is a face or no face detected
// alwaysClass: 'always',
// // XML to recognize with haarcascade
// cascade: 'modules/MMM-Face-Reco-DNN/tools/haarcascade_frontalface_default.xml',
// // Pre-encoded pickle with the faces
// encodings: 'modules/MMM-Face-Reco-DNN/tools/encodings.pickle',
// // Use Raspberry Pi camera or another type
// // 1 = RasPi camera, 0 = other camera
// usePiCamera: 1,
// // If using another type of camera, you can choose
// // i.e. 0 = /dev/video0 or 'http://link.to/live'
// source: 0,
// // Rotate camera
// rotateCamera: 0,
// // Method of facial recognition
// // dnn = deep neural network, haar = haarcascade
// method: 'dnn',
// // Which face detection model to use
// // "hog" is less accurate but faster on CPUs
// // "cnn" is a more accurate deep-learning model which is GPU/CUDA accelerated
// detectionMethod: 'hog',
// // How long in milliseconds modules take to hide and show
// animationSpeed: 0,
// // Path to Python to run the face recognition
// // null or '' means default path
// pythonPath: null,
// // Should a welcome message be shown using the MagicMirror alerts module?
// welcomeMessage: true,
// // Dictionary for person name mapping in welcome message
// // Allows for displaying name with complex character sets in welcome message e.g. jerome => Jérôme, hideyuki => 英之
// usernameDisplayMapping: null,
// // Capture new pictures of recognized people, if unknown we save it in folder "unknown"
// // So you can extend your dataset and retrain it afterwards for better recognitions
// extendDataset: false,
// // If extendDataset is true, you need to set the full path of the dataset
// dataset: 'modules/MMM-Face-Reco-DNN/dataset/',
// // How much distance between faces to consider it a match. Lower is more strict.
// tolerance: 0.6,
// // allow multiple concurrent user logins, 0=no, any other number is the maximum number of concurrent logins
// multiUser: 0,
// }
// }
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") { module.exports = config; }