bt-sensors-plugin-sk 1.3.6-3 → 1.3.6-beta5
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 +22 -16
- package/README.md +7 -0
- package/package.json +1 -1
- package/plugin_defaults.json +1 -2
- package/public/124.js +1 -0
- package/public/159.js +1 -1
- package/public/540.js +1 -1
- package/public/598.js +8 -0
- package/public/{834.js.LICENSE.txt → 598.js.LICENSE.txt} +2 -0
- package/public/images/bm6.webp +0 -0
- package/public/main.js +1 -1
- package/public/remoteEntry.js +1 -1
- package/sensor_classes/BMBatteryMonitor.js +221 -0
- package/sensor_classes/Beacon/AbstractBeaconMixin.js +27 -9
- package/sensor_classes/FeasyComBeacon.js +1 -1
- package/sensor_classes/GobiusCTankMeter.js +15 -0
- package/sensor_classes/JBDBMS.js +357 -220
- package/sensor_classes/TestData/Jikong.json +36 -0
- package/sensor_classes/Victron/VictronSensor.js +7 -1
- package/sensor_classes/testxiaomi.js +45 -0
- package/src/components/BeaconRenderer.js +261 -0
- package/temp.html +0 -0
- package/testxiaomi.js +27 -0
- package/.vscode/settings.json +0 -2
- package/Screenshot 2025-06-12 at 9.33.57/342/200/257AM.png +0 -0
- package/bt-sensors-plugin-sk copy.json +0 -170
- package/bt-sensors-plugin-sk.json.bak +0 -121
- package/development/TestData/Jikong.json +0 -14
- package/diff.txt +0 -2860
- package/public/143.js +0 -1
- package/public/834.js +0 -14
- package/test.txt +0 -805
- package/testGATT.js +0 -24
- package/vsl_patch_17_06_25.patch +0 -13
package/testGATT.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const {createBluetooth} = require('@naugehyde/node-ble');
|
|
2
|
-
|
|
3
|
-
const {bluetooth, destroy} = createBluetooth();
|
|
4
|
-
var cls=require("./sensor_classes/XiaomiMiBeacon.js");
|
|
5
|
-
|
|
6
|
-
const adapter = await bluetooth.getAdapter("hci0");
|
|
7
|
-
await adapter.startDiscovery();
|
|
8
|
-
var device = await adapter.waitDevice("A4:C1:38:3E:7E:94",60000);
|
|
9
|
-
|
|
10
|
-
var continueTesting=true;
|
|
11
|
-
var trial=1
|
|
12
|
-
function sleep(ms) {
|
|
13
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
14
|
-
}
|
|
15
|
-
while(continueTesting) {
|
|
16
|
-
console.log("trial: "+trial++);
|
|
17
|
-
await device.connect();
|
|
18
|
-
console.log("\tconnected");
|
|
19
|
-
|
|
20
|
-
await device.disconnect();
|
|
21
|
-
console.log("\tdisconnected");
|
|
22
|
-
await sleep(2000)
|
|
23
|
-
|
|
24
|
-
}
|
package/vsl_patch_17_06_25.patch
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
diff --git a/sensor_classes/VictronSmartLithium.js b/sensor_classes/VictronSmartLithium.js
|
|
2
|
-
index 0ed70ad..2988374 100644
|
|
3
|
-
--- a/sensor_classes/VictronSmartLithium.js
|
|
4
|
-
+++ b/sensor_classes/VictronSmartLithium.js
|
|
5
|
-
@@ -50,7 +50,7 @@ class VictronSmartLithium extends VictronSensor{
|
|
6
|
-
(buff)=>{return buff.readUInt16LE(4)})
|
|
7
|
-
.default="electrical.batteries.{batteryID}.errors"
|
|
8
|
-
|
|
9
|
-
- for (let i=0;i++;i<8){
|
|
10
|
-
+ for (let i=0;i<8; i++){
|
|
11
|
-
this.addMetadatum(`cell${i+1}Voltage`,'V', `cell ${i+1} voltage`)
|
|
12
|
-
.default=`electrical.batteries.{batteryID}.cell${i+1}.voltage`
|
|
13
|
-
}
|