htool / signalk-instrument-display-plugin

Configurable instrument display
0 stars 1 forks source link

converting from ms to kts etc #2

Open edtacey opened 1 year ago

edtacey commented 1 year ago

Fantastic plugin/ I am feeding it data from my Polars etc from another plugin however these numbers are in m/s not knots is there a way to convert on the fly in the ux or do I need remap them and inside singlek then sent them as knot based speeds

htool commented 1 year ago

No need. It assumes SignalK's internal m/s unit.

edtacey commented 1 year ago

So is there a trick to this I am presenting polars to the interface in ms but need to surface the ui in knts

On Sun, 7 May 2023 at 4:59 pm, Hans @.***> wrote:

No need. It assumes SignalK's internal m/s unit.

— Reply to this email directly, view it on GitHub https://github.com/htool/signalk-instrument-display-plugin/issues/2#issuecomment-1537336853, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7NIPGZQWQ4G6DAFZN5NC3XE5B37ANCNFSM6AAAAAAXYQT34E . You are receiving this because you authored the thread.Message ID: @.***>

htool commented 1 year ago

Happens by itself as long as you're using the right paths in signalk (from https://signalk.org/specification/1.5.0/doc/vesselsBranch.html) or ensure the get a unit.

htool commented 1 year ago

My bad, it wasn't. But does now if you set unit to 'kn' and it sees 'm/s', it will make it 'kn'.

edtacey commented 1 year ago

legend thanks I take some heart that I was going to make the change there as well.

Great plugin btw - have you had much experience in screen hardware choice - or is the design more focused on phone and tablet as a use case.

On Mon, May 8, 2023 at 1:14 AM Hans @.***> wrote:

My bad, it wasn't. But does now if you set unit to 'kn' and it sees 'm/s', it will make it 'kn'.

— Reply to this email directly, view it on GitHub https://github.com/htool/signalk-instrument-display-plugin/issues/2#issuecomment-1537465086, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7NIPGUFAG2MFYTMBD5ATDXE635TANCNFSM6AAAAAAXYQT34E . You are receiving this because you authored the thread.Message ID: @.***>

htool commented 1 year ago

I bought this one:

https://www.waveshare.com/11.9inch-hdmi-lcd.htm

And wanted the same look as the other B&G instruments. I figured to make it flexible enough to make use on other hardware easier.

The tiles do require a certain aspect ratio, so tile layout and screen size need some alignment.

The layout css files do this.

Not super easy, but doable I'd say. Once it works it works. Setup may take some tinkering, but can be done at home.

htool commented 1 year ago

But a large waterproof phone would probably work just as well. Something with a magnetic holder with wireless charging would be perfect.

htool commented 1 year ago

But a large waterproof phone would probably work just as well. Something with a magnetic holder with wireless charging would be perfect.

edtacey commented 1 year ago

Its for a sports boat so on deck and wet As such looking for fully water proof solution

Have some options but need low power will advise of scusess

More clues coming

On Mon, 8 May 2023 at 4:15 pm, Hans @.***> wrote:

But a large waterproof phone would probably work just as well. Something with a magnetic holder with wireless charging would be perfect.

— Reply to this email directly, view it on GitHub https://github.com/htool/signalk-instrument-display-plugin/issues/2#issuecomment-1537812555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7NIPE6MZPKUE3RPCWIL4DXFCFQFANCNFSM6AAAAAAXYQT34E . You are receiving this because you authored the thread.Message ID: @.***>