iobroker.senec 1.6.0 → 1.6.1

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
@@ -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.6.1 (NoBl)
370
+ * Bugfixes
371
+
369
372
  ### 1.6.0 (NoBl)
370
373
  * Added option to also poll SENEC App API. This requires user credentials for mein-senec.de
371
374
  * We are starting with just some information - more to follow. But with Dashboard we at least have current values and day statistics back.
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "senec",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "news": {
6
+ "1.6.1": {
7
+ "en": "Bugfixes for API reading.",
8
+ "de": "Bugfixes im API Handling.",
9
+ "ru": "Bugfixes для чтения API.",
10
+ "pt": "Bugfixes para leitura de API.",
11
+ "nl": "Bugfixes voor API-lezing.",
12
+ "fr": "Bugfixes pour la lecture de l'API.",
13
+ "it": "Bugfixes per la lettura API.",
14
+ "es": "Bugfixes para la lectura de API.",
15
+ "pl": "Bugfixes for API reading (ang.).",
16
+ "uk": "Виправлення помилок для читання API.",
17
+ "zh-cn": "评 注."
18
+ },
6
19
  "1.6.0": {
7
20
  "en": "You can now configure to request SENEC App API.",
8
21
  "de": "Sie können nun die SENEC App API abfragen.",
package/main.js CHANGED
@@ -10,7 +10,7 @@ const agent = new https.Agent({
10
10
  const utils = require('@iobroker/adapter-core');
11
11
 
12
12
  const axios = require('axios').default;
13
- axios.defaults.headers.common['Content-Type'] = "application/json";
13
+ axios.defaults.headers.post['Content-Type'] = "application/json";
14
14
 
15
15
  const state_attr = require(__dirname + '/lib/state_attr.js');
16
16
  const state_trans = require(__dirname + '/lib/state_trans.js');
@@ -260,7 +260,7 @@ class Senec extends utils.Adapter {
260
260
  this.log.info('connected to Senec AppAPI.');
261
261
  apiLoginToken = JSON.parse(body).token;
262
262
  apiConnected = true;
263
- axios.defaults.headers.common['authorization'] = apiLoginToken;
263
+ axios.defaults.headers.get['authorization'] = apiLoginToken;
264
264
  } catch (error) {
265
265
  throw new Error("Error connecting to Senec AppAPI. Exiting! (" + error + ").");
266
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.senec",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Senec Home",
5
5
  "author": {
6
6
  "name": "NoBl",