This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SignalK paths
#1
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
Reply
#2
try this you will have to read the code but it is nicely written.
https://github.com/SignalK/specification...er/schemas
Reply
#3
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))
Reply
#4
So what is the right way?
Reply
#5
(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
Reply
#6
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)