homebridge-eosstb 2.2.5 → 2.2.6

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/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@ Please restart Homebridge after every plugin update.
10
10
  * Implement refreshToken capabilities
11
11
 
12
12
 
13
+ ## 2.2.6 (2023-05-19)
14
+ * Fixed some minor logging typos
15
+ * Added logging of version info
16
+ * Updated engine version references
17
+ * Bumped dependency "axios": "^1.4.0",
18
+ * Bumped dependency "qs": "^6.11.2",
19
+
20
+
13
21
  ## 2.2.5 (2023-03-28)
14
22
  * Improved robustness when no set-top boxes detected in the user profile
15
23
  * Updated iOS version references
package/README.md CHANGED
@@ -73,7 +73,7 @@ This plugin is not provided by Magenta or Telenet or Sunrise or Virgin Media or
73
73
 
74
74
  ## Requirements
75
75
  * An Apple iPhone or iPad with iOS/iPadOS 14.0 (or later). Developed on iOS 14.1...16.4, earlier versions not tested.
76
- * [Homebridge](https://homebridge.io/) v1.1.116 (or later). Developed on Homebridge 1.1.116....1.6.0, earlier versions not tested.
76
+ * [Homebridge](https://homebridge.io/) v1.1.116 (or later). Developed on Homebridge 1.1.116....1.6.1, earlier versions not tested.
77
77
  * A TV subscription from one of the supported countries and TV providers.
78
78
  * An online account for viewing TV in the web app (often part of your TV package), see the table above.
79
79
  * An ARRIS DCX960 or HUMAX EOS1008R / 2008C / VIP5002W set-top box, provided by your TV provider as part of your TV subscription, called by the system an "EOSSTB", "EOS2STB" or "APLSTB" and marketed under different names in different countries.
package/index.js CHANGED
@@ -14,6 +14,7 @@ const fsPromises = require('fs').promises;
14
14
  const path = require('path');
15
15
  const debug = require('debug')('eosstb'); // https://github.com/debug-js/debug
16
16
  // good example of debug usage https://github.com/mqttjs/MQTT.js/blob/main/lib/client.js
17
+ const semver = require('semver') // https://github.com/npm/node-semver
17
18
 
18
19
  const mqtt = require('mqtt'); // https://github.com/mqttjs
19
20
  const qs = require('qs'); // https://github.com/ljharb/qs
@@ -306,6 +307,9 @@ class stbPlatform {
306
307
  this.api = api;
307
308
  this.stbDevices = []; // store stbDevice in this.stbDevices
308
309
 
310
+ // show some useful version info
311
+ this.log.info('%s v%s, node %s, homebridge v%s', packagejson.name, packagejson.version, process.version, this.api.serverVersion)
312
+
309
313
  // only load if configured and mandatory items exist. Homebridge checks for platform itself, and name is not critical
310
314
  if (!this.config) { this.log.warn('%s config missing. Initialization aborted.', PLUGIN_NAME); return; }
311
315
  const configWarningText = '%s config incomplete: "{configItemName}" missing. Initialization aborted.';
@@ -334,7 +338,6 @@ class stbPlatform {
334
338
  //this.api.on('didFinishLaunching', () => {
335
339
  this.api.on('didFinishLaunching', async () => {
336
340
  if (this.config.debugLevel > 2) { this.log.warn('API event: didFinishLaunching'); }
337
- this.log('%s v%s', PLUGIN_NAME, PLUGIN_VERSION);
338
341
  debug('stbPlatform:apievent :: didFinishLaunching')
339
342
 
340
343
  // call the session watchdog once to create the session initially
@@ -999,7 +1002,7 @@ class stbPlatform {
999
1002
  .catch(error => {
1000
1003
  //this.log.warn("Step 6 of 6: Unable to authorize with oauth code:", error.response.status, error.response.statusText);
1001
1004
  this.log.debug("Step 6 of 6: Unable to authorize with oauth code:",error);
1002
- reject("Step 6 of 6: Step 6 of 6: Unable to authorize with oauth code: " + error.response.status + ' ' + error.response.statusText); // reject the promise and return the error
1005
+ reject("Step 6 of 6: Unable to authorize with oauth code: " + error.response.status + ' ' + error.response.statusText); // reject the promise and return the error
1003
1006
  });
1004
1007
  };
1005
1008
  };
@@ -1008,7 +1011,8 @@ class stbPlatform {
1008
1011
  .catch(error => {
1009
1012
  //this.log.warn("Step 4 of 6: Unable to oauth authorize:", error.response.status, error.response.statusText);
1010
1013
  this.log.debug("Step 4 of 6: Unable to oauth authorize:",error);
1011
- reject("Step 2 of 6: Step 4 of 6: Unable to oauth authorize: " + error.response.status + ' ' + error.response.statusText); // reject the promise and return the error
1014
+ //reject("Step 4 of 6: Unable to oauth authorize: " + error.response.status + ' ' + error.response.statusText); // reject the promise and return the error
1015
+ reject("Step 4 of 6: Unable to oauth authorize: " + error); // reject the promise and return the error
1012
1016
  });
1013
1017
  };
1014
1018
  })
package/package.json CHANGED
@@ -3,20 +3,21 @@
3
3
  "displayName": "Homebridge EOSSTB",
4
4
  "description": "homebridge-plugin - Add your set-top box to Homekit (for Magenta AT, Telenet BE, Sunrise CH, Virgin Media GB & IE, Ziggo NL)",
5
5
  "author": "Jochen Siegenthaler (https://github.com/jsiegenthaler/)",
6
- "version": "2.2.5",
6
+ "version": "2.2.6",
7
7
  "platformname": "eosstb",
8
8
  "dependencies": {
9
9
  "axios-cookiejar-support": "^4.0.6",
10
- "axios": "^1.3.4",
10
+ "axios": "^1.4.0",
11
11
  "debug": "^4.3.4",
12
12
  "mqtt": "^4.3.7",
13
- "qs": "^6.11.1",
13
+ "qs": "^6.11.2",
14
+ "semver": "^7.5.1",
14
15
  "tough-cookie": "^4.1.2"
15
16
  },
16
17
  "deprecated": false,
17
18
  "engines": {
18
- "homebridge": ">=1.6.0",
19
- "node": ">=16.19.1"
19
+ "homebridge": "^1.6.1",
20
+ "node": "^18.16.0"
20
21
  },
21
22
  "homepage": "https://github.com/jsiegenthaler/homebridge-eosstb#readme",
22
23
  "keywords": [