Boatly / signalk-speed-wind-averaging

SignalK plugin to calculate average boat speed and wind speed over a defined period.
0 stars 2 forks source link

Getting "illegal value in delta" messages #3

Open jpcavanagh opened 3 years ago

jpcavanagh commented 3 years ago

when enabled I get errors in the log (see below). The boat is stopped on the berth to navigation.speedOverGround = 0

I tried with two different wind paths, both are the same value as the boat is stopped. wind.speedApparent is coming off the nmea2000 bus via an Actisense, and wind.speedOverGround is coming from plugin "derived-data"

navigation.speedOverGround environment.wind.speedOverGround

Apr 13 02:07:56 Illegal value in delta:{"value":0.00011251220341199609} Apr 13 02:07:57 Illegal value in delta:{"value":0.00012907328969381449} Apr 13 02:07:59 Illegal value in delta:{"value":0.00014688077996216026} Apr 13 02:08:00 Illegal value in delta:{"value":0.0001632273337073802} Apr 13 02:08:01 Illegal value in delta:{"value":0.00018249264093851282} Apr 13 02:08:02 Illegal value in delta:{"value":0.00020029701182867841}

environment.wind.speedApparent

Apr 13 02:13:38 Illegal value in delta:{"value":0.0002621515101721691} Apr 13 02:13:39 Illegal value in delta:{"value":0.0002621515101721691} Apr 13 02:13:40 Illegal value in delta:{"value":0.0002621515101721691} Apr 13 02:13:41 Illegal value in delta:{"value":0.00027089889383206023} Apr 13 02:13:43 Illegal value in delta:{"value":0.00027089889383206023}

RhumbRunner commented 2 years ago

Not sure but it looks like I was running into the same issue. What I found was that the Plugin was not reading all the paths from the plugin-configuration-data. I hard coded the path for the missing data in where the path variable was defined and commented out where that path was set from the configuration-data. Cleared that "Illegal value in delta" messages in the log.

jpcavanagh commented 2 years ago

Can you send me the code?

RhumbRunner commented 2 years ago

Here is the entire folder that includes the file I modified. Path to it is /dist/index.js, I hard coded the path that wasn't working. I will include the plugin Config file as well. Hope this helps solve the problem. signalk-speed-wind-averaging.tar https://drive.google.com/file/d/1MqiPdbHTXFF40K3z_yh8ZkWjOLqVwYJ0/view?usp=drive_web

Thanks, Chuck Bowers Rhumb Runner J/29 CRA Rear Commodore 619-905-1398 Cell

On Sat, Jul 16, 2022 at 5:33 PM jpcavanagh @.***> wrote:

Can you send me the code?

— Reply to this email directly, view it on GitHub https://github.com/Boatly/signalk-speed-wind-averaging/issues/3#issuecomment-1186352228, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSKYDZXHSCY5FNG3DPAMILVUNIDXANCNFSM422K6PPA . You are receiving this because you commented.Message ID: @.***>