sailoog / openplotter

Obsolete project. New one and active: https://github.com/openplotter
http://www.sailoog.com/openplotter
GNU General Public License v2.0
153 stars 53 forks source link

Include Avahi for Signal K discovery #180

Closed tkurki closed 6 years ago

tkurki commented 7 years ago

Apparently the current setup does not include Avahi (os level support) and Mdns (Signal K server level support). They are needed for Signal K client apps to autodiscover the server.

https://github.com/sailoog/openplotter/issues/170#issuecomment-326791835

sailoog commented 7 years ago

OK. I remember that being on the to do list, what I can not remember is why this jumped. I will check if there is any incompatibility with the current Wifi AP management. Thanks.

@tkurki can I have your email? I have some questions about SK server. Mine is info [youknowwhat] sailoog.com

toqduj commented 7 years ago

On my test system running the latest OP beta, it shows no obvious problem. Both with bridged eth0 and without, the AP section and functionality works fine. With avahi and mdns installed.

sailoog commented 7 years ago

I will add this to the next major update. Did it need any extra configuration or just installing?

@tkurki we are close to the stable version and waiting for this to make a major update: https://github.com/SignalK/specification/issues/244 any news?

tkurki commented 7 years ago

No configuration needed, Node server just checks if npm module mdns is available, which in turn needs avahi.

tkurki commented 7 years ago

As for enums let's continue discussion at https://github.com/SignalK/specification/pull/382.

sailoog commented 7 years ago

FYI

node v6.11.4 signalk-server-node 0.1.32

WARNING The program 'node' uses the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node WARNING The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister

tkurki commented 7 years ago

This is normal.

tkurki commented 7 years ago

Do you install SK server from npm?

sailoog commented 7 years ago

Yes

tkurki commented 7 years ago

All right, I’ll pay more attention to publishing there. So far I have assumed that most people install from Github, that’s why I asked.

sailoog commented 7 years ago

ops sorry I misunderstood the question. I use github.