Skip to content

Conversation

@tkurki
Copy link
Member

@tkurki tkurki commented Nov 12, 2025

Add the ability to add preferredUnits field to
metadata and a unit conversion utility in server-api to convert values to preferred units in the data
browser.

TODO

  •  the unit conversion library belongs in @signalk/signalk-schema, not in the server API imo, just started here

Add the ability to add preferredUnits field to
metadata and a unit conversion utility in server-api
to convert values to preferred units in the data
browser.
@tkurki tkurki added the feature label Nov 12, 2025
@tkurki tkurki changed the title feature: preferredUnits DRAFT: feature: preferredUnits Nov 12, 2025
Remove the conversions and units that are
more formatting than unit conversion.
Remove duplication in longnames - define them only ones
in the units list.

Improve types to be more helpful & strict.
@panaaj
Copy link
Member

panaaj commented Nov 21, 2025

From a client perspective what is the pattern moving forward?
Would the preferred units be set on the server and the client consume the converted values available in the stream?
Would the conversion also be applied to API responses?

@tkurki
Copy link
Member Author

tkurki commented Nov 21, 2025

I am thinking that stream and api contents would remain the same, for principle of least surprise and least protocol level complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants