Comparing version 0.0.6 to 1.0.0
@@ -253,3 +253,15 @@ var net = require('net'); | ||
if (model != 'TM1') { | ||
items.push(dcb_entry(23, data[key] == 'frost' ? 1 : 0)); | ||
var frost = false | ||
switch(data[key]) { | ||
case 'frost': | ||
case 'frost_protection': | ||
frost = true | ||
break; | ||
case 'heating': | ||
frost = false | ||
break; | ||
default: | ||
throw "run_mode not valid [heating, frost_protection]: " + data[key] | ||
} | ||
items.push(dcb_entry(23, frost ? 1 : 0)); | ||
} | ||
@@ -256,0 +268,0 @@ break; |
{ | ||
"name": "heatmiser", | ||
"version": "0.0.6", | ||
"version": "1.0.0", | ||
"description": "A node.js app that talks to heatmiser wifi thermostats", | ||
@@ -5,0 +5,0 @@ "main": "lib/heatmiser.js", |
@@ -112,3 +112,3 @@ #!/usr/bin/env node | ||
var dcb = { | ||
runmode: 'frost' | ||
runmode: 'frost_protection' | ||
} | ||
@@ -115,0 +115,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18869
489
1