Socket
Socket
Sign inDemoInstall

thing-it-device-plugwise

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.12 to 0.0.13

documentation/images/mobile-ui.png

11

motionSensor.js

@@ -80,3 +80,3 @@ module.exports = {

if (this.isSimulated()) {
setInterval(function () {
this.simulationInterval = setInterval(function () {
this.state.motion = new Date().getTime() % 2 * 100;

@@ -103,2 +103,11 @@ this.state.lightPercentage = new Date().getTime() % 100;

*/
MotionSensor.prototype.stop = function () {
if (this.isSimulated()) {
clearInterval(this.simulationInterval);
}
};
/**
*
*/
MotionSensor.prototype.setState = function (state) {

@@ -105,0 +114,0 @@ this.state = state;

@@ -81,3 +81,3 @@ module.exports = {

if (this.isSimulated()) {
setInterval(function () {
this.simulationInterval = setInterval(function () {
if (this.state.switch) {

@@ -101,2 +101,11 @@ this.state.consumption += new Date().getTime() % 4;

*/
Outlet.prototype.stop = function () {
if (this.isSimulated()) {
clearInterval(this.simulationInterval);
}
};
/**
*
*/
Outlet.prototype.setState = function (state) {

@@ -103,0 +112,0 @@ this.state = state;

2

package.json
{
"name": "thing-it-device-plugwise",
"version": "0.0.12",
"version": "0.0.13",
"description": "[thing-it-node] Device Plugin for Plugwise © products.",

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

@@ -17,2 +17,4 @@ # thing-it-device-plugwise

# User Interface
# User Interface
<a href="./documentation/images/mobile-ui.png"><img src="./documentation/images/mobile-ui.png" width="80%" height="80%"></a>

@@ -81,3 +81,3 @@ module.exports = {

if (this.isSimulated()) {
setInterval(function () {
this.simulationInterval = setInterval(function () {
if (this.state.switch) {

@@ -101,2 +101,11 @@ this.state.consumption += new Date().getTime() % 4;

*/
Switch.prototype.stop = function () {
if (this.isSimulated()) {
clearInterval(this.simulationInterval);
}
};
/**
*
*/
Switch.prototype.setState = function (state) {

@@ -103,0 +112,0 @@ this.state = state;

@@ -81,3 +81,3 @@ module.exports = {

if (this.isSimulated()) {
setInterval(function () {
this.simulationInterval = setInterval(function () {
if (this.state.boilerActive) {

@@ -105,2 +105,11 @@ this.state.measuredTemperature += 1.0;

*/
Thermostat.prototype.stop = function () {
if (this.isSimulated()) {
clearInterval(this.simulationInterval);
}
};
/**
*
*/
Thermostat.prototype.setState = function (state) {

@@ -107,0 +116,0 @@ this.state = state;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc