-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
243 lines (211 loc) · 9.92 KB
/
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
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
/* MagicMirror² Config Sample
*
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*
* For more information on how you can configure this file
* see https://docs.magicmirror.builders/configuration/introduction.html
* and https://docs.magicmirror.builders/modules/configuration.html
*
* You can use environment variables using a `config.js.template` file instead of `config.js`
* which will be converted to `config.js` while starting. For more information
* see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables
*/
let 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 or empty, is "localhost"
port: 8080,
basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
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"],
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
language: "en",
locale: "en-US",
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
timeFormat: 24,
units: "imperial",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_right",
config: {
clockBold: true,
lat: "36.704609",
long: "-76.255157",
showSunTimes: true,
showMoonTimes: true,
timezone: "America/New_York",
}
},
{
module: "calendar",
header: "Test",
//position: "bottom_right",
config: {
calendars: [
{
symbol: "calendar-check",
//url: "UNCOMMENT AND ENTER CALENDAR ADDRESS HERE",
color: "#4860AE",
name: "My Calendar",
symbol: "calendar",
}
]
}
},
{
module: "weather",
//position: "bottom_left",
header: "New London, CT",
config: {
weatherProvider: "pirateweather",
type: "forecast",
apiBase: 'https://api.pirateweather.net',
weatherEndpoint: '/forecast',
apiKey: '8tLojsGfjU42O0zyKp3Yp5gVcs4TDkrE3BbLxxf0',
lat:41.3557,
lon: -72.0995,
//locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
//apiKey: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "weather",
//position: "bottom_left",
header: "Charleston, SC",
config: {
weatherProvider: "pirateweather",
units: "imperial",
type: "forecast",
apiBase: 'https://api.pirateweather.net',
weatherEndpoint: '/forecast',
apiKey: '8tLojsGfjU42O0zyKp3Yp5gVcs4TDkrE3BbLxxf0',
lat:32.7765,
lon: -79.9311,
//locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
//apiKey: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "newsfeed",
position: "bottom_right",
config: {
feeds: [
{
title: "New York Times",
url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
{
module: "MMM-mmpm"
},
{
module: "MMM-MonthlyCalendar",
position: "top_center",
tableClass: "large",
config: { // See "Configuration options" for more information.
mode: "fourWeeks",
wrapTitles: true,
}
},
{
module: "MMM-Wallpaper",
position: "fullscreen_below",
config: { // See "Configuration options" for more information.
source: "/r/earthporn",
slideInterval: 60 * 1000 // Change slides every minute
}
},
{
module: "MMM-DarkSkyForecast",
header: "Charleston, SC",
position: "bottom_left",
classes: "default everyone",
disabled: false,
config: {
apikey: "8tLojsGfjU42O0zyKp3Yp5gVcs4TDkrE3BbLxxf0",
latitude: "32.7765",
longitude: "-79.9311",
iconset: "4c",
concise: true,
forecastLayout: "table",
units: "us",
maxDailiesToShow: 5,
useAnimatedIcons: true,
animateMainIconOnly: false,
}
},
{
module: "MMM-Jast",
position: "bottom_bar",
config: {
currencyStyle: "code", // One of ["code", "symbol", "name"]
fadeSpeedInSeconds: 30,
lastUpdateFormat: "HH:mm",
maxChangeAge: 1 * 24 * 60 * 60 * 1000,
maxWidth: "100%",
numberDecimalsPercentages: 1,
numberDecimalsValues: 2,
scroll: "horizontal", // One of ["none", "vertical", "horizontal"]
showColors: true,
showCurrency: true,
showChangePercent: true,
showChangeValue: false,
showChangeValueCurrency: false,
showHiddenStocks: false,
showLastUpdate: false,
showPortfolioValue: false,
showPortfolioGrowthPercent: false,
showPortfolioGrowth: false,
updateIntervalInSeconds: 300,
useGrouping: false,
virtualHorizontalMultiplier: 2,
stocks: [
{ name: "NVIDIA", symbol: "NVDA", quantity: 1 },
{ name: "SAP", symbol: "SAP.DE", quantity: 15 },
{ name: "Henkel", symbol: "HEN3.DE", hidden: true },
{ name: "Alibaba", symbol: "BABA"}
]
}
},
{
module: 'MMM-Remote-Control',
// uncomment the following line to show the URL of the remote control on the mirror
// position: 'bottom_left',
// you can hide this module afterwards from the remote control itself
config: {
customCommand: {}, // Optional, See "Using Custom Commands" below
showModuleApiMenu: true, // Optional, Enable the Module Controls menu
secureEndpoints: true, // Optional, See API/README.md
// uncomment any of the lines below if you're gonna use it
// customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
// apiKey: "", // Optional, See API/README.md for details
// classes: {} // Optional, See "Custom Classes" below
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}