bt-sensors-plugin-sk 1.1.0-beta.2.2.1.2 → 1.1.0-beta.2.2.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bt-sensors-plugin-sk",
|
|
3
|
-
"version": "1.1.0-beta.2.2.1.
|
|
3
|
+
"version": "1.1.0-beta.2.2.1.3",
|
|
4
4
|
"description": "Bluetooth Sensors for Signalk -- support for Victron devices, RuuviTag, Xiaomi, ATC and Inkbird, Ultrasonic wind meters, Mopeka tank readers, Renogy Battery and Solar Controllers (new), Aranet4 environment sensors, and Govee GVH51xx temp sensors",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -32,7 +32,7 @@ class UltrasonicWindMeter extends BTSensor{
|
|
|
32
32
|
this.addMetadatum("batt","ratio","Battery strength",
|
|
33
33
|
(buffer)=>{return (buffer.readUInt8())/100})
|
|
34
34
|
this.addMetadatum("awa","rad","Apparent Wind Angle",
|
|
35
|
-
(buffer)=>{return (buffer.readInt16LE())/
|
|
35
|
+
(buffer)=>{return ((buffer.readInt16LE())/100)*(Math.PI/180)}
|
|
36
36
|
)
|
|
37
37
|
this.addMetadatum("aws","m/s","Apparent Wind Speed",
|
|
38
38
|
(buffer)=>{return (buffer.readInt16LE()/100)*.514444} //convert knots to m/s
|