The version 1.x of OpenPlotter used the port 55557 as UDP port for SignalK. In the new version there is no UDP port set up at 55557.
Opening the signalK web interface, localhost:3000 and selecting the left side menu at Server and Connections it's possible to add
a new source. In my case ID=OrangePi, UDP, port 55557 and no self mapping. Press apply and it's all back where it used to be in the
old version.
The version 2 now uses port 55557 and a simple python script like this can test the connectivity:
#!/usr/bin/env python
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.169', 55557))
In my ideal boat there should only be cables for 12V, all signal cables should be replaced by wireless communication,
SignalK is step in the right direction.
Opening the signalK web interface, localhost:3000 and selecting the left side menu at Server and Connections it's possible to add
a new source. In my case ID=OrangePi, UDP, port 55557 and no self mapping. Press apply and it's all back where it used to be in the
old version.
The version 2 now uses port 55557 and a simple python script like this can test the connectivity:
#!/usr/bin/env python
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.169', 55557))
In my ideal boat there should only be cables for 12V, all signal cables should be replaced by wireless communication,
SignalK is step in the right direction.
Ole W. Saastad
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa