This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change ST1 navigaton.trip unit
#1
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
Reply
#2
click the spanner icon top left, then edit the box.
[Image: lDGAGS9.png]

Have you tried the KIP dashboard? It's very good.
Reply
#3
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
Reply
#4
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

   
Reply
#5
(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/...adata.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"
          }
        }
      ]
    }
  ]
}
Reply
#6
Did as instructed, but no "navigation.trip" path/data in the Data Browser, no matter whether Meta Data is on or off.


Attached Files Image(s)
   
Reply
#7
then you aren't receiving navigation.trip, what are you getting in the data browser from ST?
Reply
#8
(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.
Reply
#9
(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
Reply
#10
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)