ChrisCraft47 - With a switch bank, where are th...
With a switch bank, where are the labels for the individual switches derived from? Currently I only see them labeled as 1,2,3,4 - is there a way to add meaningful labels? Is this something I set in the configuration of the Yacht Devices switch configuration?
3 Replies
i think this might help… look under the “multi switch” section.
https://github.com/gregsyoung/WilhelmSK-SignalK
note that my example is for using NodeRed .. to communicate status changes to an ESP32 with WLED control.
but i think that its setting up the “meta” details for the switch bank skpaths that you need to do.
such that WSK picksmup the switch lables from the meta
in the node that send path and meta .. this is the json that its send s
this gets called once at initialisation. and initialises the path and meta data.
im sure there are other ways to “more permanently” set this up in sk .. but beyond my current sk knowledge level:)
i believe (but have not tried) that you can update the json defaults file (below) with the same meta data
as above… and it “adds” it into your signalk server data model schema
~/.signalk/defaults.json