<commit_before>/* global Module */

/* Magic Mirror
 * Module: MMM-MotionEye
 *
 * By <NAME>
 * MIT Licensed.
 */

Module.register("MMM-MotionEye",{

	// Default module config.
	defaults: {
		url: "http://192.168.1.115:8081",
		width: "60px",
		autoHide: false,
		autoHideDelay: 60000,
		debug: true
	},

	debug: function(msg) {
		if (this.config.debug) {
			console.log("MMM-MotionEye: " + msg)
		}
	},
	
	start: function() {
		this.motionDetected = false;
		this.timeOutID == undefined;
		
		this.sendSocketNotification('CONFIG', this.config);
	},
	
	// Override dom generator.
	getDom: function() {
		if (this.motionDetected) {
			var img = document.createElement("img");
			img.setAttribute("ID", "motionEyeImage");
			img.src = this.config.url;
			img.style.width = this.config.width;
			return img;
		}
		
		return document.createElement("div");
	},<commit_msg>Updated default to reflect the documentation<commit_after>/* global Module */

/* Magic Mirror
 * Module: MMM-MotionEye
 *
 * By <NAME>
 * MIT Licensed.
 */

Module.register("MMM-MotionEye",{

	// Default module config.
	defaults: {
		width: "400px",
		autoHide: false,
		autoHideDelay: 60000,
		debug: false
	},

	debug: function(msg) {
		if (this.config.debug) {
			console.log("MMM-MotionEye: " + msg)
		}
	},
	
	start: function() {
		this.motionDetected = false;
		this.timeOutID == undefined;
		
		this.sendSocketNotification('CONFIG', this.config);
	},
	
	// Override dom generator.
	getDom: function() {
		if (this.motionDetected) {
			var img = document.createElement("img");
			img.setAttribute("ID", "motionEyeImage");
			img.src = this.config.url;
			img.style.width = this.config.width;
			return img;
		}
		
		return document.createElement("div");
	},
{'fraction_non_alphanumeric': 0.1588677065280185, 'fraction_numerical': 0.016753321779318313, 'mean_word_length': 3.4071246819338423, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5783556', 'n_tokens_mistral': 704, 'n_tokens_neox': 587, 'n_words': 123}