<commit_before>var engineOptions = {
	apiKey: '<KEY>',
};

var thngOptions = {
	thng: 'UdQKcnkN8VpwdyN2QDNK7mnm',
	property: 'test'
}

var engine = require('./libs/engine')(engineOptions),
	watcher = require('./libs/fhemWatcher');

watcher.watchDevices(["test1"], 
	function(data){
		 console.log("Got " + data);
		 engine.updateThngProperty(thngOptions.thng, thngOptions.property, data);
	});<commit_msg>first version of device watcher<commit_after>var engineOptions = {
	apiKey: '<KEY>',
};

var thngOptions = {
	thng: 'UUQphE3H8e5wDs8chypknpwb',
	property: 'doorstate'
}

var engine = require('./libs/engine')(engineOptions),
	watcher = require('./libs/fhemWatcher');

watcher.watchDevices(["test1"], 
	function(data){
		 console.log("Got " + data);
		 engine.updateThngProperty(thngOptions.thng, thngOptions.property, data);
	});
{'fraction_non_alphanumeric': 0.17046818727490998, 'fraction_numerical': 0.010804321728691477, 'mean_word_length': 5.780487804878049, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4946893', 'n_tokens_mistral': 323, 'n_tokens_neox': 306, 'n_words': 48}