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
|
-
|
|
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
|
@@ -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}
|