itemir / signalk-ecowitt

If you use Ecowitt sensors with a GW1000 gateway, you can use this plugin to integrate their readings with your boat network. Requires Signal K server.
Apache License 2.0
4 stars 3 forks source link

Add support for gw2000+ws90 (Wittboy) parameters #3

Open s3krit opened 1 year ago

s3krit commented 1 year ago

This PR adds support for the parameters exposed by the GW2000 paired with a WS90 (together known as Wittboy). It also calculates the heat index ('feels like') if we have both temperature and humidity for any of the sensors.

Sadly I don't have another Ecowitt device to test with, so I can't verify this doesn't break other stuff but it's only an additive change.

Would be nice for signalk to known the unit used for rainfall, but I can't seem to understand how to get it to do that

fixes #2

s3krit commented 1 year ago

Realised that the GW2000 exposes 'tempf' and 'humidity' as measured by the device itself, and this wasn't being exposed properly. Missed it because I also have an external connected to channel 1 (in addition to the ws90). Updated the default channel 1 path to reflect this as well. Also added a heatIndex function. lmk if you don't want this in and I can remove it