bt-sensors-plugin-sk 1.3.6-1 → 1.3.6-3

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/BTSensor.js CHANGED
@@ -1071,7 +1071,7 @@ class BTSensor extends EventEmitter {
1071
1071
  this._app.handleMessage(id,
1072
1072
  {
1073
1073
  updates:
1074
- [{ meta: [{path: this.preparePath(path), value: { units: pathMeta?.unit, zones:pathMeta?.zones } }]}]
1074
+ [{ meta: [{path: this.preparePath(path), value: { units: pathMeta?.unit, zones:pathMeta?.zones, renderer:pathMeta?.renderer } }]}]
1075
1075
  })
1076
1076
  }
1077
1077
  })
@@ -1,5 +1,4 @@
1
1
 
2
- const { toPathSchema } = require('@rjsf/utils');
3
2
  const EventEmitter = require('node:events');
4
3
 
5
4
  class OutOfRangeDevice extends EventEmitter{
package/classLoader.js CHANGED
@@ -15,7 +15,7 @@ const semver = require('semver')
15
15
  classMap.set(cls.name, cls);
16
16
  }
17
17
  catch (e) {
18
- console.log(`Unable to load class (${cls?.name}): ${e.message}`)
18
+ console.log(`Unable to load classfile (${file}): ${e.message}`)
19
19
  console.log(e)
20
20
  }
21
21
 
@@ -38,7 +38,7 @@ const semver = require('semver')
38
38
  const cls = require(module.location+module.module+"/"+classFile);
39
39
  classMap.set(cls.name, cls);
40
40
  } catch (e) {
41
- console.log(`Unable to load class (${cls.name}): ${e.message}`)
41
+ console.log(`Unable to load classfile (${file}): ${e.message}`)
42
42
  console.log(e)
43
43
  }
44
44
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-sensors-plugin-sk",
3
- "version": "1.3.6-1",
3
+ "version": "1.3.6-3",
4
4
  "description": "Bluetooth Sensors for Signalk - see https://www.npmjs.com/package/bt-sensors-plugin-sk#supported-sensors for a list of supported sensors",
5
5
  "main": "index.js",
6
6
  "dependencies": {
@@ -180,7 +180,8 @@
180
180
  "message": "Battery very low - change now"
181
181
  }
182
182
  ],
183
- "description":"Sensor battery strength"
183
+ "description":"Sensor battery strength",
184
+ "renderer":{ "type": "meter", "params": {}}
184
185
  },
185
186
 
186
187
  "batteryVoltage":
@@ -1,4 +1,3 @@
1
- const { ThemeProvider } = require("react-bootstrap");
2
1
  const BTSensor = require("../BTSensor");
3
2
  let FakeDevice,FakeGATTService,FakeGATTCharacteristic;
4
3