OpenMarine

Full Version: SignalK paths
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
does somebody know a source from where I could get a list of SignalK paths?
I know appendix B of the documentation. But I only need a list of the path strings.
Thanks in advance.
Peter
try this you will have to read the code but it is nicely written.
https://github.com/SignalK/specification...er/schemas
A very simple test to illustrate how simple it CAN (not right) be done :

 import time, socket


# Initiate socket 
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# socket.AF_INET is  Internet
# socket.SOCK_DGRAM) is  UDP



print("Trying to send values to SignalK")

while True:
    t=input("Please enter a number: ")
    x = float(t)

    SignalK='{"updates": [{"$source": "OrangePi","values":[ {"path":"OrangePi.signalK.manual","value":'+format(x,'5.3f')+'}]}]}'
    print(SignalK)

    sock.sendto(SignalK, ('192.168.1.160', 55557))
So what is the right way?
(2019-01-31, 05:10 PM)ddelorme Wrote: [ -> ]So what is the right way?

I use a simple string for the temperatures and tank monitoring, see https://github.com/olewsaa/Yacht-compute...ignalK.ino and https://github.com/olewsaa/Yacht-compute...alK-v3.ino . This simple approach works fine.

Ole
https://www.npmjs.com/package/@signalk/signalk-schema contains a keys list in json format. Install it with npm. The script that generates the list is at https://github.com/SignalK/specification...maFiles.js


Sent from my iPhone using Tapatalk