SignalK / node-red-embedded

Node red nodes for use with the signalk-node-red plugin
Apache License 2.0
12 stars 2 forks source link

Retrieve stale/out-dated data #35

Closed ryansabin closed 4 months ago

ryansabin commented 4 months ago

I need to retrieve some data from the defaults plugin. Like design.draft and design.length. These data points are only updated on restart so the Subscribe node will not receive the data. Is there any way to query the data using Signal K Node Red plugins.

sbender9 commented 4 months ago

let app = global.get('app')

let sog = app.getSelfPath('navigation.speedOverGround.value')

ryansabin commented 4 months ago

That works. Thanks for the info. It would be nice to have a node that returns this data.

Thanks!