Posts: 11
Threads: 8
Joined: Jan 2019
Reputation:
0
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
Posts: 63
Threads: 11
Joined: Apr 2017
Reputation:
8
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))
Posts: 205
Threads: 31
Joined: Apr 2017
Reputation:
2
So what is the right way?