-
Notifications
You must be signed in to change notification settings - Fork 3
Step 12 Using openplotter tools remotely
WARNING: this information has been written in 2021, when pypilot version was 0.24 and Openplotter was 2.0. In 2023 these versions have by far been superceded and information in this chapter is most likely to be partly obsolete. Work in progress will be documented in the Workbook Release Notes.
As said before, the tools on openplotter default to connect to the pypilot on localhost. They can, however, be used on a remote pypilot. This is useful when you want to connect to an attached tinypilot.
This applies to the following scripts:
- pypilot_client [-s] [ip-address]
- pypilot_client_wx [ip-address]
- pypilot_calibration [ip-address]
- pypilot_control [ip-address]
- pypilot_scope [ip-address]
When pypilot_client is invoked with the -s switch, the IP address is stored in the file ~/.pypilot/pypilot_client.conf. Any subsequent invocation of any of the scripts above will default to that IP address.
Example:
# In this example, 10.10.10.2 is the address on the tinypilot
pi@openplotter:~ $ pypilot_client -s 10.10.10.2
[whole database dumped]
pi@openplotter:~ $ pypilot_client -s 10.10.10.2 -c ap.heading_error
ap.heading_error = -2.122
ap.heading_error = -2.154
ap.heading_error = -2.158
^C
pi@openplotter:~ $ pypilot_calibration
[...]
This does not only apply for when you invoke these scripts from the command line, but also when you invoke them from the openplotter interface: from then on, your pypilot is the external one. If you ask me, this is a good example of how well-implemented a modular architecture can be.
Pypilot Workbook
- Introduction
- What is pypilot
- The software component
- The hardware component
- The User Interface component
- Pypilot functions
- Data connections
-
The steps
- OLD
- Step 1: Install Openplotter Headless
- Step 2: Install pypilot
- Step 3: The openplotter user interface
- Step 4: The browser interface
- Step 5: The HAT interface
- Step 6: The Arduino controller
- Step 7: OpenCPN Pypilot Plugin
- Step 8: Looking under the hood
- Step 9: Wiring up the Nano
- Step 10: Installing Tinypilot
- Step 11: Tinypilot under the hood
- Step 12: Using openplotter tools remotely
- Step 13: SignalK connections
- Step 14: The Pypilot Motor Controller
- Step 15: Understanding motor.ino
- Parameters
- Gains
- NEW
- Step 1: Installing pypilot
- Step 2: Web interface
- Step 3: OpenCPN pypilot plugin
- Step 4: Installing the arduino
- Step 5: Wiring the arduino
- Step 6: Setting up data connections
- Step 7: SignalK connections
- Step 8: HAT interface
- Step 9: Debian under the hood
- Step 10: Tinypilot under the hood
- Step 11: Openplotter details
- Updating pypilot: debian
- Updating pypilot: tinypilot
- Feedback
- Todo
- Finally
- Autopilot Route Plugin
- Watchdog
- Workbook Release Notes