Plugin install from files?

136 views
Skip to first unread message

Robin Szemeti

unread,
Aug 6, 2022, 3:32:36 PM8/6/22
to Signal K
I have a headless SignalK server that needs a plugin installing .. for various reasons, giving this instance internet access is "less than simple"

Is there a way to install a plugin from files?

Robin Szemeti

unread,
Aug 6, 2022, 4:53:05 PM8/6/22
to sig...@googlegroups.com
Ignore, sorted it :)

On Sat, 6 Aug 2022 at 20:32, 'Robin Szemeti' via Signal K <sig...@googlegroups.com> wrote:
I have a headless SignalK server that needs a plugin installing .. for various reasons, giving this instance internet access is "less than simple"

Is there a way to install a plugin from files?

--
You received this message because you are subscribed to a topic in the Google Groups "Signal K" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/signalk/YnK9C5LhWFo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to signalk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/signalk/23d0837f-a98c-4fe1-b121-fe0a470fb06an%40googlegroups.com.

Steve Berl

unread,
Aug 6, 2022, 6:23:24 PM8/6/22
to sig...@googlegroups.com
Actually I’d love to hear how you did it. 

Steve

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/CAM%3DADxATqZcXjmhgGy2gnMbAYYXZZ1AyKZwKOcvL2C_x4HMy6w%40mail.gmail.com.
--
-steve

Dan Bar Dov

unread,
Nov 3, 2022, 6:12:52 AM11/3/22
to Signal K
Yes, please share your solution.

Владимир Калачихин

unread,
Nov 3, 2022, 8:02:31 AM11/3/22
to Signal K
npm pack


четверг, 3 ноября 2022 г. в 13:12:52 UTC+3, bar...@gmail.com:

Teppo Kurki

unread,
Nov 3, 2022, 9:13:26 AM11/3/22
to sig...@googlegroups.com
npm pack won't install the dependencies. it is useful for installing a plugin in development: npm pack produces a .tar.gz for the plugin's own code. then you can copy that over to the target system, but installing from that file you still need net access for any dependencies.

For this case you need to explicitly npm install all the plugins in an empty directory, using the SAME node.js and processor architecture as your target system [*]. Then copy the resulting node_modules directory under your target system sk settings directory, usually $HOME/.signalk/node_modules

haven't done this, so not sure if there's something i am overlooking

* required if there are any plugins that have native bindings = are not 100% JavaScript


Robin Szemeti

unread,
Nov 3, 2022, 9:27:30 AM11/3/22
to sig...@googlegroups.com
I removed the device from the boat and took it on a ride in the dinghy to the shore and connected it to some wired internet.  Once connected to wired network, the plugin was installed.

I still have "issues" with OpenCPN (yes, I know this is not the OpenCPN list ... ) I bought chart updates for this year, but they will not work with the "Old" plugin, and the new plugin needs the new version of OpenCPN and many dependencies, which is handled by a complete update of the Ubuntu OS ...  I fear I will lose some configuration of SignalK and OpenCPN if I do this so I think it is better just to keep sailing with the old charts.

Reply all
Reply to author
Forward
0 new messages