But, if I say app.getSelfPath('my.sample.path') in a function that handles the delta update -- this return an old value of the 'my.sample.path', not the one by subscription.What am I doing wrong?
What are you trying to do?
The GaladrielMap can dynamically display the gpx file currently being recorded. There is a server-side procedure for this (the gpx may be very large). I also have a plugin, that logged track to gpx.I want to switch track recording on and off from server side - the client does not need to know anything about how the track is recorded.It was all very easy to do on the PHP, but there is always something wrong with the SignalK environment.
I want to switch track recording on and off from server side
If the plugins work so closely together should they be just one plugin?
If plugin A sends delta for custom path, for example /vessels/self/track/recording/state and plugin B has subscribed for that path why would you not use the value you receive in your delta handler and instead want to retrieve the data with app.getSelfPath?
GaladrielMap readme says "Because SignalK not have a track logging tool, this possibility is missing.". This it not correct - you can record track with at least @signalk/tracks-plugin and signalk-to-influxdb plugin.
I thought we had some existing plugins for gpx handling, but there's just the ancient @signalk/simple-gpx that probably nobody uses.
I have some work in progress OpenAPI description for the tracks api around. The idea is that we would add the tracks api definition to the Signal K spec, so that clients & various track store plugins could work together.
Then there's https://github.com/tkurki/signalk-grafana, that includes a Grafana panel for rendering track information. This is a little different, as it uses a generic history data retrieval API. My plan for that is to add plotting data on the track, like depth, boat speed, wind speed, engine temp - whatever you feel like.
The current implementation calls delta handlers first and then the handler that updates the full model
I just implemented a FIFO pipe for inter-plugin communication.
--
You received this message because you are subscribed to the Google Groups "Signal K" group.
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/signalk/ac39d4cd-27d4-46dd-abed-b84fb59a4272n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Signal K" group.
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/signalk/214f2cdf-0cbb-44d3-99f5-780fa5111f60n%40googlegroups.com.
You can avoid this by calling your delta handler with setImmediate
I thought we had some existing plugins for gpx handling,