Ilker - Hey @Scott Bender , in pathmapper plugi...
Hey @Scott Bender , in pathmapper plugin, is there a way to publish the values within an object as a separate path?
For example,
navigation.attitude
has a value of {"yaw": X, "pitch": Y, "roll": Z}
. Is there a way to publish these as navigation.attitud.yaw
, navigation.attitude.pitch
, etc.?18 Replies
No. Pretty simple to do in node-red
Yeah, Node Red will be difficult for this user. Let me see if I ChatGPT can spit out a plugin doing this 🙂
Are you using node-red at all now?
I am using it but this is for a Saillogger user
you mean whether Saillogger uses it?
No, thought this was for your boat
how does this relate to Sailogger?
Saillogger can do detailed NMEA 2000 monitoring
A user is trying to monitor navigation.attitude
which is an object, which needs to be split out to its keys and values for monitoring
Wouln'd it make more sense to make Sailloger able to handle it?
It probably makes sense but I need to think about it, there is a lot of composite values out there and turning each into a value of its own can bloat the datamodal
There probably is a way to do it in a smart way but may be non-trivial
NMEA monitoring is generic, so needs to work across all fields
if your user is using node-red already, I can throw together a flow for them
If you have it handy, I can recommend it
they need all three values?
Yes

hmm. no units for the first two. Do you needd that?
Thanks! Units should not matter
Stupid question, how do you deploy this to Node Red?
Top right menu, Import
Can copy/paste or import a file
Perfect, worked like a charm, thank you