homebridge-xbox-tv 2.9.2 → 2.9.4

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.
@@ -869,30 +869,40 @@
869
869
  {
870
870
  "key": "devices[]",
871
871
  "type": "section",
872
- "title": "RESTful",
872
+ "title": "External Integrations",
873
873
  "expandable": true,
874
874
  "expanded": false,
875
875
  "items": [
876
- "devices[].enableRestFul",
877
- "devices[].restFulDebug",
878
- "devices[].restFulPort"
879
- ]
880
- },
881
- {
882
- "key": "devices[]",
883
- "type": "section",
884
- "title": "MQTT",
885
- "expandable": true,
886
- "expanded": false,
887
- "items": [
888
- "devices[].enableMqtt",
889
- "devices[].mqttDebug",
890
- "devices[].mqttHost",
891
- "devices[].mqttPort",
892
- "devices[].mqttPrefix",
893
- "devices[].mqttAuth",
894
- "devices[].mqttUser",
895
- "devices[].mqttPasswd"
876
+ {
877
+ "key": "devices[]",
878
+ "type": "tabarray",
879
+ "title": "{{ value.title }}",
880
+ "items": [
881
+ {
882
+ "key": "devices[]",
883
+ "title": "RESTFul",
884
+ "items": [
885
+ "devices[].enableRestFul",
886
+ "devices[].restFulDebug",
887
+ "devices[].restFulPort"
888
+ ]
889
+ },
890
+ {
891
+ "key": "devices[]",
892
+ "title": "MQTT",
893
+ "items": [
894
+ "devices[].enableMqtt",
895
+ "devices[].mqttDebug",
896
+ "devices[].mqttHost",
897
+ "devices[].mqttPort",
898
+ "devices[].mqttPrefix",
899
+ "devices[].mqttAuth",
900
+ "devices[].mqttUser",
901
+ "devices[].mqttPasswd"
902
+ ]
903
+ }
904
+ ]
905
+ }
896
906
  ]
897
907
  }
898
908
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "2.9.2",
4
+ "version": "2.9.4",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -29,7 +29,7 @@
29
29
  "homebridge": ">=1.5.0"
30
30
  },
31
31
  "dependencies": {
32
- "@homebridge/plugin-ui-utils": "^0.0.19",
32
+ "@homebridge/plugin-ui-utils": "^0.1.0",
33
33
  "async-mqtt": "^2.6.3",
34
34
  "elliptic": "^6.5.4",
35
35
  "hex-to-binary": "^1.0.1",
package/src/restful.js CHANGED
@@ -23,6 +23,7 @@ class RestFul extends EventEmitter {
23
23
  connect() {
24
24
  try {
25
25
  const restFul = express();
26
+ restFul.set('json spaces', 2);
26
27
  restFul.get('/info', (req, res) => { res.json(this.restFulData.info) });
27
28
  restFul.get('/state', (req, res) => { res.json(this.restFulData.state) });
28
29
  restFul.get('/consoleslist', (req, res) => { res.json(this.restFulData.consoleslist) });