bt-sensors-plugin-sk 1.1.0-beta.2.1 → 1.1.0-beta.2.1.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.
package/README.md CHANGED
@@ -34,7 +34,9 @@ The plugin is currently available in the Signalk Appstore. <br>
34
34
 
35
35
  ### NPM
36
36
 
37
- See https://www.npmjs.com/package/bt-sensors-plugin-sk/v/1.1.0-beta.2 for more information.
37
+ Go to you signalk home (usually ~/.signalk) and run:
38
+
39
+ npm i bt-sensors-plugin-sk@1.1.0-beta.2.1
38
40
 
39
41
  ### Linux
40
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-sensors-plugin-sk",
3
- "version": "1.1.0-beta.2.1",
3
+ "version": "1.1.0-beta.2.1.1",
4
4
  "description": "Bluetooth Sensors for Signalk -- support for Victron devices, RuuviTag, Xiaomi, ATC and Inkbird",
5
5
  "main": "index.js",
6
6
  "dependencies": {
@@ -40,10 +40,10 @@ class RuuviTag extends BTSensor{
40
40
  **/
41
41
  _initModeV5(){
42
42
  this.addMetadatum("temp","K","temperature in Kelvin",
43
- (buffer)=>{ return (buffer.readInt16BE(1)*.005)+273.15}
43
+ (buffer)=>{ return (buffer.readInt16BE(1)*.005).toFixed(3)+273.15}
44
44
  )
45
45
  this.addMetadatum("humidity","ratio","humidity",
46
- (buffer)=>{ return (buffer.readUInt16BE(3)*.0025)/100}
46
+ (buffer)=>{ return ((buffer.readUInt16BE(3)*.0025)/100).toFixed(2)}
47
47
  )
48
48
  this.addMetadatum("pressure","Pa","atmospheric pressure",
49
49
  (buffer)=>{ return buffer.readUInt16BE(5)+50000}
@@ -25,7 +25,7 @@ const int24 = require('int24')
25
25
  class VictronACCharger extends VictronSensor{
26
26
 
27
27
  static async identify(device){
28
- return await this.identifyMode(device, 0x0A)
28
+ return await this.identifyMode(device, 0x08)
29
29
  }
30
30
 
31
31
  async init(){