OpenMarine

Full Version: Tool that allows you to generate a signalk value by calculating it from other value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
HI,
I think it is useful to add a tool that allows you to generate a signalk value by calculating it from other signalk values. Example generating electric power by multiplying current and volt. Or generate a differential value of 2 ADS1115 analog inputs, simply by their difference.
(2017-05-01, 09:49 PM)kste Wrote: [ -> ]HI,
I think it is useful to add a tool that allows you to generate a signalk value by calculating it from other signalk values. Example generating electric power by multiplying current and volt. Or generate a differential value of 2 ADS1115 analog inputs, simply by their difference.

That might be a job for node-red if there's a huge list to do already with openplotter code - anyone written a node- red flow to send signalk from node-red to the signalk server?
I have already a working solution for ADS 1115, in will be implemented in some form or another in later versions. You can review the thread about this in this very forum.
You might also pick up some information on my pages about using the Pi as a yacht server, https://sites.google.com/site/olewsaa/ya...-raspberry

I have also implemented a battery monitor, but this is not suggested in openplotter yet. I measure the current with a timestamp (every 5 sec or so), calculate the Ampere seconds and subtract them for the battery account and display a percentage. As most batteries are measured in Ah one do not really need the voltage for the battery monitor, but with the volgate at hand one might use Wh as the unit.

Ole