mirror of
				https://github.com/MichMich/MagicMirror.git
				synced 2025-10-29 22:47:25 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			83 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* exported defaults */
 | |
| 
 | |
| /* Magic Mirror
 | |
|  * Config Defauls
 | |
|  *
 | |
|  * By Michael Teeuw http://michaelteeuw.nl
 | |
|  * MIT Licensed.
 | |
|  */
 | |
| 
 | |
| var port = 8080;
 | |
| var address = "localhost";
 | |
| if (typeof(mmPort) !== "undefined") {
 | |
| 	port = mmPort;
 | |
| }
 | |
| var defaults = {
 | |
| 	address: address,
 | |
| 	port: port,
 | |
| 	basePath: "/",
 | |
| 	kioskmode: false,
 | |
| 	electronOptions: {},
 | |
| 	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
 | |
| 
 | |
| 	language: "en",
 | |
| 	timeFormat: 24,
 | |
| 	units: "metric",
 | |
| 	zoom: 1,
 | |
| 	customCss: "css/custom.css",
 | |
| 
 | |
| 	modules: [
 | |
| 		{
 | |
| 			module: "updatenotification",
 | |
| 			position: "top_center"
 | |
| 		},
 | |
| 		{
 | |
| 			module: "helloworld",
 | |
| 			position: "upper_third",
 | |
| 			classes: "large thin",
 | |
| 			config: {
 | |
| 				text: "Magic Mirror<sup>2</sup>"
 | |
| 			}
 | |
| 		},
 | |
| 		{
 | |
| 			module: "helloworld",
 | |
| 			position: "middle_center",
 | |
| 			config: {
 | |
| 				text: "Please create a config file."
 | |
| 			}
 | |
| 		},
 | |
| 		{
 | |
| 			module: "helloworld",
 | |
| 			position: "middle_center",
 | |
| 			classes: "small dimmed",
 | |
| 			config: {
 | |
| 				text: "See README for more information."
 | |
| 			}
 | |
| 		},
 | |
| 		{
 | |
| 			module: "helloworld",
 | |
| 			position: "middle_center",
 | |
| 			classes: "xsmall",
 | |
| 			config: {
 | |
| 				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."
 | |
| 			}
 | |
| 		},
 | |
| 		{
 | |
| 			module: "helloworld",
 | |
| 			position: "bottom_bar",
 | |
| 			classes: "xsmall dimmed",
 | |
| 			config: {
 | |
| 				text: "www.michaelteeuw.nl"
 | |
| 			}
 | |
| 		},
 | |
| 	],
 | |
| 
 | |
| 	paths: {
 | |
| 		modules: "modules",
 | |
| 		vendor: "vendor"
 | |
| 	},
 | |
| };
 | |
| 
 | |
| /*************** DO NOT EDIT THE LINE BELOW ***************/
 | |
| if (typeof module !== "undefined") {module.exports = defaults;}
 |