-
Notifications
You must be signed in to change notification settings - Fork 2
Step 12 Using openplotter tools remotely
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]
After a successful connection to a remote pypilot, 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.
For remote access, pypilot_client needs to be invoked with -s . For the other scripts, the -s switch is not needed.
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
- Step 1: Install Openplotter Headless
- Step 2: Install pypilot
- Step 3: The openplotter user interface
- Step 4: The browser 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
- Todo