New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

thing-it-device-enocean-ip

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thing-it-device-enocean-ip - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

8

default-units/heatingSystem.js

@@ -195,3 +195,5 @@ module.exports = {

this.publishStateChange();
this.setTemperature(this.state.setpoint, this.state.temperature);
if(!this.state.window) {
this.setTemperature(this.state.setpoint, this.state.temperature);
}
console.log(this.state);

@@ -287,3 +289,5 @@ }.bind(this), function (err){

}
this.setTemperature(this.state.setpoint, this.state.temperature);
if(!this.state.window) {
this.setTemperature(this.state.setpoint, this.state.temperature);
}
}

@@ -290,0 +294,0 @@

@@ -246,2 +246,11 @@ module.exports = {

//DEBUG
if (tic > 60) {
this.logDebug("######### TELEGRAM OVERFLOW : ", tic);
this.logDebug("######### TELEGRAM: ", telegram);
tic = 60;
}
//SPREAD "tic" TIMESTAMPS TO tickTimestampArray

@@ -293,5 +302,16 @@ let timestampDifference = timeStamp - this.lastReceivedTS;

}
let tic;
//DEBUG
if (ticsInSelectedMinute.length > 60) {
this.logDebug("######### HISTORICAL TIC CALCULATION: ", ticsInSelectedMinute);
tic = 60;
} else {
tic = ticsInSelectedMinute.length;
}
stateHistory.push({
timestamp: new Date(this.lastProcessedTS + minute).toISOString(),
state: {ticksPerMinute: ticsInSelectedMinute.length},
state: {ticksPerMinute: tic},
});

@@ -298,0 +318,0 @@ } else {

@@ -46,2 +46,9 @@ module.exports = {

}
}, {
label: "Concentration Warnings",
id: "concentrationWarnings",
type: {
id: "boolean"
},
defaultValue: ""
}]

@@ -82,5 +89,7 @@ },

this.state.co2Concentration = body.state.functions[n].value;
if(body.state.functions[n].value >= 700 && body.state.functions[n].value < 850) this.publishEvent("mediumCO2Concentration", {});
if(body.state.functions[n].value >= 850 && body.state.functions[n].value < 1050) this.publishEvent("highCO2Concentration", {});
if(body.state.functions[n].value >= 1050) this.publishEvent("veryHighCO2Concentration", {});
if(this.configuration.concentrationWarnings) {
if (body.state.functions[n].value >= 700 && body.state.functions[n].value < 850) this.publishEvent("mediumCO2Concentration", {});
if (body.state.functions[n].value >= 850 && body.state.functions[n].value < 1050) this.publishEvent("highCO2Concentration", {});
if (body.state.functions[n].value >= 1050) this.publishEvent("veryHighCO2Concentration", {});
}
this.logDebug("CO2Concentration: " + this.state.co2Concentration);

@@ -110,5 +119,7 @@ }

this.state.co2Concentration = telegram.functions[n].value;
if(telegram.functions[n].value >= 700 && telegram.functions[n].value < 850) this.publishEvent("mediumCO2Concentration", {});
if(telegram.functions[n].value >= 850 && telegram.functions[n].value < 1050) this.publishEvent("highCO2Concentration", {});
if(telegram.functions[n].value >= 1050) this.publishEvent("veryHighCO2Concentration", {});
if(this.configuration.concentrationWarnings) {
if (telegram.functions[n].value >= 700 && telegram.functions[n].value < 850) this.publishEvent("mediumCO2Concentration", {});
if (telegram.functions[n].value >= 850 && telegram.functions[n].value < 1050) this.publishEvent("highCO2Concentration", {});
if (telegram.functions[n].value >= 1050) this.publishEvent("veryHighCO2Concentration", {});
}
this.logDebug("CO2 Concentration: " + this.state.co2Concentration);

@@ -115,0 +126,0 @@ }

{
"name": "thing-it-device-enocean-ip",
"version": "0.2.7",
"version": "0.2.8",
"description": "[thing-it-node] Device Plugin for EnOcean IP products.",

@@ -5,0 +5,0 @@ "authors": "Marc Gille",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc