homebridge-frontier-silicon-plugin 1.0.0 → 1.0.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.
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "homebridge-frontier-silicon-plugin",
3
+ "version": "1.0.0",
4
+ "description": "Homebridge plugin for Frontier Silicon FSAPI devices, power and volume with safe polling",
5
+ "license": "ISC",
6
+ "main": "index.js",
7
+ "keywords": [
8
+ "homebridge-pluginconfig.schema.json",
9
+ "homebridge",
10
+ "frontier",
11
+ "silicon",
12
+ "fsapi",
13
+ "internet-radio"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/boikedamhuis/homebridge-frontier-silicon"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/boikedamhuis/homebridge-frontier-silicon/issues"
21
+ },
22
+ "author": {
23
+ "name": "Boike Damhuis"
24
+ },
25
+ "engines": {
26
+ "node": ">=18.0.0",
27
+ "homebridge": ">=1.6.0"
28
+ }
29
+ }
package/index.js CHANGED
@@ -169,7 +169,7 @@ FsApiClient.prototype.getPower = async function () {
169
169
 
170
170
  FsApiClient.prototype.setPower = async function (on) {
171
171
  const v = on ? 1 : 0;
172
- await this.fetchText("/fsapi/SET/netRemote.sys.power&value=" + v);
172
+ await this.fetchText("/fsapi/SET/netRemote.sys.power?value=" + v);
173
173
  };
174
174
 
175
175
  FsApiClient.prototype.getVolume = async function () {
@@ -180,7 +180,7 @@ FsApiClient.prototype.getVolume = async function () {
180
180
 
181
181
  FsApiClient.prototype.setVolume = async function (volume) {
182
182
  const v = clampInt(Number(volume), 0, 100);
183
- await this.fetchText("/fsapi/SET/netRemote.sys.audio.volume&value=" + v);
183
+ await this.fetchText("/fsapi/SET/netRemote.sys.audio.volume?value=" + v);
184
184
  };
185
185
 
186
186
  FsApiClient.prototype.fetchText = async function (pathAndQuery) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-frontier-silicon-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Homebridge plugin for Frontier Silicon FSAPI devices, power and volume with safe polling",
5
5
  "license": "ISC",
6
6
  "main": "index.js",