iobroker.senec 1.4.2 → 1.4.3
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 +3 -0
- package/io-package.json +14 -1
- package/main.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -366,6 +366,9 @@ This channel contains calculated values. Currently these are day/week/month/year
|
|
|
366
366
|
*Read-only number, which designates the number of wallbox [0..3]. This is only available on systems with configured wallboxes.*
|
|
367
367
|
|
|
368
368
|
## Changelog
|
|
369
|
+
### 1.4.3 (NoBl)
|
|
370
|
+
* Working on https connection. Please test and report!
|
|
371
|
+
|
|
369
372
|
### 1.4.2 (NoBl)
|
|
370
373
|
* Added option to use https for connecting to SENEC (only activate if your appliance supports / requires this!)
|
|
371
374
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "senec",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.4.3": {
|
|
7
|
+
"en": "Working on https connection. Please test and report!",
|
|
8
|
+
"de": "Arbeiten an https-Verbindung. Bitte testen und melden!",
|
|
9
|
+
"ru": "Работает на связи https. Пожалуйста, проверьте и сообщите!",
|
|
10
|
+
"pt": "A trabalhar na ligação https. Por favor, teste e informe!",
|
|
11
|
+
"nl": "Werken aan HTP's verbinding. test en rapporteer!",
|
|
12
|
+
"fr": "Travailler sur la connexion https. S'il vous plaît tester et rapporter!",
|
|
13
|
+
"it": "Lavorare sul collegamento https. Si prega di testare e segnalare!",
|
|
14
|
+
"es": "Trabajando en la conexión https. ¡Por favor, prueba e informe!",
|
|
15
|
+
"pl": "Pracuje nad połączeniem https. Protestować i sprawdzić!",
|
|
16
|
+
"uk": "Робота на підключення HTTPS. Будь ласка, перевірте та звітуйте!",
|
|
17
|
+
"zh-cn": "关于网址的工作。 请试验和报告!"
|
|
18
|
+
},
|
|
6
19
|
"1.4.2": {
|
|
7
20
|
"en": "Added option to use https for connecting to SENEC (only activate if your appliance supports / requires this!)",
|
|
8
21
|
"de": "Zusätzliche Option zur Verwendung von https zur Verbindung mit SENEC hinzugefügt (nur aktivieren, wenn Ihr Gerät dies unterstützt / erfordert)",
|
package/main.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
//process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'; // not cool, not nice - but well ... just a last option if everything else fails
|
|
3
|
+
|
|
4
|
+
const https = require('https');
|
|
5
|
+
const agent = new https.Agent({
|
|
6
|
+
requestCert: true,
|
|
7
|
+
rejectUnauthorized: false
|
|
8
|
+
});
|
|
2
9
|
|
|
3
10
|
const utils = require('@iobroker/adapter-core');
|
|
4
11
|
const axios = require('axios').default;
|
|
@@ -129,6 +136,7 @@ class Senec extends utils.Adapter {
|
|
|
129
136
|
return new Promise(function (resolve, reject) {
|
|
130
137
|
axios({
|
|
131
138
|
method: 'post',
|
|
139
|
+
httpsAgent: agent,
|
|
132
140
|
url: pUrl,
|
|
133
141
|
data: pForm,
|
|
134
142
|
timeout: pollingTimeout
|