-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-news.js
228 lines (224 loc) · 8.08 KB
/
config-news.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
/* 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:
// - "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,
// 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"],
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: '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: "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-TelegramCommands'
},
{
module: 'MMM-TelegramBot',
config: {
allowedUser : ['Your-Telegram-Username'],
adminChatId : 0000000000,
useWelcomeMessage: true,
verbose: false,
favourites:["/hideall", "/showall", "/screenshot", "/shutdown"],
screenshotScript: "scrot",
detailOption: {},
}
},
{
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;}