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
pypilot setup - getting wind data and pypilot web server
#1
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


Attached Files Image(s)
       
Reply
#2
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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)