-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-radar.js
385 lines (381 loc) · 13.2 KB
/
config-radar.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
/* 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: "localhost",
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",
classes: 'radar traffic weather',
},
{
module: "updatenotification",
position: "top_bar",
classes: 'radar traffic weather',
},
{
module: 'MMM-Remote-Control',
classes: 'radar traffic weather',
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',
},
showModuleApiMenu: true,
secureEndpoints: true,
customMenu: "custom_menu.json",
}
},
{
module: "newsfeed",
position: "top_bar",
classes: 'radar weather',
config: {
feeds: [
{
title: "rssWeather Santa Cruz",
url: "http://www.rssweather.com/zipcode/95060/rss.php",
},
{
title: "Santa Cruz County Weather",
url: "http://www.rssweather.com/wx/us/ca/santa cruz county/rss.php",
},
],
lengthDescription: 500,
updateInterval: 30000,
showDescription: true,
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
{
module: "newsfeed",
position: "top_bar",
classes: 'traffic',
config: {
feeds: [
{
title: "Traffic Engineering Projects",
url: "https://www.cityofsantacruz.com/Home/Components/RssFeeds/RssFeed/View?ctID=5&cateIDs=6",
},
{
title: "Santa Cruz Traffic and Transit News",
url: "https://patch.com/rss.xml",
},
],
lengthDescription: 500,
updateInterval: 30000,
showDescription: true,
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
{
module: 'MMM-GoogleMapsTraffic',
position: 'middle_center',
classes: 'traffic',
header: "Google Maps Traffic Information - Santa Cruz, California",
config: {
key: 'xxxxxx_Your-GoogleMapsTraffic-Key_xxxxxxxxxxx',
lat: 36.970019,
lng: -122.042212,
height: "__HALF_HEIGHT__px", // __SET_HALF_HEIGHT_PX__ Do Not Remove
width: "__WIDTH__px", // __SET_WIDTH_PX__ Do Not Remove
styledMapType: "standard",
disableDefaultUI: true,
backgroundColor: 'hsla(0, 0%, 0%, 0)',
markers: [
{
lat: 36.970019,
lng: -122.042212,
fillColor: '#9966ff'
},
],
},
},
{
module: 'MMM-RAIN-RADAR',
position: 'middle_center',
classes: 'radar',
disabled: false,
config: {
height: "100vh",
width: "800px",
useHeader: false, // true if you want a header
lat: "36.970019",
lon: "-122.042212",
area: 'CA', // US State
zoomLevel: 7,
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: "clock",
position: "top_center",
classes: 'radar traffic weather',
config: {
dateFormat: "dddd, LLL",
timeFormat: "12",
showPeriod: true,
showDate: true,
showTime: false,
}
},
{
module: "weather",
position: "top_right",
classes: 'weather',
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",
classes: 'weather',
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: 'MMM-RAIN-RADAR',
position: 'top_left',
classes: 'weather',
disabled: false,
config: {
useHeader: false, // true if you want a header
lat: "36.970019",
lon: "-122.042212",
area: 'CA', // US State
zoomLevel: 5,
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: 0,
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_right",
classes: "weather",
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',
classes: 'radar traffic weather',
},
{
module: 'MMM-TelegramBot',
classes: 'radar traffic weather',
config: {
allowedUser : ['Your-Telegram-Username'],
adminChatId : 0000000000,
useWelcomeMessage: true,
verbose: false,
favourites:["/hideip", "/showip", "/hideOffline", "/showOffline"],
screenshotScript: "scrot",
detailOption: {},
}
},
{
module: 'MMM-Scenes',
position: 'bottom_bar',
classes: 'radar traffic weather',
config: {
duration: 300000,
scenario: [
{
name: 'radar',
expelAnimation: 'pageRight',
admitAnimation: [
{ transform: 'rotate(-360deg) scale(0, 0)', opacity: 0 },
{ transform: 'rotate(360deg) scale(1, 1)', opacity: 1 }
]
},
{
name: 'traffic',
expelAnimation: 'pageLeft',
admitAnimation: 'pageDown'
},
{
name: 'weather',
expelAnimation: 'dismissOut',
admitAnimation: 'pageDown'
},
],
autoLoop: 'infinity',
inactiveIndicators: ['①', '②', '③'],
activeIndicators: ['❶', '❷', '❸']
}
},
{
module: "EXT-Detector",
classes: 'radar traffic weather',
position: "bottom_left",
configDeepMerge: true,
config: {
debug: false,
useIcon: false,
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",
classes: 'radar traffic weather',
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",
"with-MMM-Scenes.js",
"MirrorCommand.js"
]
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}