This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieving stale signal k data
#1
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.
Reply
#2
I am not aware of an easy way to do that. Please add an issue about this at https://github.com/SignalK/node-red-embedded/issues/new.

PS. The data is not really stale, just not available via subscription. And I believe you are referring to defaults.json, not to any plugin.
Reply
#3
Thanks for the response. I will add an issue as requested. Not sure if it is defaults.json. I only know in Signal K's data browser it has a source named defaults.
Reply
#4
Got a fast response on github.

It seems the only way is to use a function with the following code.

let app = global.get('app')
let draft = app.getSelfPath('design.draft.value')
msg.draft = draft
return msg;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)