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

Source priority connections in file logs #1885

Open
petsicola opened this issue Feb 14, 2025 · 6 comments
Open

Source priority connections in file logs #1885

petsicola opened this issue Feb 14, 2025 · 6 comments

Comments

@petsicola
Copy link

petsicola commented Feb 14, 2025

I have created a data log.

Image

In the data log there are 0 values. and I want to "delete it"

Image

But in source priority settings I can't assign the file connection.
Image

That's the way to set prioritys for a time out value? How I can make it?

@tkurki
Copy link
Member

tkurki commented Feb 14, 2025

I guess you have created a data connection named file? See Data Connections. Source priorities has nothing to do with this.

@petsicola
Copy link
Author

petsicola commented Feb 14, 2025

Yes, I have established a connection, and on my boat, I don’t use the speed-through-water data from the Tridata. I have it installed, but I usually don’t rely on it. As a result, this path provides inaccurate values.

To address this, I have created equivalent values calculated using the SOG (Speed Over Ground), and I want to ignore the data from this path.

and use the node red value calculated. I want to put a 100000 ms priority to use only the calculated value?

How I can make this with Signalk?

Image

@tkurki
Copy link
Member

tkurki commented Feb 14, 2025

If you want to completely block some data and you know node red using https://github.com/SignalK/node-red-embedded?tab=readme-ov-file#signalk-input-handler should be simple. Pass all the normal data to the next node and ignore the data you don’t want.

@petsicola
Copy link
Author

petsicola commented Feb 15, 2025

I'm not sure with your answer. I can´t change the priority of a path when I'm using a log file. I can use node red or program a plugin or make nothing... but... I can´t change the priority of a path if it comes from a log file... is this true?

I know how to make it in node red but I'm reporting a possible bug.

@tkurki
Copy link
Member

tkurki commented Feb 19, 2025

Works on my machine:

Image Image

Even if the UI won't show the choice you should be able add the source reference manually and even if that fails edit settings.json manually to add the priorities:

Image

@petsicola
Copy link
Author

petsicola commented Feb 21, 2025

I did a fresh installation of the SignalK server, and now I can assign priority to data sources. However, I am facing a new problem: Node-RED does not inject data when using a raw file log. It does work correctly when the file is in NMEA0183 format.

I am sending an example of the flow.

Image

[{"id":"7a66b3f9bf0ffa2a","type":"function","z":"014aa69304b04bc8","name":"function 17","func":"msg.topic = "navigation.speedThroughWater";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":550,"y":160,"wires":[["47e11d59438e020a"]]},{"id":"47e11d59438e020a","type":"signalk-send-pathvalue","z":"014aa69304b04bc8","name":"STW","source":"","meta":"","x":1090,"y":160,"wires":[]},{"id":"0afcdc28b468f2ac","type":"signalk-subscribe","z":"014aa69304b04bc8","name":"SOG","mode":"sendAll","flatten":true,"context":"vessels.self","path":"navigation.speedOverGround","source":"","period":1000,"x":90,"y":160,"wires":[["7a66b3f9bf0ffa2a"]]}]

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