OpenMarine
change ST1 navigaton.trip unit - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: change ST1 navigaton.trip unit (/showthread.php?tid=5418)

Pages: 1 2


change ST1 navigaton.trip unit - tjm - 2024-05-18

Firmware:
RPi4 4Giga
SK 2.7.2
IP 0.25.0

Hello,

ST1-interface generates path "navigation.trip" for SignalK, value being in meters.
InstrumentPanel shows this value, but only in meters.

Is there a way in the InstrumentPanel to change the unit value of "navigation.trip" to nautical miles.

with best regards to you all,
tjm


RE: change ST1 navigaton.trip unit - PaddyB - 2024-05-18

click the spanner icon top left, then edit the box.
[Image: lDGAGS9.png]

Have you tried the KIP dashboard? It's very good.


RE: change ST1 navigaton.trip unit - tjm - 2024-05-18

Thanks for your answer!

Yes I have tried the spanner, but it does not open the unit selection view at all for "ST1/navigation.trip".

The spanner/unit selection works ok for "ST1/navigation.log", this path unit I can change to nautical miles via the spanner as you have described. 

Cheers! 
tjm


RE: change ST1 navigaton.trip unit - tjm - 2024-05-23

Did some digging and found this page in github.com/SignalK/instrumentpanel:

http://demo.signalk.org/@signalk/instrumentpanel

That demo is able to show trip data in nautical miles, but it uses different path than my system, that is "navigation.trip.log"

In my system SignalK creates a path "navigation.trip" from the ST1 data, and my widget do not show option to change the unit (see picture).

The document signalk.pdf seems to differ the path "navigation.trip" and "navigation.trip.log" (the document defines also the path "navigation.trip.lastReset").

This begins to feel more and more like a bug...

dazed and confused,
tjm

   


RE: change ST1 navigaton.trip unit - PaddyB - 2024-05-24

(2024-05-23, 02:42 PM)tjm Wrote: Did some digging and found this page in github.com/SignalK/instrumentpanel:

http://demo.signalk.org/@signalk/instrumentpanel

That demo is able to show trip data in nautical miles, but it uses different path than my system, that is "navigation.trip.log"

In my system SignalK creates a path "navigation.trip" from the ST1 data, and my widget do not show option to change the unit (see picture).

The document signalk.pdf seems to differ the path "navigation.trip" and "navigation.trip.log" (the document defines also the path "navigation.trip.lastReset").

This begins to feel more and more like a bug...

dazed and confused,
tjm

It sounds more like the ST data isn't sending any meta data so signalk doesn't know anything about the units used. 

https://signalk.org/specification/1.7.0/doc/data_model_metadata.html

Try clicking the metadata switch in the data browser, if there is any it should show up there. 
If I send this by hand in the data fiddler 

[Image: 0Sgermd.png]

it appears in as metadata in the data browser >
[Image: SBQ4T2a.png]

And in the instrument panel.

Try pasting this into the server data fiddler then click send to server 

Code:
{
  "updates": [
    {
      "meta": [
        {
          "path": "navigation.trip",
          "value": {
            "units": "m",
            "description": "test",
            "displayName": "more test",
            "shortName": "log"
          }
        }
      ]
    }
  ]
}



RE: change ST1 navigaton.trip unit - tjm - 2024-05-24

Did as instructed, but no "navigation.trip" path/data in the Data Browser, no matter whether Meta Data is on or off.


RE: change ST1 navigaton.trip unit - PaddyB - 2024-05-24

then you aren't receiving navigation.trip, what are you getting in the data browser from ST?


RE: change ST1 navigaton.trip unit - tjm - 2024-05-24

(2024-05-24, 03:40 PM)PaddyB Wrote: then you aren't receiving navigation.trip, what are you getting in the data browser from ST?

Did the test on my home system, which is identical to that on my boat, except that I do not have a live Seatalk1-data at home.

Will do the test on my boat after a few days. 

Thanks for your effort, will get back.


RE: change ST1 navigaton.trip unit - PaddyB - 2024-05-24

(2024-05-24, 04:41 PM)tjm Wrote: Did the test on my home system, which is identical to that on my boat, except that I do not have a live Seatalk1-data at home.

Will do the test on my boat after a few days. 

Thanks for your effort, will get back.

You could have a look at the KIP dashboard as well, much better imho & you can set your own units if none are supplied in the metadata.

https://www.youtube.com/watch?v=uDas858rf6Y


RE: change ST1 navigaton.trip unit - tjm - 2024-05-24

Well, the thing with KIP is that it is just too complicated and i just do not like for example how it resizes items, that is making one smaller makes some other items bigger.