MagicMirror/js/defaults.js

82 lines
1.6 KiB
JavaScript
Raw Normal View History

2016-03-24 17:19:32 +01:00
/* exported defaults */
/* Magic Mirror
2020-04-21 07:36:18 +02:00
* Config Defaults
2016-03-24 17:19:32 +01:00
*
2020-04-28 23:05:28 +02:00
* By Michael Teeuw https://michaelteeuw.nl
2016-03-24 17:19:32 +01:00
* MIT Licensed.
*/
var address = "localhost";
2020-05-02 10:39:09 +02:00
var port = 8080;
2017-01-31 21:58:46 -03:00
if (typeof(mmPort) !== "undefined") {
port = mmPort;
}
2016-03-24 17:19:32 +01:00
var defaults = {
address: address,
2017-01-31 21:58:46 -03:00
port: port,
2020-04-06 21:29:55 +02:00
basePath: "/",
2016-07-27 12:50:59 +02:00
kioskmode: false,
electronOptions: {},
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
2016-04-05 14:35:11 -04:00
language: "en",
2016-03-29 13:28:15 +02:00
timeFormat: 24,
units: "metric",
zoom: 1,
customCss: "css/custom.css",
2016-07-27 12:50:59 +02:00
2016-03-24 17:19:32 +01:00
modules: [
2016-10-15 13:08:46 +02:00
{
module: "updatenotification",
position: "top_center"
},
2016-03-24 17:19:32 +01:00
{
2016-04-05 14:35:11 -04:00
module: "helloworld",
position: "upper_third",
2016-04-09 15:49:39 +02:00
classes: "large thin",
2016-03-24 17:19:32 +01:00
config: {
2016-04-09 15:49:39 +02:00
text: "Magic Mirror<sup>2</sup>"
2016-03-24 17:19:32 +01:00
}
},
{
2016-04-05 14:35:11 -04:00
module: "helloworld",
position: "middle_center",
2016-03-24 17:19:32 +01:00
config: {
2016-04-05 14:35:11 -04:00
text: "Please create a config file."
2016-03-24 17:19:32 +01:00
}
},
{
2016-04-05 14:35:11 -04:00
module: "helloworld",
position: "middle_center",
2016-04-09 15:49:39 +02:00
classes: "small dimmed",
2016-03-24 17:19:32 +01:00
config: {
2016-04-09 15:49:39 +02:00
text: "See README for more information."
2016-03-24 17:19:32 +01:00
}
},
{
module: "helloworld",
position: "middle_center",
classes: "xsmall",
config: {
2016-05-03 11:19:01 +02:00
text: "If you get this message while your config file is already<br>created, your config file probably contains an error.<br>Use a JavaScript linter to validate your file."
}
},
2016-03-24 17:19:32 +01:00
{
2016-04-05 14:35:11 -04:00
module: "helloworld",
position: "bottom_bar",
2016-04-09 15:49:39 +02:00
classes: "xsmall dimmed",
2016-03-24 17:19:32 +01:00
config: {
2016-04-09 15:49:39 +02:00
text: "www.michaelteeuw.nl"
2016-03-24 17:19:32 +01:00
}
},
],
paths: {
2016-04-05 14:35:11 -04:00
modules: "modules",
vendor: "vendor"
2016-03-24 17:19:32 +01:00
},
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
2016-04-05 14:35:11 -04:00
if (typeof module !== "undefined") {module.exports = defaults;}