bt-sensors-plugin-sk 1.2.6-beta-6e → 1.3.0
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/OutOfRangeDevice.js +1 -1
- package/README.md +10 -20
- package/package.json +1 -1
- package/sensor_classes/RenogyBattery.js +2 -6
package/OutOfRangeDevice.js
CHANGED
|
@@ -23,7 +23,7 @@ class OutOfRangeDevice extends EventEmitter{
|
|
|
23
23
|
this.intervalID=setInterval(
|
|
24
24
|
()=>{
|
|
25
25
|
adapter.waitDevice(config.mac_address,(config?.discoveryTimeout??30)*1000)
|
|
26
|
-
.then(
|
|
26
|
+
.then( (device)=> {
|
|
27
27
|
this.emit("deviceFound", device)
|
|
28
28
|
clearInterval(this.intervalID)
|
|
29
29
|
this.intervalID=undefined
|
package/README.md
CHANGED
|
@@ -2,32 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
## WHAT'S NEW
|
|
4
4
|
|
|
5
|
-
# Version 1.
|
|
6
|
-
- Funny you should ask...
|
|
7
|
-
|
|
8
|
-
# Version 1.2.6-beta-5
|
|
9
|
-
|
|
10
|
-
- JikongBMS fixes
|
|
11
|
-
|
|
12
|
-
# Version 1.2.6-beta-4
|
|
5
|
+
# Version 1.3.0
|
|
13
6
|
|
|
14
|
-
- Improved reconnect logic for connected devices
|
|
15
|
-
- Error display in config (preliminary effort)
|
|
16
7
|
- JikongBMS support (aka JKBMS)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
- EcoWorthyBW02 Batteries/BMS support (need testers)
|
|
9
|
+
- Ective, Topband, Skanbatt etc LiFePo4 BMS support (ective.de BMS manufacturer)
|
|
10
|
+
- FeasyCom BP108B support -- iBeacon/Eddystone protocols
|
|
11
|
+
- Refactored code for connected devices
|
|
12
|
+
- Display connection/active state in config
|
|
13
|
+
- DBus resource issues addressed
|
|
14
|
+
- dbus-next package replaced with @jellybrick/dbus-next
|
|
15
|
+
- Improved reconnect logic for connected devices
|
|
20
16
|
- UI improvements for selecting Sensor Class (if available, paths appear immediately upon selection)
|
|
21
|
-
- EcoWorthy Batteries/BMS (need testers)
|
|
22
|
-
|
|
23
|
-
# Version 1.2.6-beta
|
|
24
|
-
|
|
25
|
-
|
|
26
17
|
- Mopeka examples not defaults in config for underused paths
|
|
27
18
|
- Fix so no plugin restart required after selecting sensor class for an unidentified device
|
|
28
|
-
- FeasyCom BP108B support -- iBeacon/Eddystone protocols
|
|
29
|
-
- Ective, Topband, Skanbatt etc LiFePo4 BMS support (ective.de)
|
|
30
19
|
- Fixed Junctek chargeDirection at start (amps will not reported until chargeDirection is known)
|
|
20
|
+
- auxMode detection fixes for Victron SmartBatteryMonitor devices
|
|
31
21
|
|
|
32
22
|
# Version 1.2.5-1
|
|
33
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bt-sensors-plugin-sk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
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": {
|
|
@@ -6,12 +6,6 @@ const RenogySensor = require("./Renogy/RenogySensor.js");
|
|
|
6
6
|
class RenogyBattery extends RenogySensor {
|
|
7
7
|
|
|
8
8
|
static ImageFile="RenogySmartLiFePo4Battery.webp"
|
|
9
|
-
|
|
10
|
-
async init(){
|
|
11
|
-
this.numberOfCells = await this.retrieveNumberOfCells()
|
|
12
|
-
this.deviceID = await this.retrieveDeviceID()
|
|
13
|
-
await super.init()
|
|
14
|
-
}
|
|
15
9
|
|
|
16
10
|
async getAllEmitterFunctions(){
|
|
17
11
|
return [this.getAndEmitBatteryInfo.bind(this),
|
|
@@ -46,6 +40,8 @@ class RenogyBattery extends RenogySensor {
|
|
|
46
40
|
}
|
|
47
41
|
async initGATTConnection() {
|
|
48
42
|
await super.initGATTConnection()
|
|
43
|
+
this.numberOfCells = await this.retrieveNumberOfCells()
|
|
44
|
+
this.deviceID = await this.retrieveDeviceID()
|
|
49
45
|
this.emit('numberOfCells', this.numberOfCells)
|
|
50
46
|
}
|
|
51
47
|
|