SK
Signal K11mo ago
Bram

Bram - Is it possible to show two vallues in on...

Is it possible to show two values in one cell? I would like to have vhfdata.nearest.0.name (a string) and vhfdata.nearest.0.channel in one cell (and if possible also vhfdata.nearest.0.distance to which i need to add a metric, like m)? I looked at the Generic String type but if i understand it correctly it requires a fixed title (instead of data from a sk path).
29 Replies
Bram
BramOP11mo ago
Something like this (from Freeboard)
No description
Bram
BramOP11mo ago
This is what the data looks like
No description
Scott Bender
Scott Bender11mo ago
Ok. So channel is a string. The Generic String gauge should work for those. It does get its value from a sk path There’s nothing that shows two values You could use two gauges and turn off the borders
Bram
BramOP11mo ago
Thx will give that a try. Why would i turn the border off? Do you mean: one larger cell with borders, and than one smaller in that larger cell which has the title?
Scott Bender
Scott Bender11mo ago
Yeah, you could do that. Or if there are other gauges around them, then you don’t need any borders.
Bram
BramOP11mo ago
Cool, wasn't aware this could be customized this far. Is there a sort of "repository" to share layouts?
Scott Bender
Scott Bender11mo ago
There isn’t, but I should probably create one…
Bram
BramOP11mo ago
The nearest property is very different in the data browser than in the gauge (-1325 vs -76710). Is there a conversion taking place? sorry, i see, have to select the right field Can i add something at the end (an m of meters in this case?)
Scott Bender
Scott Bender11mo ago
I don’t see that in the data browser screenshot?
Bram
BramOP11mo ago
No description
Bram
BramOP11mo ago
No its not specified in the data. I also don't think there is meta data attached to that field. So was wondering if i could add it.
Scott Bender
Scott Bender11mo ago
You can add it in the Data Browser. (Make sure you have the latest version of the server) Which gauge did you use for that?
Bram
BramOP11mo ago
Generic Number (but Generic String would also work)
Scott Bender
Scott Bender11mo ago
Try the DTW gauge, it expects the data to be in meters. And it will show an m And make sure you have your distance units preference set There should not no be any conversion with the Generic Number gauge
Bram
BramOP11mo ago
Ah right. It doesn't work. Maybe because the number is provided as a negative?
Scott Bender
Scott Bender11mo ago
Hmm. I’ll have to try that out here…
Bram
BramOP11mo ago
Otherwise i might check if there is a plugin that allows to make some transformations to the data.
Scott Bender
Scott Bender11mo ago
You could definitely use node-red for that
Bram
BramOP11mo ago
Can you also add meta data with the data browser? I now see that i can edit existing fields, but not all fields show up. Ah yes node-red would be handy
Scott Bender
Scott Bender11mo ago
But I’ll fix WilhelmSK if the negative is an issue
Bram
BramOP11mo ago
No description
Scott Bender
Scott Bender11mo ago
There’s a little plus button to add new fields Click the pencil
Bram
BramOP11mo ago
It looks like only .name and .url fields show up. It only changes .name not .distance for example.
Scott Bender
Scott Bender11mo ago
There’s a fix for that in the very latest server version
Bram
BramOP11mo ago
ah, i updated yesterday, but now see that there is a minor newer release, will update.
Scott Bender
Scott Bender11mo ago
I won’t have time to look at this until tomorrow. If you want to send me your Apple ID, I can add you to TestFlight so you can try it out.
Bram
BramOP11mo ago
Yes, that would be nice (i am not in a hurry though). My apple id is [email protected] actually, it is another one i think [email protected] I was able to add the unit, but it still doesn't come up. I tried sending some fake data with fiddler. But i think i am not sending the right object to it. Just sending something like
{
"vhfdata.nearest.0.distance": 123
}
{
"vhfdata.nearest.0.distance": 123
}
won't do it (also says its an unknown json format). Guess i need to add a ship id or so.
Scott Bender
Scott Bender11mo ago
Try the XTE gauge. It works fine with negative numbers
Bram
BramOP11mo ago
Great works like a charm

Did you find this page helpful?