iobroker.comfoair
Advanced tools
Comparing version 1.1.5 to 1.1.7
{ | ||
"common": { | ||
"name": "comfoair", | ||
"version": "1.1.5", | ||
"version": "1.1.7", | ||
"news": { | ||
"1.1.7": { | ||
"en": "dependencies updated, serialport 10.x - update", | ||
"de": "abhängigkeiten aktualisiert, serialport 10.x - update", | ||
"ru": "зависимости обновлены, серийный порт 10.x - обновление", | ||
"pt": "dependências atualizadas, serialport 10.x - atualização", | ||
"nl": "afhankelijkheid geüpload. 10.x", | ||
"fr": "dépendances mises à jour, port série 10.x - mise à jour", | ||
"it": "dipendenze aggiornate, porta seriale 10.x - aggiornamento", | ||
"es": "dependencias actualizadas, serialport 10.x - actualización", | ||
"pl": "zależności 10.x – aktualizacja", | ||
"uk": "залежностей оновлено, серійний порт 10.x - оновлення", | ||
"zh-cn": "b. 更新的依赖情况,追溯性 十. 更新" | ||
}, | ||
"1.1.6": { | ||
"en": "boostmode enhanced, dependencies updated", | ||
"de": "boostmode verbessert, abhängigkeiten aktualisiert", | ||
"ru": "boostmode улучшено, обновлены зависимости", | ||
"pt": "boostmode aprimorado, dependências atualizadas", | ||
"nl": "verbeterd, afhankelijkheid geüpload", | ||
"fr": "boostmode amélioré, dépendances mises à jour", | ||
"it": "potenziato, dipendenze aggiornate", | ||
"es": "mejorada, actualizadas las dependencias", | ||
"pl": "boostmoda wzmocniona, zależność aktualizowana", | ||
"zh-cn": "b. 改善因素" | ||
}, | ||
"1.1.5": { | ||
@@ -71,10 +96,25 @@ "en": "bugfix (js-controller update)'", | ||
}, | ||
"title": "comfoair", | ||
"titleLang": { | ||
"en": "comfoairControl", | ||
"de": "ComfoairSteuerung" | ||
"de": "in den Warenkorb", | ||
"ru": "comfoairКонтроль", | ||
"pt": "compartimentação", | ||
"nl": "comfoairContro", | ||
"fr": "comfoairControl", | ||
"it": "comfoairControl", | ||
"es": "comfoairControl", | ||
"pl": "komfoairControl", | ||
"zh-cn": "comfoairControl" | ||
}, | ||
"desc": { | ||
"en": "Control you ComfoAir ventilation", | ||
"de": "Steuere deine ComfoAir - Lüftung" | ||
"en": "Control your ComfoAir ventilation", | ||
"de": "Steuern Sie Ihren Comfo Luftentlüftung", | ||
"ru": "Контролируйте свое Comfo Воздушная вентиляция", | ||
"pt": "Controle seu Comfo Ventilação de ar", | ||
"nl": "Controleer je Comfo Air ventilatie", | ||
"fr": "Contrôlez votre Comfo Ventilation de l ' air", | ||
"it": "Controlla il tuo Comfo Aria di ventilazione", | ||
"es": "Controla tu Comfo Ventilación aire", | ||
"pl": "Przestrzenij Komfo wentylacja", | ||
"zh-cn": "控制你的工作 空运" | ||
}, | ||
@@ -104,3 +144,13 @@ "authors": [ | ||
"dataSource": "poll", | ||
"installedFrom": "iobroker.comfoair" | ||
"plugins": { | ||
"sentry": { | ||
"dsn": "https://b52b2262a6b04cd891ea2cfada37431c@o667513.ingest.sentry.io/5767068" | ||
} | ||
}, | ||
"dependencies": [ | ||
{ | ||
"js-controller": ">=3.3.22" | ||
} | ||
], | ||
"installedFrom": "iobroker-community-adapters/ioBroker.comfoair" | ||
}, | ||
@@ -107,0 +157,0 @@ "native": { |
43
main.js
@@ -10,4 +10,8 @@ /** | ||
const utils = require('@iobroker/adapter-core'); // Get common adapter utils | ||
const SerialPort = require('serialport'); | ||
const InterByteTimeout = require('@serialport/parser-inter-byte-timeout'); | ||
const { | ||
SerialPort | ||
} = require('serialport'); | ||
const { | ||
InterByteTimeoutParser | ||
} = require('@serialport/parser-inter-byte-timeout'); | ||
var schedule = require('node-schedule'); | ||
@@ -96,3 +100,3 @@ let adapter; | ||
clearTimeout(pcmaster); | ||
clearTimeout(boostrun); | ||
clearBoostTimeout(); | ||
client.destroy(); | ||
@@ -445,3 +449,3 @@ adapter.log.info('[END] Stopping comfoair adapter...'); | ||
callcomfoair(setfanstate[state]); | ||
clearTimeout(boostrun); | ||
clearBoostTimeout(); | ||
break; | ||
@@ -516,4 +520,8 @@ | ||
case "control.boost": | ||
adapter.log.debug("Starte boost"); | ||
boost(); | ||
if (state == true) { | ||
adapter.log.debug("Starte boost"); | ||
boost(); | ||
} else { | ||
clearBoostTimeout(); | ||
} | ||
break; | ||
@@ -661,3 +669,4 @@ | ||
const port = new SerialPort(serialdevice, { | ||
const port = new SerialPort({ | ||
path: serialdevice, | ||
baudRate: 9600, | ||
@@ -671,3 +680,3 @@ dataBits: 8, | ||
const parser = port.pipe(new InterByteTimeout({ | ||
const parser = port.pipe(new InterByteTimeoutParser({ | ||
interval: 20 | ||
@@ -921,3 +930,3 @@ })); | ||
verzoegerungen = buffarr; | ||
adapter.setState("status.filterw", buffarr[11], true); | ||
adapter.setState("status.filterw", parseInt(buffarr[11]), true); | ||
break; | ||
@@ -1346,3 +1355,4 @@ | ||
desc: "Klappenstatus Bypass", | ||
unit: "%" | ||
unit: "%", | ||
def: 0 | ||
}, | ||
@@ -1604,6 +1614,7 @@ native: {} | ||
adapter.log.debug("Starte Boostmodus für " + state.val + " Minuten, kehre danach auf Stufe " + boostlevelold + " zurück"); | ||
callcomfoair(setfanstate[3]);; | ||
callcomfoair(setfanstate[3]); | ||
boostrun = setTimeout(function() { | ||
adapter.log.debug("Boost Ende"); | ||
adapter.setState('control.stufe', boostlevelold, false); | ||
adapter.setState('control.boost', false, true); | ||
}, state.val * 60000); | ||
@@ -1619,2 +1630,12 @@ } else { | ||
function clearBoostTimeout() { | ||
adapter.log.debug("boostrun Timeout zurückgesetzt") | ||
clearTimeout(boostrun); | ||
adapter.getState('control.boost', function(err, state) { | ||
if (state.val == true) { | ||
adapter.setState('control.boost', false, false); | ||
} | ||
}); | ||
} //end function clearBoostTimeout | ||
function restartAdapter() { | ||
@@ -1621,0 +1642,0 @@ adapter.getForeignObject('system.adapter.' + adapter.namespace, (err, obj) => { |
135
package.json
{ | ||
"_from": "github:iobroker-community-adapters/ioBroker.comfoair#master", | ||
"_id": "iobroker.comfoair@1.1.5", | ||
"_inBundle": false, | ||
"_integrity": "", | ||
"_location": "/iobroker.comfoair", | ||
"_phantomChildren": { | ||
"@serialport/parser-inter-byte-timeout": "9.0.7", | ||
"@types/node": "12.11.2", | ||
"bindings": "1.5.0", | ||
"detect-libc": "1.0.3", | ||
"expand-template": "2.0.3", | ||
"github-from-package": "0.0.0", | ||
"mkdirp-classic": "0.5.3", | ||
"napi-build-utils": "1.0.1", | ||
"noop-logger": "0.1.1", | ||
"npmlog": "4.1.2", | ||
"pump": "3.0.0", | ||
"rc": "1.2.8", | ||
"simple-get": "3.1.0", | ||
"tar-fs": "2.0.0", | ||
"tunnel-agent": "0.6.0" | ||
"name": "iobroker.comfoair", | ||
"version": "1.1.7", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"_requested": { | ||
"type": "git", | ||
"raw": "iobroker.comfoair@github:iobroker-community-adapters/ioBroker.comfoair#master", | ||
"name": "iobroker.comfoair", | ||
"escapedName": "iobroker.comfoair", | ||
"rawSpec": "github:iobroker-community-adapters/ioBroker.comfoair#master", | ||
"saveSpec": "github:iobroker-community-adapters/ioBroker.comfoair#master", | ||
"fetchSpec": null, | ||
"gitCommittish": "master" | ||
}, | ||
"_requiredBy": [ | ||
"#USER", | ||
"/" | ||
], | ||
"_resolved": "github:iobroker-community-adapters/ioBroker.comfoair#28ba132fd545165b8918ca3ba2e9a65c010fe139", | ||
"_spec": "iobroker.comfoair@github:iobroker-community-adapters/ioBroker.comfoair#master", | ||
"_where": "/opt/iobroker", | ||
"description": "comfoair", | ||
"author": { | ||
@@ -45,32 +12,9 @@ "name": "Marcel Adam", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/iobroker-community-adapters/ioBroker.comfoair/issues" | ||
}, | ||
"bundleDependencies": false, | ||
"contributors": [ | ||
{ | ||
"name": "Marcel Adam", | ||
"email": "marceladam@gmx.ch" | ||
} | ||
], | ||
"dependencies": { | ||
"@iobroker/adapter-core": "^2.4.0", | ||
"@serialport/parser-inter-byte-timeout": "^9.0.1", | ||
"delimiter-stream": "^3.0.1", | ||
"request": "^2.87.0", | ||
"serialport": "^9.0.1", | ||
"string_decoder": "^1.2.0" | ||
}, | ||
"deprecated": false, | ||
"description": "comfoair", | ||
"devDependencies": { | ||
"@iobroker/testing": "^2.3.0", | ||
"chai": "^4.1.2", | ||
"gulp": "^4.0.0", | ||
"mocha": "^8.1.3" | ||
}, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
}, | ||
"contributors": [{ | ||
"name": "Marcel Adam", | ||
"email": "marceladam@gmx.ch", | ||
"name": "crosenbe" | ||
}], | ||
"homepage": "https://github.com/iobroker-community-adapters/ioBroker.comfoair", | ||
"license": "MIT", | ||
"keywords": [ | ||
@@ -82,16 +26,59 @@ "ioBroker", | ||
], | ||
"license": "MIT", | ||
"main": "main.js", | ||
"name": "iobroker.comfoair", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/iobroker-community-adapters/ioBroker.comfoair.git" | ||
"url": "https://github.com/iobroker-community-adapters/ioBroker.comfoair" | ||
}, | ||
"dependencies": { | ||
"@iobroker/adapter-core": "^2.6.0", | ||
"delimiter-stream": "^3.0.1", | ||
"string_decoder": "^1.3.0", | ||
"serialport": "^10.5.0", | ||
"@serialport/parser-inter-byte-timeout": "^10.5.0" | ||
}, | ||
"devDependencies": { | ||
"@iobroker/testing": "^4.1.0", | ||
"@types/chai": "^4.3.3", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/gulp": "^4.0.9", | ||
"@types/node": "^18.11.9", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^18.11.9", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/sinon": "^10.0.13", | ||
"@types/sinon-chai": "^3.2.8", | ||
"axios": "^1.1.3", | ||
"chai": "^4.3.6", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^8.22.0", | ||
"gulp": "^4.0.2", | ||
"mocha": "^10.1.0", | ||
"proxyquire": "^2.1.3", | ||
"sinon": "^15.0.0", | ||
"sinon-chai": "^3.7.0" | ||
}, | ||
"main": "main.js", | ||
"files": [ | ||
"admin{,/!(src)/**}/!(tsconfig|tsconfig.*).json", | ||
"admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}", | ||
"lib/", | ||
"www/", | ||
"io-package.json", | ||
"LICENSE", | ||
"main.js" | ||
], | ||
"scripts": { | ||
"test": "npm run test:package && npm run test:unit", | ||
"test:package": "mocha test/package --exit", | ||
"test:unit": "mocha test/unit --exit", | ||
"test:integration": "mocha test/integration --exit", | ||
"test:package": "mocha test/package --exit", | ||
"test:unit": "mocha test/unit --exit" | ||
"lint": "eslint", | ||
"release": "release-script", | ||
"release-patch": "release-script patch --yes --no-update-lockfile", | ||
"release-minor": "release-script minor --yes --no-update-lockfile", | ||
"release-major": "release-script major --yes --no-update-lockfile" | ||
}, | ||
"version": "1.1.5" | ||
"bugs": { | ||
"url": "https://github.com/iobroker-community-adapters/ioBroker.comfoair/issues" | ||
}, | ||
"readmeFilename": "README.md" | ||
} |
@@ -62,2 +62,10 @@ ![Logo](admin/comfoair.png) | ||
### 1.1.7 | ||
- dependencies updated, serialport 10.x - update | ||
### 1.1.6 | ||
- boostmode enhanced, dependencies updated | ||
### 1.1.5 | ||
@@ -159,3 +167,3 @@ | ||
Copyright (c) 2021 forelleblau marceladam@gmx.ch | ||
Copyright (c) 2023 forelleblau marceladam@gmx.ch | ||
@@ -162,0 +170,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
Sorry, the diff of this file is not supported yet
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
5
16
1755
185
94592
18
+ Added@serialport/binding-mock@10.2.2(transitive)
+ Added@serialport/bindings-cpp@10.8.0(transitive)
+ Added@serialport/bindings-interface@1.2.2(transitive)
+ Added@serialport/parser-byte-length@10.5.0(transitive)
+ Added@serialport/parser-cctalk@10.5.0(transitive)
+ Added@serialport/parser-delimiter@10.5.0(transitive)
+ Added@serialport/parser-inter-byte-timeout@10.5.0(transitive)
+ Added@serialport/parser-packet-length@10.5.0(transitive)
+ Added@serialport/parser-readline@10.5.0(transitive)
+ Added@serialport/parser-ready@10.5.0(transitive)
+ Added@serialport/parser-regex@10.5.0(transitive)
+ Added@serialport/parser-slip-encoder@10.5.0(transitive)
+ Added@serialport/parser-spacepacket@10.5.0(transitive)
+ Added@serialport/stream@10.5.0(transitive)
+ Addednode-addon-api@5.1.0(transitive)
+ Addednode-gyp-build@4.8.3(transitive)
+ Addedserialport@10.5.0(transitive)
- Removedrequest@^2.87.0
- Removed@serialport/binding-abstract@9.2.3(transitive)
- Removed@serialport/binding-mock@9.2.4(transitive)
- Removed@serialport/bindings@9.2.8(transitive)
- Removed@serialport/parser-byte-length@9.2.4(transitive)
- Removed@serialport/parser-cctalk@9.2.4(transitive)
- Removed@serialport/parser-delimiter@9.2.4(transitive)
- Removed@serialport/parser-inter-byte-timeout@9.2.4(transitive)
- Removed@serialport/parser-readline@9.2.4(transitive)
- Removed@serialport/parser-ready@9.2.4(transitive)
- Removed@serialport/parser-regex@9.2.4(transitive)
- Removed@serialport/stream@9.2.4(transitive)
- Removedajv@6.12.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbindings@1.5.0(transitive)
- Removedbl@4.1.0(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedchownr@1.1.4(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddecompress-response@6.0.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddetect-libc@2.0.3(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexpand-template@2.0.3(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedgithub-from-package@0.0.0(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedieee754@1.2.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedmimic-response@3.1.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp-classic@0.5.3(transitive)
- Removednan@2.22.0(transitive)
- Removednapi-build-utils@1.0.2(transitive)
- Removednode-abi@3.71.0(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedprebuild-install@7.1.2(transitive)
- Removedpsl@1.10.0(transitive)
- Removedpump@3.0.2(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrc@1.2.8(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@7.6.3(transitive)
- Removedserialport@9.2.8(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedsimple-get@4.0.1(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedtar-fs@2.1.1(transitive)
- Removedtar-stream@2.2.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedserialport@^10.5.0
Updatedstring_decoder@^1.3.0