Socket
Socket
Sign inDemoInstall

iobroker.mystrom-wifi-switch

Package Overview
Dependencies
9
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

iobroker.mystrom-wifi-switch-2.0.3.tgz

17

build/main.js

@@ -118,3 +118,3 @@ "use strict";

this.log.info("setting interval to " + this.interval + " seconds");
this.intervalObj = setInterval(this.checkStates, this.interval * 1000);
this.intervalObj = setInterval(this.checkStates.bind(this), this.interval * 1000);
this.setStateAsync("info.connection", true, true);

@@ -127,4 +127,6 @@ }

const url = this.config.url;
this.log.info("checkstates url " + url);
//Get report
const result = yield this.doFetch("/report");
this.log.info("result " + JSON.stringify(result));
if (result) {

@@ -183,11 +185,8 @@ yield this.setStateAsync("switchState", result.relay, true);

if (response.status == 200) {
if (response.size) {
const result = yield response.json();
this.log.debug("got " + JSON.stringify(result));
return result;
const text = yield response.text();
this.log.debug("got: " + text);
if (text.length) {
return JSON.parse(text);
}
else {
this.log.debug("ok, empty result");
return { "status": "ok" };
}
return text;
}

@@ -194,0 +193,0 @@ else {

{
"common": {
"name": "mystrom-wifi-switch",
"version": "2.0.2",
"version": "2.0.3",
"news": {
"2.0.3": {
"en": "fix empty response error",
"de": "Behebung eines leeren Antwortfehlers",
"ru": "исправить пустую ошибку ответа",
"pt": "corrigir erro de resposta vazio",
"nl": "herstel lege responsfout",
"fr": "correction d'une erreur de réponse vide",
"it": "correggere l'errore di risposta vuoto",
"es": "corregir error de respuesta vacía",
"pl": "naprawić błąd pustej odpowiedzi",
"zh-cn": "修复空响应错误"
},
"2.0.2": {

@@ -7,0 +19,0 @@ "en": "better upgrade of url config from earlier versions",

{
"name": "iobroker.mystrom-wifi-switch",
"version": "2.0.2",
"version": "2.0.3",
"description": "control mystrom switches",

@@ -5,0 +5,0 @@ "author": {

@@ -1,2 +0,2 @@

![Logo](admin/mystrom-wifi-switch.jpg)
![Logo](admin/mystrom-wifi-switch.png)
[![NPM version](http://img.shields.io/npm/v/iobroker.mystrom-wifi-switch.svg)](https://www.npmjs.com/package/iobroker.mystrom-wifi-switch)

@@ -23,3 +23,3 @@ [![Build Status](https://travis-ci.com/rgwch/ioBroker.mystrom-wifi-switch.svg?branch=master)](https://travis-ci.com/rgwch/ioBroker.mystrom-wifi-switch)

or as a custom adapter from the admin-ui. Make sure to select "Beliebig" event though it's located at Github:
or as a custom adapter from the admin-ui. Make sure to select "Beliebig" even though it's located at Github:

@@ -26,0 +26,0 @@ ![custom adapter](install_1.jpg)

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