barnaclebill - Can anyone help me configure a n...
Can anyone help me configure a node-red flow? I am measuring a fuel tank sensor, which sends a percentage, but I can't figure out how to configure the pathvalue node.



25 Replies
Export and paste your nodes here, then I can help.
Output from "smooth" is a numeric value...I'm stuck trying to figure out how to translate that payload into the value to be submitted at the path I specify.
did youi give me all your flows?
Yes. I only have one.
so, I'm not sure I understand what the issues is
you just to convert to a ratio?
You can use a change node for that
If I connect "smooth" to "fuel tank" and deploy, I get an error "The workspace contains some nodes that are not properly configured:"
it does look like the send-path node is not using the entered path
and you do need to convert to a ratio, so add a change node like this

(of course, change the math and path)
let me make a real example for you...
OK so I divided/100 in the "ads-to-fuel-level" node, so I should have the ratio correct now. But (I realize this is kind of idiotic)...I can't figure out how to get Rules in the UI.
Also note the proper path for a tank level in my example)
(This is my first day with node-red 🙂
delete the path you entered in the send-path-value node (there does look like I have a bug there)
and use a change node to set the topic to the path you want to send
which should probably be
tanks.fuel.0.currentLevel
I added a change node to set the topic, and the payload is the ratio, but I'm still getting the same error on deploy, so I must be doing something wrong.

Try deleting and recreating that send-path-value node
Don’t change anything in it
And I think if you hover over that red triangle, it will tell you what’s wrong
Success!

Now I just need to figure out why SK says I have 3% fuel when there's almost half a tank :- )
Thanks for your help.
That’s what you are sending
Yes. My fuel sender is quite non-linear.

FYI, I published a new version of the plugin. You can now enter the path on that node instead of sending as the topic
Tried the signalk calibration app for that?
Great, thanks!