OpenMarine

Full Version: pypilot setup - getting wind data and pypilot web server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I would appreciate your help finalizing my pypilot setup.

My setup: Openplotter v2 on RPi3b+, a DIY wireless anemometer & gps (usb) feeding into signal K and working well. I just added pypilot (arduino still connected via USB to rpi) but I struggle to finalize the setup. The basic mode (heading) works and I can control the actuator based on compass heading in the pypilot program, but I do have two remaining issues:

1. getting wind and gps data into pypilot:
I have not found a way to feed the data from signal k to pypilot directly. I managed to make it work via an open cpn connection (screenshot attached), however I would like to do this without opencpn running. Any suggestion how to do this from signal K directly?

2. pypilot server not connected:
Currently, I can use only the Pypilot module in openplotter to control the device, the pypilot web server is not connected (screenshot attached). The opencpn plugin does not connect either.  How do I troubleshoot/setup the pypilot web server?

Many thanks for your help,
L
I installed pypilot using below commands:
git clone https://pypilot/pypilot
sudo python3 setup.py install

I have followed the advice in the pypilot wiki and some other threads here but have not made any progress. Any hint is greatly appreciated.

Some output after the install:

pi@openplotter:/usr/local/bin $ ps -ef | grep pypilot
pi 1092 1066 5 17:01 pts/1 00:00:05 /usr/bin/python3 /usr/local/bin/pypilot
pi 1093 1092 0 17:01 pts/1 00:00:00 /usr/bin/python3 /usr/local/bin/pypilot
pi 1094 1092 0 17:01 pts/1 00:00:00 /usr/bin/python3 /usr/local/bin/pypilot
pi 1099 1092 0 17:01 pts/1 00:00:00 /usr/bin/python3 /usr/local/bin/pypilot
pi 1100 1092 1 17:01 pts/1 00:00:01 /usr/bin/python3 /usr/local/bin/pypilot
pi 1101 1092 0 17:01 pts/1 00:00:00 /usr/bin/python3 /usr/local/bin/pypilot
pi 1104 1092 0 17:01 pts/1 00:00:00 /usr/bin/python3 /usr/local/bin/pypilot
pi 1107 1092 0 17:01 pts/1 00:00:00 /usr/bin/python3 /usr/local/bin/pypilot
pi 1147 1130 0 17:03 pts/0 00:00:00 grep --color=auto pypilot

pi@openplotter:/usr/local/bin $ netstat -antlp|grep python
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:23322 0.0.0.0:* LISTEN 1107/python3
tcp 0 0 0.0.0.0:20220 0.0.0.0:* LISTEN 1099/python3
tcp 0 0 192.168.2.56:54774 192.168.2.56:3000 ESTABLISHED 1100/python3
tcp 0 0 127.0.0.1:40328 127.0.0.1:2947 ESTABLISHED 1101/python3

pi@openplotter:/usr/local/bin $ pypilot_web
Traceback (most recent call last):
File "/usr/local/bin/pypilot_web", line 11, in <module>
load_entry_point('pypilot==0.36', 'console_scripts', 'pypilot_web')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.7/dist-packages/pypilot/web/web.py", line 13, in <module>
from flask_socketio import SocketIO, Namespace, emit, join_room, leave_room, \
File "/usr/local/lib/python3.7/dist-packages/flask_socketio/__init__.py", line 24, in <module>
from werkzeug.serving import run_with_reloader
ImportError: cannot import name 'run_with_reloader' from 'werkzeug.serving' (/usr/local/lib/python3.7/dist-packages/werkzeug/serving.py)