Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Sentence format adjustments #67

Open
KonradStreit opened this issue Feb 7, 2021 · 3 comments
Open

Request: Sentence format adjustments #67

KonradStreit opened this issue Feb 7, 2021 · 3 comments

Comments

@KonradStreit
Copy link

I am trying to display data from the SignalK server running on a pi on my old stowe Dataline instruments, with Dataline being an early take on NMEA0183 as I understand. They are receiving the data, however are expecting a slightly different format, i.e. the VHW sentence from this plugin outputs XXX.X, M for the magnetic heading while the instruments expect XXX, M without a decimal. At the moment I am getting values on the screen, but apart from the STW they are alll wrong and some of them going all over the place each time the display is updated.
Is there a way I am not aware of to adjust the format? Otherwise it would be a great feature.
I would love to help as much as I can but have no experience at all with javascript.

@KonradStreit
Copy link
Author

I believe I have just found out how I can do it for my installation by changing the .toFixed(x) values according to the stowe manual in each sentence's .js file, but this might be helpful for other people as well. Not sure how complicated these additional variable would be to implement, I am thinking maybe similar input fields like the throttle per sentence?

@tkurki
Copy link
Member

tkurki commented Feb 7, 2021

I think an option to round all angles to the nearest degree would make sense. Want to give it a try? Add the option to the schema, and then it needs to be passed to the converter and handled there.

@KonradStreit
Copy link
Author

I am trying to understand how this whole thing works, as mentioned, I have not done any javascript so far. So right now I am not even sure how I would test any changes I make, is there any guide you could point me to that explains how I could set up my SignalK-Server to install a plugin that I have changed locally? Or at least how to test wether the code I have written works on its own? So far I have only used the GUI on my openplotter setup which lets me install plugins from the appstore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants