Signal K

SK

Signal K

Signal K is an ecosystem for free and open source universal marine data exchange and software.

Join

questions

announcements

server

specification

plugins-and-webapps

sensors

nmea2000

node-red

wilhelmsk

sensesp

Koenraad de Haas - I tried the NMEA 2000 Debugg...

I tried the NMEA 2000 Debugging Utility webapp: seems usefull (if it would work ;)) Added some PGN's to the filter list but these PGN's still pop up in the list. Tried to flip the yes/no switch but nothing happens. Is this filter working? Are the red items supposed to be unrecognized PGN's? I'v got eg PGN 126720 popping up both in red and in black....

HansT - @Teppo Kurki Asking here for others to ...

@Teppo Kurki Asking here for others to read/see. On GPS rollover fix, my current approach is in n2k-signalk/pgns/129029.js. The downside is that this means it will do it for any source and always. This breaks the test cases and e.g. prevents running old n2k captures through it, as it will correct them as well. Is it possible to make it a plugin and correct the value as it comes it, that way possibly making a filter for the source id, or at least easily turning it on/off when needed? Like signalk-calibration. But it's unclear to me if this approach will avoid the wrong date to be seen by the system or any other plugin (like set-system-time)....

Tony - Is there a plugin to keep state after re...

Is there a plugin to keep state after restarting Signalk? I would really like to have the last known value repopulated instead of losing state on everything. Not all of the paths are updated on short intervals. In some cases maybe one or two times per day. Repopulating the values, source, timestamp when I need to restart or when I shut down would be awesome

Aswin - Finishing my advanced wind plugin.My a...

Finishing my advanced wind plugin. My advanced wind plugin is functionally complete and stable and I am cleaning up the code. There are however some questions and design considerations that still bother me. 1) I have implemented an express router to provide the webapp with data. Registering with the router has to be done in the module, where as the data it reports on is maintained in the start function. To give the router get methods access to this data I had to create the data outside the start method in the module. (I hope I am clear about this, I grasp for the right terminology sometimes. Maybe look at how and where I instantiate the PolarDelta objects in https://github.com/Asw1n/advancedwind/blob/main/index.js) . As a result my data lives well behond the scope of the start function and is still there when the plugin is disabled. Is there a better way to do this? Preferable I want my objects and data only to be there when the plugin is active. 2) I get the apparent wind deltas using the registerDeltaInputHandler function to be able to replace the original values with the corrected apparent wind values. I do not unregister as I don't know how. In combination with the situation described is question 1 the plugin still catches even when the plugin is not active. Is there a way to unregister? 3) I created classes to deal with delta's (https://github.com/Asw1n/advancedwind/blob/main/pluginUtils.js). Each instance individually subscribes to a single delta Also each instance will update its delta associated delta individually. I noticed that other plugins (like derived data) update several delta's in one go leading to less traffic. Is my method ok or are there drawbacks and should it be changed?...

AdrianP - Do you have "allow read only access" ...

Do you have "allow read only access" set in security -> settings?

Aswin - Webapp only getting data when I am logg...

Webapp only getting data when I am logged in to the server. My webapp gets a 401 response on a get request when I am not logged in to the server. Amazingly (to me at least) it does work when I embed my plugin in a @tommy/kip page, even when I am not logged in to the server. I read about Authentication and Session Management in the documentation, but that is way over my head. Is there a simple explanation of what is going on and a simple example on how to deal with this?...

Raffaele Montella - I'm writing a plugin to man...

I'm writing a plugin to manage MOBs. Now it registers to vessels.self.notifications.mob, as receive the notification with state: "emergency", it reads data.position and saves it in vessels.self.navigation.mob.position alongside the time of the event in vessels.self.navigation.mob.time. Then it registers to vessels.self.navigation.position, each update it computes: vessels.self.navigation.mob.distance, vessels.self.navigation.mob.headingTrue, vessels.self.navigation.mob.elapsed (in seconds). Opti...

Владимир Калачихин - Is there a way to determin...

Is there a way to determine the grants of the user opening the webapp?

barnaclebill - Question for @Aswin, although it...

Question for @Aswin, although it might be of general interest: how does your plugin correct for mast height? Are you assuming some wind gradient as the mast gets taller? What is the impact of roll and pitch on wind? Are you calculating that if for example my boat pitches forward at 1m/s (which I know isn't how we calculate pitch but just trying to simplify), you subtract 1m/s from wind speed's forward vector? How about upwash? How does one differentiate leeway calculation from current? If your code is public, I would love to poke around....

petsi - whats new in signalk-polar-performance-...

whats new in signalk-polar-performance-plugin 0.0.54

Greg Young - @Ilker signalk-windy pluginupda...

@Ilker signalk-windy plugin updated the plugin today - all good. Question: there are two fields in the PI config .. “provider” .. “website” ...

Aswin - How to handle duplicate paths? My advan...

How to handle duplicate paths? My advanced wind plugin can correct apparent wind (for leeway, mast height, etc). As a result, the apparent wind path is found twice, although coming from different sources. What is the preferred way to deal with this? Should the plugin always remove the uncorrected delta's, should this be optional, or should the two delta's coexist?

steveberl - Has anyone gone through the process...

Has anyone gone through the process of migrating from influxdb v1.8 to v2.x? I've got a lot of data in the existing V1.8 database that I would like to bring forward into 2.x. This page looks promising, (https://docs.influxdata.com/influxdb/v2/install/upgrade/v1-to-v2/automatic-upgrade/) but I wonder if anyone here has actually done it and what issues they may have run into.

Aswin - I published a new plugin that calculate...

I published a new plugin that calculates true wind while, optionally, applying corrections for mast rotation, vessel roll and pitch, leeway, upwash and sensor height.

petsi - there is a signalk plugin or button to ...

Is there a signalk plugin or button to shutdown the system?

Aswin - Location of wind sensor. I would like t...

Location of wind sensor. I would like to use the location (espacially heigt above waterline) of the windsensor(s) for wind calibration. I want wind speed calculated to 10 meter above water level to make it directly comparable to wind speed used in polar. I cannot find this information in the keys reference. I found fromBow and fromCenter, but not fromWaterline or similar. Did I overlook something? If not, how can I add this key to the keys?

PaddyB - I've lost sun & moon times, sure there...

I've lost sun & moon times, sure there was an app to add sun/moon rise & sets times etc, can't find it now 🤔

async restart

2) I got the impression that when submitting changes through the plugin config that the plugin can restart while it has not jet finished stopping. Can this be true? Can I prevent this?

Aswin - More questions on my nmea-streamer plug...

More questions on my nmea-streamer plugin. So I got my plugin working and I added a nice webapp to control the behaviour of the plugin. Along the way I got some questions.
Next