2021-04-08 21:12:56 +02:00
|
|
|
/* Magic Mirror Test config for position setters module using the helloworld module
|
2017-03-10 17:52:40 -03:00
|
|
|
*
|
|
|
|
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
|
|
|
* MIT Licensed.
|
|
|
|
*/
|
2021-03-21 17:20:31 +01:00
|
|
|
let config = {
|
2017-03-10 17:52:40 -03:00
|
|
|
port: 8080,
|
|
|
|
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
|
|
|
|
|
|
|
|
language: "en",
|
|
|
|
timeFormat: 24,
|
|
|
|
units: "metric",
|
|
|
|
electronOptions: {
|
|
|
|
webPreferences: {
|
2021-01-30 20:29:59 +01:00
|
|
|
nodeIntegration: true,
|
2021-07-04 19:21:17 +02:00
|
|
|
enableRemoteModule: true,
|
|
|
|
contextIsolation: false
|
2020-05-11 22:22:32 +02:00
|
|
|
}
|
2017-03-10 17:52:40 -03:00
|
|
|
},
|
2020-04-21 10:37:24 +02:00
|
|
|
|
2017-03-10 17:52:40 -03:00
|
|
|
modules:
|
2020-08-01 10:43:58 +02:00
|
|
|
// Using exotic content. This is why don't accept go to JSON configuration file
|
2020-05-11 22:22:32 +02:00
|
|
|
(function () {
|
2021-03-21 17:20:31 +01:00
|
|
|
let positions = ["top_bar", "top_left", "top_center", "top_right", "upper_third", "middle_center", "lower_third", "bottom_left", "bottom_center", "bottom_right", "bottom_bar", "fullscreen_above", "fullscreen_below"];
|
|
|
|
let modules = Array();
|
|
|
|
for (let idx in positions) {
|
2017-03-10 17:52:40 -03:00
|
|
|
modules.push({
|
|
|
|
module: "helloworld",
|
|
|
|
position: positions[idx],
|
|
|
|
config: {
|
|
|
|
text: "Text in " + positions[idx]
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
return modules;
|
2020-05-11 22:22:32 +02:00
|
|
|
})()
|
2017-03-10 17:52:40 -03:00
|
|
|
};
|
2021-04-08 21:12:56 +02:00
|
|
|
|
2017-03-10 17:52:40 -03:00
|
|
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
2020-05-11 22:22:32 +02:00
|
|
|
if (typeof module !== "undefined") {
|
|
|
|
module.exports = config;
|
|
|
|
}
|