iobroker.ebus 3.0.4 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@ There is a possibillity to poll data which are not polled by ebusd directly. Com
30
30
 
31
31
  Another feature is to send any command to ebusd and receive answer to work with e.g. scripts.
32
32
 
33
- current supported ebusd-version: 22.2
33
+ current supported ebusd-version: 22.3
34
34
 
35
35
  **Attention** with ebusd - version 22.1 config path has been changed to http://cfg.ebusd.eu/. Make sure you change it in your installation of ebusd.
36
36
  details see in [changelog](https://github.com/john30/ebusd/blob/master/ChangeLog.md)
@@ -55,6 +55,12 @@ Attention: command in datapoint ebus.0.cmd is deleted after executing of command
55
55
 
56
56
  ## Changelog
57
57
 
58
+ ### 3.0.7 (2022-08-20)
59
+ * (René) support ebusd 22.3
60
+
61
+ ### 3.0.6 (2022-08-19)
62
+ * (René) bug fix in tooltip in wizard
63
+
58
64
  ### 3.0.4 (2022-08-18)
59
65
  * (René) tooltip in wizard added
60
66
  * (René) flot and dependencies updated
package/io-package.json CHANGED
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "ebus",
4
- "version": "3.0.4",
4
+ "version": "3.0.7",
5
5
  "news": {
6
- "3.0.4": {
6
+ "3.0.7": {
7
+ "en": "support of ebusd 22.3",
8
+ "de": "Unterstützung von ebusd 22.3",
9
+ "ru": "поддержка ebusd 22.3",
10
+ "pt": "suporte de ebusd 22.3",
11
+ "nl": "ondersteuning van ebusd 22.3",
12
+ "fr": "prise en charge d'ebusd 22.3",
13
+ "it": "supporto di ebusd 22.3",
14
+ "es": "soporte de ebusd 22.3",
15
+ "pl": "obsługa ebusd 22.3",
16
+ "zh-cn": "支持 ebusd 22.3"
17
+ },
18
+ "3.0.6": {
7
19
  "en": "widget with tooltip",
8
20
  "de": "Widget mit Tooltip",
9
21
  "ru": "виджет с подсказкой",
package/main.js CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
  const utils = require("@iobroker/adapter-core");
18
- const ebusdMinVersion = [22, 2];
18
+ const ebusdMinVersion = [22, 3];
19
19
  let ebusdVersion = [0, 0];
20
20
  let ebusdUpdateVersion = [0, 0];
21
21
 
@@ -653,7 +653,10 @@ async function ebusd_ReceiveData() {
653
653
  let bSkip = false;
654
654
 
655
655
  if (subnames[0].includes("scan") ||
656
- subnames[0].includes("ehp")) {
656
+ subnames[0].includes("ehp") ||
657
+ (subnames.length>2 && subnames[2].includes("currenterror"))
658
+
659
+ ) {
657
660
  bSkip = true;
658
661
  }
659
662
  if (temp > 2) {
@@ -672,7 +675,7 @@ async function ebusd_ReceiveData() {
672
675
  else {
673
676
  sError += sError1;
674
677
  }
675
- adapter.log.debug(sError1);
678
+ adapter.log.warn(sError1);
676
679
  }
677
680
 
678
681
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.ebus",
3
- "version": "3.0.4",
3
+ "version": "3.0.7",
4
4
  "description": "ioBroker ebus Adapter",
5
5
  "author": {
6
6
  "name": "René G.",
package/widgets/ebus.html CHANGED
@@ -1372,12 +1372,35 @@
1372
1372
  function SetMarkingColor(color) {
1373
1373
  MarkingColor = color;
1374
1374
  }
1375
- function noneFormatter(v, axis) {
1376
- return v.toFixed(axis.tickDecimals);
1375
+ function noneFormatter(val, axis) {
1376
+
1377
+ let myval;
1378
+ if (typeof val == "string") {
1379
+ console.log('noneFormatter convert to number ');
1380
+ myval = Number(val);
1381
+ }
1382
+ else {
1383
+ myval = val;
1384
+ }
1385
+
1386
+ console.log('noneFormatter for ' + val + " " + typeof val);
1387
+
1388
+ return (myval * 1).toFixed(axis.tickDecimals);
1377
1389
  }
1378
1390
 
1379
- function degreeFormatter(v, axis) {
1380
- return v.toFixed(axis.tickDecimals) + "°C";
1391
+ function degreeFormatter(val, axis) {
1392
+ let myval;
1393
+ if (typeof val == "string") {
1394
+ console.log('degreeFormatter convert to number ');
1395
+ myval = Number(val);
1396
+ }
1397
+ else {
1398
+ myval = val;
1399
+ }
1400
+
1401
+ console.log('degreeFormatter for ' + val + " " + typeof val);
1402
+
1403
+ return (myval * 1).toFixed(axis.tickDecimals) + "°C";
1381
1404
  }
1382
1405
 
1383
1406
  function xwhFormatter(val, axis) {
@@ -1399,6 +1422,7 @@
1399
1422
  else
1400
1423
  return (myval*1).toFixed(axis.tickDecimals) + " Wh";
1401
1424
  }
1425
+
1402
1426
  function xwFormatter(val, axis) {
1403
1427
 
1404
1428
  let myval;