SignalK paths - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: SignalK paths (/showthread.php?tid=1652) |
SignalK paths - skipper@sy-barranas - 2019-01-23 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 RE: SignalK paths - ddelorme - 2019-01-25 try this you will have to read the code but it is nicely written. https://github.com/SignalK/specification/tree/master/schemas RE: SignalK paths - olewsaa - 2019-01-31 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)) RE: SignalK paths - ddelorme - 2019-01-31 So what is the right way? RE: SignalK paths - olewsaa - 2019-01-31 (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-computer/blob/master/IoT/WiFiClient-Temp-SignalK.ino and https://github.com/olewsaa/Yacht-computer/blob/master/IoT/WiFiClient-Tank-level-SignalK-v3.ino . This simple approach works fine. Ole SignalK paths - tkurki - 2019-02-01 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/blob/master/scripts/processSchemaFiles.js Sent from my iPhone using Tapatalk |