New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depth Source #5
Comments
I have the same problem. |
I don't have this issue anymore, so I assume it's been fixed. However, the tide predictions are all wrong. I feel as this happened with the last update, but I'm unsure. |
Strange, I just installed it this morning for the first time and it doesn't work with Do you have anything in your |
Digging into this a bit more, looks like the updates coming from NMEA and derived-data are slightly different: NMEA 2000: derived-data: Source key is missing in derived-data, wondering if it is what messes up things when combined with the filter:
|
No “Types” specified. I’m on a new installation now, as I’m between boats - getting set up for the next one. I don’t yet have any NMEA data yet, but I am simulating the whole set up and it doesn’t work again. Since depth.belowSurface is the default value and that value will always be a calculated value as an offset of depth.belowTransducer, it shouldn’t require those types to function properly. |
My enviroment.depth.belowSurface is calculated through derived-data. If I use this as the data source for Tide_Watch, I get an error in the log and it doesn't work. If I switch to environment.depth.belowTransducer (an actual value from the N2K network), the TypeError goes away. Obviously using the "belowSurface", even though it's a calculated value, would be more accurate. Here's the log:
Oct 08 09:53:19 TypeError: Cannot read property 'type' of undefined at evtDepthVal.evtDepth.filter.dbs (/home/pi/.signalk/node_modules/signalk-tide-watch/index.js:54:63) at Next.filter (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:926:10) at Dispatcher._handleEvent (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:2057:17) at Dispatcher.handleEvent (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:1265:17) at Object.sink (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:242:17) at Dispatcher.pushToSubscriptions (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:1223:23) at Dispatcher.pushIt (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:1245:10) at Object.inTransaction (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:430:16) at Dispatcher.push (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:1214:24) at Dispatcher.handleEvent (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:1267:17) at Bus.sink (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:242:17) at Bus.push (/usr/lib/node_modules/signalk-server/node_modules/baconjs/dist/Bacon.js:2371:21) at StreamBundle.push (/usr/lib/node_modules/signalk-server/lib/streambundle.js:92:31) at paths.forEach.path (/usr/lib/node_modules/signalk-server/lib/streambundle.js:46:34) at Array.forEach () at StreamBundle.update.values.forEach.pathValue (/usr/lib/node_modules/signalk-server/lib/streambundle.js:45:31) at Array.forEach () at StreamBundle.delta.updates.forEach.update (/usr/lib/node_modules/signalk-server/lib/streambundle.js:35:35) at Array.forEach () at StreamBundle.pushDelta (/usr/lib/node_modules/signalk-server/lib/streambundle.js:33:27) at FullSignalK.emit (events.js:203:15) at FullSignalK.addDelta (/usr/lib/node_modules/signalk-server/node_modules/@signalk/signalk-schema/dist/fullsignalk.js:52:8)
The text was updated successfully, but these errors were encountered: