homebridge-xbox-tv 3.3.0-beta.2 → 3.3.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/CHANGELOG.md +11 -0
- package/README.md +5 -2
- package/index.js +3 -3
- package/package.json +2 -2
- package/src/localApi/xboxlocalapi.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
- After update to 2.x.x the plugin settings (xboxLiveId) need to be updated
|
|
11
11
|
- After update to v3.0.0 RESTFull and MQTT config settings need to be updated
|
|
12
12
|
|
|
13
|
+
## [3.3.0] - (19.01.2025)
|
|
14
|
+
|
|
15
|
+
## Changes
|
|
16
|
+
|
|
17
|
+
- added possibility to disable/enable log success, info, warn, error
|
|
18
|
+
- refactor cnnect code
|
|
19
|
+
- bump dependencies
|
|
20
|
+
- config schema updated
|
|
21
|
+
- redme updated
|
|
22
|
+
- cleanup
|
|
23
|
+
|
|
13
24
|
## [3.2.0] - (30.11.2024)
|
|
14
25
|
|
|
15
26
|
## Changes
|
package/README.md
CHANGED
|
@@ -106,9 +106,12 @@ Homebridge plugin for Microsoft game Consoles. Tested with Xbox One X/S and Xbox
|
|
|
106
106
|
| `volumeControlName` | Here set Your own volume control name or leave empty. |
|
|
107
107
|
| `volumeControl` | Here choice what a additional volume control mode You want to use (`0 - None/Disabled`, `1 - Lightbulb`, `2 - Fan`), not working yet. |
|
|
108
108
|
| `infoButtonCommand` | Here select the function of `I` button in RC app. |
|
|
109
|
-
| `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
|
|
110
|
-
| `disableLogInfo` | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. |
|
|
111
109
|
| `disableLogDeviceInfo` | If enabled, add ability to disable log device info by every connections device to the network. |
|
|
110
|
+
| `disableLogInfo` | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. |
|
|
111
|
+
| `disableLogSuccess` | If enabled, disable logging device success. |
|
|
112
|
+
| `disableLogWarn` | If enabled, disable logging device warnings. |
|
|
113
|
+
| `disableLogError` | If enabled, disable logging device error. |
|
|
114
|
+
| `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
|
|
112
115
|
| `restFul` | This is RSTful server. |
|
|
113
116
|
| `enable` | If enabled, RESTful server will start automatically and respond to any path request. |
|
|
114
117
|
| `port` | Here set the listening `Port` for RESTful server. |
|
package/index.js
CHANGED
|
@@ -101,7 +101,7 @@ class XboxPlatform {
|
|
|
101
101
|
const emitLog = !enableDebugMode ? false : log.info(`Device: ${host} ${deviceName}, debug: ${debug}.`);
|
|
102
102
|
})
|
|
103
103
|
.on('warn', (warn) => {
|
|
104
|
-
const
|
|
104
|
+
const emitLog = disableLogWarn ? false : log.warn(`Device: ${host} ${deviceName}, ${warn}.`);
|
|
105
105
|
})
|
|
106
106
|
.on('error', (error) => {
|
|
107
107
|
const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, ${error}.`);
|
|
@@ -112,7 +112,7 @@ class XboxPlatform {
|
|
|
112
112
|
impulseGenerator.on('start', async () => {
|
|
113
113
|
try {
|
|
114
114
|
const startDone = await xboxDevice.start();
|
|
115
|
-
const stopImpulseGenerator = startDone ? impulseGenerator.stop() : false;
|
|
115
|
+
const stopImpulseGenerator = startDone ? await impulseGenerator.stop() : false;
|
|
116
116
|
} catch (error) {
|
|
117
117
|
const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, ${error}, trying again.`);
|
|
118
118
|
};
|
|
@@ -121,7 +121,7 @@ class XboxPlatform {
|
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
//start impulse generator
|
|
124
|
-
impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
|
124
|
+
await impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
|
125
125
|
} catch (error) {
|
|
126
126
|
throw new Error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}.`);
|
|
127
127
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Xbox TV",
|
|
3
3
|
"name": "homebridge-xbox-tv",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.1",
|
|
5
5
|
"description": "Homebridge plugin to control Xbox game consoles.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": "^18.20.4 || ^20.15.1 || ^22.7.0 || ^23.2.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@homebridge/plugin-ui-utils": "^2.0.
|
|
38
|
+
"@homebridge/plugin-ui-utils": "^2.0.1",
|
|
39
39
|
"async-mqtt": "^2.6.3",
|
|
40
40
|
"elliptic": "^6.6.1",
|
|
41
41
|
"hex-to-binary": "^1.0.1",
|
|
@@ -634,7 +634,7 @@ class XboxLocalApi extends EventEmitter {
|
|
|
634
634
|
}
|
|
635
635
|
}).bind();
|
|
636
636
|
|
|
637
|
-
await new Promise(resolve => setTimeout(resolve,
|
|
637
|
+
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
638
638
|
return true;
|
|
639
639
|
} catch (error) {
|
|
640
640
|
throw new Error(`Connect error: ${error.message || error}`);
|