-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-all.js
543 lines (538 loc) · 18.4 KB
/
config-all.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
/* Magic Mirror Config
*
* By Michael Teeuw http://michaelteeuw.nl
* Modified by Ron Record http://ronrecord.com
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://docs.magicmirror.builders/configuration/introduction.html
*
*/
var config = {
address: "0.0.0.0", // Address to listen on, can be:
port: 8080,
ipWhitelist: [
"0.0.0.0",
"127.0.0.1",
"AA.A.A.AA", // Mac Mini
"BB.B.B.BBB", // iPad
"CC.C.C.CC", // Mac Pro
"DD.D.D.DDD", // Mac Pro over Tunnelblick
"EE.E.E.EE", // Roon Core
"FF.F.F.FF", // Mac Pro
"GG.G.G.GG", // Ropieee
"MM.M.M.MM", // Raspberry Pi MagicMirror
"HH.H.H.HH", // Raspberry Pi 400
"II.I.I.II", // iPad Air
"JJ.J.J.JJ", // iPhone 12 Mini
"::ffff:127.0.0.1",
"::1",
],
customCss: "css/custom-mirrorcommand.css",
language: "en",
timeFormat: 12,
units: "imperial",
electronOptions: {
x: 0, // __X_OFFSET__ Do Not Remove
y: 0, // __Y_OFFSET__ Do Not Remove
webPreferences: {
webviewTag: true,
contextIsolation: false,
enableRemoteModule: true
}
},
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: 'MMM-Remote-Control',
config: {
apiKey: 'xxx_Remote-Control-API-Key_xxxxx',
customCommand: {
shutdownCommand: '/usr/local/bin/myshutdown',
rebootCommand: '/usr/local/bin/myreboot',
monitorOnCommand: 'vcgencmd display_power 1',
monitorOffCommand: 'vcgencmd display_power 0',
screenshotCommand: '/usr/local/bin/mirror screenshot',
rotateScreenRight: '/usr/local/bin/mirror rotate right',
rotateScreenLeft: '/usr/local/bin/mirror rotate left',
rotateScreenNormal: '/usr/local/bin/mirror rotate normal',
rotateScreenInverted: '/usr/local/bin/mirror rotate inverted',
playVideo: '/usr/local/bin/mirror playvideo',
pauseVideo: '/usr/local/bin/mirror pausevideo',
replayVideo: '/usr/local/bin/mirror replayvideo',
nextVideo: '/usr/local/bin/mirror nextvideo',
hideVideo: '/usr/local/bin/mirror hidevideo',
showVideo: '/usr/local/bin/mirror showvideo',
// Shell command to return status of monitor,
// must return either "HDMI" or "true" if screen is on
// "TV is Off" or "false" if it is off to be recognized
// monitorStatusCommand: '/usr/local/bin/mirror screen status',
},
showModuleApiMenu: true,
secureEndpoints: true,
customMenu: "custom_menu.json",
// classes: {} // Optional, See "Custom Classes" below
}
},
{
module: "calendar",
header: "Calendar Events",
position: "top_left",
config: {
colored: true,
maximumNumberOfDays: 10,
maximumEntries: 20,
showLocation: true,
tableClass: "medium",
timeFormat: "absolute",
nextDaysRelative: true,
displaySymbol: true,
defaultSymbol: "calendar-alt",
calendars: [
{
symbol: "calendar",
color: '#73FF33',
url: "http://localhost:8080/modules/default/calendar/calendars/home.ics"
},
]
}
},
{
module: "clock",
position: "top_center",
config: {
dateFormat: "dddd, LL",
timeFormat: "12",
clockBold: true,
showPeriod: true,
showDate: true,
showTime: true,
}
},
{
module: 'MMM-GoogleMapsTraffic',
position: 'middle_center',
config: {
key: 'xxxxxx_Your-GoogleMapsTraffic-Key_xxxxxxxxxxx',
lat: 36.970019,
lng: -122.042212,
width: "__WIDTH__px", // __SET_WIDTH_PX__ Do Not Remove
height: "__HALF_HEIGHT__px", // __SET_HALF_HEIGHT_PX__ Do Not Remove
styledMapType: "standard",
disableDefaultUI: true,
backgroundColor: 'hsla(0, 0%, 0%, 0)',
markers: [
{
lat: 36.970019,
lng: -122.042212,
fillColor: '#9966ff'
},
],
},
},
{
module: "weather",
position: "top_right",
header: "Current Weather",
config: {
type: 'current',
location: "Santa Cruz,United States",
locationID: "5393052",
units: "imperial",
apiKey: "xx_OpenWeather-App-ID_xxxxxxxxxx"
}
},
{
module: "weather",
position: "top_right",
header: "Weather Forecast",
config: {
type: 'forecast',
location: "Santa Cruz,United States",
locationID: "5393052",
units: "imperial",
showRainAmount: "true",
colored: "true",
apiKey: "xx_OpenWeather-App-ID_xxxxxxxxxx"
}
},
{
module: "newsfeed",
position: "top_bar",
config: {
feeds: [
{
title: "New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
},
{
title: "Washington Post",
url: "http://feeds.washingtonpost.com/rss/national"
},
// {
// title: "Mercury News",
// url: "https://www.mercurynews.com/feed"
// },
{
title: "Centers for Disease Control",
url: "https://tools.cdc.gov/api/v2/resources/media/403372.rss"
},
{
title: "Johns Hopkins Medicine",
url: "https://www.hopkinsmedicine.org/news/media/releases/?format=rss"
},
{
title: "World Health Organization",
url: "https://www.who.int/feeds/entity/csr/don/en/rss.xml"
},
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
{
module: 'MMM-Solar',
position: "bottom_left",
config: {
apiKey: "xxxxxx_Solar-API-Key_xxxxxxxxxxx",
userId: "Solar-USER-ID",
systemId: "Solar-System-ID",
// basicHeader: "true",
}
},
{
module: 'MMM-Tools',
position: 'bottom_left',
header: "System Info",
config: {
refresh: 1000 * 5,
containerSize: null,
itemSize: null,
MM: {
displayMM: true,
orderMM: 0
},
OS: {
displayOs: true,
orderOs: 1
},
CPU: {
displayUsage: true,
orderUsage: 4,
displayTemp: true,
celciusTemp: true,
orderTemp: 7,
displayType: true,
orderType: 2
},
RAM: {
displayRam: true,
orderRam: 5
},
STORAGE: {
displayStorage: true,
orderStorage: 6,
partitionExclude : []
},
NETWORK: {
displayNetwork: true,
orderNetwork: 3,
nativeNetwork: false,
displayDefaultNetwork: true
},
UPTIME: {
displayUptime: true,
useMagicMirror: true,
orderUptime: 8,
displayRecord: true,
orderRecord: 9
},
WARNING: {
enableWarning: false,
interval: 1000 * 60 * 5,
check : {
CPU_TEMP : 65,
CPU_USAGE : 75,
STORAGE_USED : 80,
MEMORY_USED : 80,
}
}
}
},
{
module: 'MMM-CoinMarketCap',
position: "middle_center",
header: "Cryptocurrency Prices",
config: {
apiKey: 'xxxxx_CoinMarket-API-Key_xxxxxxxxx',
currencies: ['ADA', 'FIL', 'The Graph', 'AGIX', 'HNT', 'ICP', 'ETH' ],
view: 'graphWithChanges',
columns: [ 'logo', 'name', 'priceWithChanges', 'graph' ],
fontSize: 'medium',
percentChangeColored: true,
logoColored: true,
graphRange: 7,
graphSize: 'medium',
graphColored: true,
conversion: 'USD',
}
},
{
module: 'MMM-stocks',
position: 'bottom_bar',
config: {
apiKey: 'xxxxx_Stocks-API-Key_xxxxxxxxxxxxx',
crypto: 'FILUSDT,ADAUSDT',
separator: ' • ', // separator between stocks
stocks: 'CND,ETHO,MIGFX,MSEGX,TRBCX,CGC,AAPL,JOBY', // stock symbols
updateInterval: 1000000 // update interval in milliseconds (16:40)
}
},
{
module: "mmm-hue-lights",
position: "middle_center",
header: 'Hue Lights',
config: {
bridgeIp: "xxxxxxxxxx_Hue-Hub-IP_xxxxxxxxxxxxxxxx",
displayType: "grid",
minimalGrid: false,
updateInterval: 180000,
user: "xxxxxxxxxx_Hue-Hub-User_xxxxxxxxxxxxxxxx",
// If you've added a Hue API user and set it in mirrorkeys
// then replace the above setting of user with one of these
// and rerun showkeys.
// user: "xxxxxxxxx_Hue-Hub-User-Two_xxxxxxxxxxxx",
// user: "xxxxxxxxx_Hue-Hub-User-Three_xxxxxxxxxx",
}
},
{
module: 'MMM-iFrame',
position: 'fullscreen_below',
config: {
url: [ "http://EE.E.E.EE:__Roon_Core_Port__/display/" ],
updateInterval: 30 * 60 * 1000, // rotate URLs every 30 minutes
width: "__WIDTH__", // __SET_Q_WIDTH__ Do Not Remove
height: "__HALF_HEIGHT__", // __SET_Q_HALF_HEIGHT__ Do Not Remove
frameWidth: "__WIDTH__", // __SET_FRM_WIDTH__ Do Not Remove
}
},
{
module: 'MMM-MacAddressScan',
position: "bottom_right",
header: "ARP Scan - Discovered Devices",
config: {
showLastSeen: false,
showLastSeenWhenOffline: false,
sort: false,
colored: true,
showDeviceColumns: false,
coloredState: true,
showIP: true,
showUnknown: false,
showOffline: true,
keepAlive: 900,
updateInterval: 60,
// DO NOT REMOVE __ARP_SCAN_DEVICES__
devices: [],
},
},
{
module: 'MMM-COVID19-SPARKLINE',
position: "middle_center",
config : {
worldStats: true,
sparklines: true,
sparklineWidth: 100,
sparklineHeight: 55,
sparklineDays: 50,
sparklineDeltavsDaily: true,
sortby: "confirmed",
columns: ["confirmed", "deaths", "recovered"],
countries: ["US", "Mexico", "Brazil", "Canada", "Italy", "Germany", "China"],
updateInterval: 1000 * 60 * 60 * 3, //3 hours
infoRowClass: "medium",
headerRowClass: "small",
fadeSpeed: 1000,
showDelta: true,
showDeltaPlotNDays: 7,
sparklineDeathScale: -4,
showDelimiter: true
}
},
{
module: 'MMM-RAIN-RADAR',
position: 'top_center',
disabled: false,
config: {
useHeader: false, // true if you want a header
lat: "36.970019",
lon: "-122.042212",
area: 'CA', // US State
zoomLevel: 8,
mapType: 1, //0-Road Map 1-Satellite 2-Dark Map 3-OpenStreetMaps 4-Light Map
color: 3, //0-Original 1-Universal Blue 2-TITAN 3-The Weather Channel
//5-NEXRAD Level-III 6-RAINBOW @ SELEX-SI
snow: 1,
smoothing: 1,
opacity: 88,
fastAnimation: 0,
coverage: 0,
darkTheme: 1,
UTCtime: 0,
legend: 1,
legendMin: 0, //set legend to 1 if you want legendMin to show
animate: 1,
// 1: after updateInterval, weather warnings for your US states will be used
// to determine if module should be hidden. 0 module is perpertually displayed
updateOnWarning: 1,
// number of milliseconds. change 5 to 60 and it will update each 10 minutes
updateInterval: 60 * 60 * 1000,
}
},
{
module: "MMM-OpenWeatherForecast",
header: "Open Weather Forecast",
position: "top_center",
classes: "default everyone",
disabled: false,
config: {
apikey: "xx_OpenWeather-App-ID_xxxxxxxxxx",
latitude: "36.970019",
longitude: "-122.042212",
iconset: "5c",
concise: false,
units: "us",
forecastLayout: "tiled"
}
},
{
module: 'MMM-TelegramCommands'
},
{
module: 'MMM-TelegramBot',
config: {
allowedUser : ['Your-Telegram-Username'],
adminChatId : 0000000000,
useWelcomeMessage: true,
verbose: false,
favourites:["/hideip", "/showip", "/hideOffline", "/showOffline"],
screenshotScript: "scrot",
detailOption: {},
}
},
{
module: "MMM-Detector",
position: "bottom_center",
configDeepMerge: true,
config: {
debug: false,
autoStart: true,
useLogos: true,
newLogos: {
listen: "voice_assistant_head.jpg"
},
detectors: [
{
detector: "Porcupine",
Model: "ok google",
Sensitivity: null,
Logo: "listen",
autoRestart: false,
onDetected: {
notification: "GA_ACTIVATE"
}
},
{
detector: "Porcupine",
Model: "hey google",
Sensitivity: null,
Logo: "listen",
autoRestart: false,
onDetected: {
notification: "GA_ACTIVATE"
}
},
{
detector: "Porcupine",
Model: "computer",
Sensitivity: null,
Logo: "listen",
autoRestart: false,
onDetected: {
notification: "GA_ACTIVATE"
}
}
],
NPMCheck: {
useChecker: true,
delay: 10 * 60 * 1000,
useAlert: true
}
}
},
{
module: "EXT-Detector",
position: "bottom_left",
configDeepMerge: true,
config: {
debug: false,
useIcon: true,
touchOnly: false,
detectors: [
{
detector: "Porcupine",
Model: "computer",
Sensitivity: null
},
{
detector: "Porcupine",
Model: "ok google",
Sensitivity: null
},
{
detector: "Porcupine",
Model: "hey google",
Sensitivity: null
}
]
}
},
{
module: "MMM-GoogleAssistant",
position: "bottom_left",
configDeepMerge: true,
config: {
debug: false,
stopCommand: "stop",
assistantConfig: {
lang: "en-US",
latitude: 36.970019,
longitude: -122.042212,
deviceRegistred: false
},
responseConfig: {
useFullscreen: false,
responseOutputCSS: "response_output.css",
screenOutputTimer: 5000,
useChime: true,
confirmationChime: true
},
recipes: [
"myReboot-Restart-Shutdown.js",
"RoonCommand.js",
"MirrorCommand.js"
]
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}