node-red-contrib-terneo
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "node-red-contrib-terneo", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Terneo thermostats connectivity nodes for node-red", | ||
@@ -26,3 +26,3 @@ "dependencies": { | ||
"email": "kutovoy.s@gmail.com", | ||
"license": "GPL-3.0", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -32,2 +32,2 @@ "url": "https://github.com/kutovoys/node-red-contrib-terneo/issues" | ||
"homepage": "https://github.com/kutovoys/node-red-contrib-terneo#readme" | ||
} | ||
} |
@@ -30,3 +30,4 @@ # node-red-contrib-terneo | ||
`curl -i -X POST https://my.hmarex.com/api/login/ -H 'Accept-Language: en' -H 'Content-Type: application/json' --data-raw '{"email": "myterneo@gmail.com", "password": "myterneo2018"}'` Change email and password for yours. | ||
- Save result | ||
- Polling time: Timeout in seconds for refresh data from thermostat. | ||
4. Save result | ||
@@ -38,2 +39,2 @@ ## Policy | ||
---- | ||
GPL-3.0 | ||
MIT |
@@ -8,4 +8,5 @@ module.exports = function (RED) { | ||
this.auth = n.auth; | ||
this.poll = n.poll; | ||
} | ||
RED.nodes.registerType("terneo-host", TerneoHostNode); | ||
} |
@@ -10,2 +10,3 @@ module.exports = function (RED) { | ||
var auth = this.server.auth; | ||
var poll = this.server.poll; | ||
var node = this; | ||
@@ -29,3 +30,3 @@ //функция получения телеметрии - на выходе полный json | ||
} catch (err) { | ||
node.error('Ошибка запроса телеметрии') | ||
node.error('Error request telemetry') | ||
} | ||
@@ -51,3 +52,3 @@ } | ||
} catch (err) { | ||
node.error('Ошибка запроса параметров') | ||
node.error('Error request pamametrs') | ||
} | ||
@@ -96,7 +97,7 @@ } | ||
} catch (err) { | ||
node.error('Ошибка в преобразовании данных') | ||
node.error('Error prepare data for HomeKit') | ||
} | ||
} | ||
try { | ||
setInterval(transform, 30000, ) | ||
setInterval(transform, poll*1000, ) | ||
} catch (err) { | ||
@@ -103,0 +104,0 @@ node.error(err) |
Sorry, the diff of this file is not supported yet
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
55415
11
1
100
191
38