SignalK / instrumentpanel

Instrument panel implemented as a grid with draggable & resizable components
Apache License 2.0
44 stars 30 forks source link

Add conversion for inHg #206

Closed tafischer closed 2 years ago

tafischer commented 2 years ago

Would it be possible to add inches of mercury to .pressure which is the standard measurement in the US?

cmotelet commented 2 years ago

Yes, I will add this conversion in the next release.

pa1pdr commented 2 years ago

Can I ask for a Joule to Wh conversion (for my battery capacities)? & whilst you're at it Coulomb -> Ah?

Greatly appreciated!

cmotelet commented 2 years ago

@tafischer & @pa1pdr done in release 0.22.1

tafischer commented 2 years ago

@cmotelet - Hey hate to ask, but can you adjust the inHg to 2 decimal points? I should have mentioned in the request, but we use two decimals. ie 29.92

Thanks!

cmotelet commented 2 years ago

@tafischer , No problem for the request, this is the place for it ;-) It's true that I checked the conversion but I didn't ask myself if the precision of the display made sense. The actual default rule for display numerical value is:

<10 => 2 decimal
>10 => one decimal
>50 => zero decimal

I will look at how to handle this particular case

tkurki commented 2 years ago

Done i think