signalk-pypilot-newui
v3.18.2
Published
Signal K friendly UI for the pypilot autopilot, with first-class Signal K paths and Simple Switches so any downstream Signal K client can drive or monitor the pilot. Touch-first mobile visor + full pypilot data (servo, gains, calibration, tack, warnings).
Maintainers
Readme
PyPilot New-UI

A modern, touch-first autopilot screen for pypilot and TinyPilot — that also tunes your pilot for you.
signalk-pypilot-newui enhances Sean D'Epagnier's open-source autopilot with 51 new functions: a tablet- and phone-friendly visor, a built-in tuning assistant, smart wind-aware profiles, an 18-rule alarm engine, trip logging, a backup and update assistant for the TinyPilot, and first-class Signal K integration so any Signal K client can drive and monitor the autopilot out of the box.
Spend more time sailing and less time guessing which slider to move.
Questions, ideas and sailing reports: PyPilot New-UI thread on the OpenMarine forum.

Why PyPilot New-UI
- Tunes itself — Pypilot Doctor records a real session, explains in plain language what is off (bias, oscillation, weak authority, noise) and proposes P / I / D changes you accept with one tap. Your original profile stays one tap away.
- Adapts to the wind — Smart Pilot picks the Light / Medium / Heavy profile for the wind you're in and reacts to gusts on its own.
- Safer at sea — pre-departure READY / CAVEATS / DO-NOT-ENGAGE check, 17 alarm rules, auto-disengage on lost authority, stuck-pilot recovery and a reconnect-restore banner.
- Your whole boat on one screen — chartplotter, AIS collision targets, tides, anchor watch and polar performance, right inside the compass rose.
- Follows your Freeboard routes — pypilot's NAV mode with no extra plugins: auto-advance with a spoken message, compass on the current heading at the destination or on data loss.
- Manoeuvres pypilot doesn't have — AUTO WIND (apparent wind upwind, true wind downwind, switched for you), Head to wind to hoist sail, Downwind to strike it, synthetic tack with countdown.
- Logs every outing — automatic trip recorder with 17 KPIs, coloured track, tack history and a shareable report card.
- Plays well with Signal K — Autopilot API v2 provider, the full pypilot catalog as Signal K paths, KIP-ready switches and canonical notifications.
- Light on the Raspberry Pi — on the Pi's own screen it drops animations, blur and glow so the GPU stays free for other apps.
- Multi-language — EN / ES / DE / FR, auto-detected.
Screenshots
| One block at a time · rose | One block at a time · controls |
|---|---|
|
|
|
| A profile for each mode | Calibration · live reading |
|---|---|
|
|
|
| Bottom bar · live chart | Bottom bar · Freeboard-SK |
|---|---|
|
|
|
| Chartplotter embedded | AnchorWatch Pro inside the rose |
|---|---|
|
|
|

| Tune · gain sliders | Logbook · trip detail |
|---|---|
|
|
|

| | |
|---|---|
|
|
|
Quick start
- Signal K Server → App Store → search PyPilot New-UI → install.
- Server → Plugin Config → PyPilot New-UI → enable it. The Signal K admin only shows the server-side switches (allow writes, allow direct servo, forget the admin PIN); everything else is set in the visor.
- Open
http://localhost:3000/signalk-pypilot-newui/(replacelocalhostwith your Signal K server address on a tablet or phone). Each device asks Signal K for access once: approve it in the Signal K admin (Security → Access Requests). On Signal K 2.31+ it asks for read/write, not admin. Approve it from another device if you can — a browser where you log in to the Signal K admin keeps that admin session. - In the visor, Setup → Technical → pypilot connection: enter the
pypilot_webhost (IP or hostname) and port —80on TinyPilot,8000on a classic pypilot install — and Apply & reconnect. Don't know the IP? Scan LAN findspypilot_webhosts on ports 80 / 8000 of every network the server is on; if it finds nothing it says what it searched and offers a prefilled GitHub issue.
pypilot itself also needs Signal K access to publish heading and attitude. The plugin approves pypilot's request on its own, read/write, but only when it comes from the TinyPilot address configured above (switch: Setup → Technical → pypilot connection).
On first open a guided tour walks you through the rose, the controls, the multifunction panel and the companion plugins in a few minutes, without touching the pilot. Replay it any time from the Info tab or the boat menu.
That's it — the autopilot visor works with just pypilot. Add the companion plugins to light up charts, AIS, tides and polars.
Unlock more with companion plugins
PyPilot New-UI is a well-behaved citizen of the Signal K ecosystem: it builds on mature plugins and standard APIs instead of reinventing them. All install from the Signal K App Store and are picked up automatically — no configuration inside PyPilot New-UI.
| Plugin | Status | What it unlocks |
|---|---|---|
| pypilot / TinyPilot (pypilot_web) | Required | The autopilot itself. |
| signalk-mareas-ihm — AnchorWatch Pro: Smart Anchoring, AIS & Tides | Recommended | Tide button on the rose (tide curve, current height, rising / falling, next HW / LW, coefficient) and the anchor-watch visor inside the rose. Also fills AIS vessel names into Signal K from its persistent AIS database, so targets show names instead of raw MMSIs right after a server restart. |
| @signalk/freeboard-sk | Recommended | Integrated chartplotter: double-tap the rose and the chart opens inside it with every AIS target, your route and all overlays — the autopilot buttons stay reachable. |
| A chart provider: signalk-charts-provider-simple or @signalk/charts-plugin | Required for the chartplotter | Serves the chart tiles Freeboard-SK draws. See the note below the table. |
| @signalk/collision-alerts | Recommended | AIS collision targets on the rose — real bearing, distance label, course line, infobox with vessel name and ACK. |
| signalk-polar-performance-plugin + signalk-polar-management | Optional | Polar performance on the corner tiles: polar speed, % of polar, target speed, beat / gybe angle and VMG from your boat's polar table. |
| pypilot-autopilot-provider | Optional | Shares the pypilot connection with other Signal K autopilot clients. How the two coexist. |
Details per plugin
- AnchorWatch Pro (
signalk-mareas-ihm) — the tide button sits just above the bottom-right corner tile. From the tide popup, one tap opens the anchor-watch visor full-screen inside the rose, like the chart. Without the plugin, the button explains what it does and links straight to its App Store page. - Freeboard-SK — opens embedded in the rose box; side panels stay visible and usable. Drop from the autopilot view to the full chart in one tap without leaving the session. It's kept loaded in the background so it opens instantly (a per-device switch in the Chart in the background card enables lazy loading on weak tablets).
- @signalk/collision-alerts by @dirkwa (formerly
signalk-collision-alerts, now maintained under the Signal K organisation) — provides the CPA/TCPA engine. PyPilot New-UI subscribes tonotifications.navigation.closestApproach.*and draws each target oriented by its heading / course, with a projected track when moving. ACK goes through the Signal K v2 Notifications API, so an ACK here is also seen by Freeboard-SK and every other client. Feature notes. - Polar plugins —
signalk-polar-management(Aswin Bouwmeester) stores your polar table (import ORC / CSV / text) and selects the active polar;signalk-polar-performance-plugin(hanstool) turns it into liveperformance.*values, each one opt-in on the corner selectors.
Chartplotter needs a chart provider. Freeboard-SK is only a renderer — without a provider the embedded map stays empty.
signalk-charts-provider-simpleby @dirkwa — serves local chart tilesets. Recommended for the embedded plotter.@signalk/charts-plugin— the official provider; local MBTiles / TMS from~/.signalk/charts/, plus online WMS, WMTS and tilejson sources.Install one, add your chart sources, and the chartplotter lights up automatically.
All features — 51 new functions on top of pypilot
Smart autopilot (15)
- Pypilot Doctor — records an engaged AP session, detects bias / oscillation / low authority / noise, and proposes P/I/D adjustments with plain-language rationale. The first apply copies the current profile into a new one whose name you choose (offered:
<profile> - Doc 001,002…), so the original stays one tap away; Rename on the result changes it later. - Smart Pilot — auto profile by wind — switches between Light / Medium / Heavy profiles by averaged TWS. AUTO WIND pseudo-mode: apparent wind below 120° TWA, true wind above (with hysteresis), one profile per side so the true-wind side can be more reactive. Needs GPS (pypilot only offers true wind with it).
- Smart Pilot — gust strategy — boost D +20% for 20 s, switch to Heavy for 30 s, or just warn.
- Head-to-wind and Downwind pseudo-modes — two sail-handling manoeuvres not in pypilot, each with a by bow / by stern swing; on exit, previous mode, target, engage state and profile are restored.
- Head to wind (hoist sail) — bow into the wind and held there (done when the wind stays within 10° of the bow for 3 s). Above 10 kn TWS it recommends swinging by the bow, since gybing is risky.
- Dead downwind (strike sail) — wind dead astern so the sail comes down without flogging (done when |TWA| > 175° for 3 s). While holding, a sharper PID (P ×1.5, D ×1.7, rudder slew ×1.3) guards against an accidental gybe; voice warning if |TWA| < 160°, auto-cancel below 140° for 2.5 s.
- Synthetic tack and tack countdown UI with planned final target and single-tap cancel.
- Pre-departure Autopilot Check — a single READY / CAVEATS / DO-NOT-ENGAGE verdict across every sensor, servo, voltage and link signal.
- Alarm engine — 18 rules — heading deviation (quiet while the boat turns to a new course), cruise drift, unable-to-steer, pilot stuck, pilot cannot recover, AP disengaged from the remote / TinyPilot, servo overcurrent, servo current near trip, rudder near end stop, servo controller temperature, motor temperature, high AP load, low voltage, sensor lost, pypilot disconnected, extreme heel, extreme pitch, and wind too light for wind mode (threshold 2-6 kn; warn only, or switch to compass on the current heading) — all published as canonical
notifications.autopilot.*. - Auto-disengage on lost authority — RMS heading error > 30° with servo duty > 90% sustained 10 s. Stuck pilot recovery (opt-in): without a rudder sensor, pypilot treats overcurrent as end of rudder travel; when it reports that fault and the error keeps growing, the plugin cycles the AP (same mode and target) to clear it, max 3 times per minute, never during pypilot's own tack.
- Sensor Quality — freshness, update rate, jitter and source per AP-critical Signal K path, with per-row Ignore / Restore.
- Servo Health — learns a baseline for typical servo duty at sea and flags recent, peak, temperature or voltage deviations.
- Watchdog with core-alive detection — tells a live
pypilot_webfrom a dead pypilot core, so writes never vanish while the visor claims success. - Reconnect Restore banner — snapshots target and mode on outage and offers to re-engage the same target when pypilot is back.
- Route following (NAV) from Freeboard, no extra plugins — reads the active route from Signal K's Course API, computes leg bearing, cross-track error and arrival itself and feeds pypilot an APB sentence every second over Signal K's NMEA output (the one the TinyPilot already reads), so pypilot offers NAV. Cross-track error capped both ways, and the boat steers back to the leg's line rather than straight at the waypoint. Waypoints advance on their own with a spoken message, in the plotter's arrival circle or abeam of the point, or (option in Smart Pilot → Routes) only abeam — no corner cut; keep the plotter's own auto-advance off; at the destination or if the route / GPS is lost for 5 s the pilot goes to compass on the current heading. Engage from Freeboard / KIP goes straight to NAV; the visor asks before a turn over 60°; ±1 / ±10 take over in compass.
- Black box — keeps the last minute of autopilot data and saves one minute before and after an incident (AP taken off from outside, stuck pilot, overcurrent, slow or failed tack, alarm) or a Mark press. Chart with every field and a touch cursor, View / Download as JSON, a note per incident dictated with the phone keyboard, and Reviewed / Mark all reviewed to clear new incidents without opening each.
- Shadow-mode tuning (preview) — every 90 s with the pilot engaged the plugin stores a navigation-database row (conditions, setup, heading error, servo work, what each pypilot term contributed) and works out which single gain step an automatic tuner would try and why (oscillation, overshoot, nervous servo, sustained offset, slow response), and whether a fair before / after comparison would be possible. Nothing is applied: the verdicts show in each session's Summary. The gain watchdog (see Safety) is in place for the later automatic stage.
Touch visor (14)
- Compass rose with colour-coded cardinals, hull-fixed sailing wedges and 4 corner tiles. Long-press a corner for the visor settings: rose corners, arrows on the rose, multifunction panel, collision alarm (AIS), screen and sound (start-up screen, tab bar, chart in the background, tap sound) and saved displays. Tap a corner (or the heading box) to make its number bigger, three steps, saved per orientation on each device. Layout: rose and controls together, or one at a time with a swipe between them; Automatic picks one at a time in a small, squarish window, such as a screen shared with a chart app. Long-press AP (or the AP button on the rose) for the mode and profile window.
- Concentric Target + Wind arrows — target diamond tinted by mode (red compass, amber apparent, teal true), amber
Aand tealTarrows. They interlock into a droplet when aligned and open into V-notches with a colour tick when they drift. - Gust marker overlay — a notable gust or wind shift leaves a ghost
A/Tat the angle it hit, with its speed, fading over 15 s. Per-device on / off with a test button. - COG line + Current vector overlays.
- Custom Signal K path bindable to any corner tile.
- Polar performance on corner tiles (with the polar plugins).
- Multifunction panel with three views — heel / rudder bar, a live chart or Freeboard-SK at chart size. Double tap cycles through the views you choose, long press opens the settings. The chart groups series by kind (all speeds on one knots scale from 0: SOG, STW, polar max speed, VMG, AWS, TWS; angles AWA / TWA), the legend shows each value now and, in brackets, its average over the window (2 / 10 / 30 min or 2 h, chosen by tapping the time label), fine lines at each unit help read it by eye, and a finger on the chart reads the values of that moment; with the chart, a small heel bar along its bottom keeps the heel in sight (red to port, green to starboard, the degrees beside it). The bar takes the free height of the screen.
- Integrated chartplotter (with Freeboard-SK) — double-tap the rose.
- AIS collision targets on the rose (with @signalk/collision-alerts) — Harbour / At anchor / Sailing modes. At anchor, a boat inside your swing circle always warns, even if it reports 0 kn. Harbour zones: draw your usual harbours in Freeboard-SK and mark them in the visor settings; inside one the alarm goes quiet by itself.
- Tide at a glance (with AnchorWatch Pro) — interactive tide curve and anchor-watch visor in the rose. A helm button on the other side opens the logbook (the live trip while sailing).
- Race timer T1/T2 with beeps, screen flash and spoken countdown, persistent across tabs.
- Swipe navigation between tabs with vertical-axis lock, so scrolling never flips a tab by accident.
- Multi-language EN / ES / DE / FR, auto-detected from the browser, every screen translated. A first-run guided tour (replay from Info) shows the essentials.
- Profile history — the profile manager shows under each profile its version, when it was made, which profile it was copied from and how (Tune, New, Doctor, import); a rename keeps the history, and look-alike names (extra spaces, capitals) are flagged. Each mode can carry a default profile (long press on the mode); choosing the mode applies it, or the one last picked by hand in that mode during the outing.
Logbook & performance data (6)
- Trip Recorder — auto-records every outing via
navigation.state(opens when under way, closes back in port; dock tests under 0.1 nm are discarded). 17 KPIs (distance, duration, SOG / TWS / AWS averages and peaks, heel, tacks, points-of-sail split, min voltage, AP-engaged %), OpenSeaMap track coloured by SOG with markers on peak gust, peak SOG, min voltage and every tack. Share as a portrait PNG report card or plain text. The trip in progress can be opened live while sailing, and paused / resumed (time and distance stop), stopped, restarted or deleted. - Chart tab — 9 live Trip Stats cards, history with 30 s / 2 min / 10 min windows and hover-freeze, plus a Servo Health card.
- Persistent tack history — pre / post TWS, AWA, SOG and recovery time to 95% of pre-tack speed, filterable by day range.
- Post-tack HUD stats — before / after values and SOG-loss verdict.
- Navigation session recorder — every engaged AP session stored as JSONL with tags (wind, sea state, propulsion, point of sail, crew), shareable for advice. Each session keeps a Summary (heading error, servo work, wind, speed, time per mode) and every profile or gain change with who made it (you, Doctor, auto profile, gust, another app) and why.
- Signal K path catalog viewer with copy-to-clipboard for downstream widgets.
Signal K integration (8)
- Full pypilot catalog as Signal K paths under
steering.autopilot.pypilot.*, opt-in per path so you never flood the bus. - Autopilot API v2 provider (absorbable) — any Signal K autopilot client talks to this plugin as the canonical autopilot.
- Simple Switch action paths — engage, nudge, tack, mode selector, profile selector.
- 8 momentary switches — nudge ±10 / ±1, tack port / starboard / cancel, engage — as KIP numeric paths (
1/0). - Radio switches — mode (compass, GPS, wind, true wind, NAV) and profile groups as KIP radio switch sets.
- Publish-only-essentials toggle — keeps the bus light on modest servers.
- Config export / import — Web Share API or plain
.json. Never includes the TinyPilot's SSH password. - Live status endpoint — connection state, core-alive flag and catalog counters for external monitoring.
Looking after the installation (6)
- Setup in groups + admin PIN — Sailing, Settings and Technical. Technical (black box, calibration, connection, pypilot advanced settings, paths, emergency, backups) can be locked with a 4-8 digit PIN of this plugin, checked by the server, unlocked 12 h per screen. The same PIN guards Tune (gains, pilot type, Tune groups) and the profile manager (new, rename, import, delete, reorder), asked on the spot; choosing a profile stays free. Nothing is locked until a PIN is set, and an Ask for the PIN switch turns it off (PIN kept) for a boat with only trusted crew. A forgotten PIN is cleared from the plugin config in the Signal K admin.
- pypilot advanced settings — everything pypilot's own web client shows, grouped, in this style. Values are read only for the groups you open; changes need Allow changes, and installation settings ask first. The calibration buttons say what happened (levelling, done, or why it could not be sent) and show the heel, pitch and heading read now.
- Daily settings backup + restore — every day a readable copy of all settings (plugin, pypilot, the TinyPilot's
pypilot.confwith every profile, visor preferences) in~/Backups-pypilot-newui/(last 30, monthly reminder to download one; the newest also inside~/.signalkso whole-server backups such as signalk-backup carry it). Restore brings back the gains of every profile in a copy through pypilot itself, with the autopilot off; installation settings (IMU calibration above all) are never restored by the plugin. - Backup assistant — one Start button in Setup → Backups, a few plain steps:
- Make a backup — the settings plus an exact image of the TinyPilot's card (about 1.1 GB, ~700 MB compressed). pypilot is stopped during the copy so the image is consistent, and started again at the end, also if the connection drops; a "backup in progress" banner shows meanwhile. You choose whether passwords and keys go in the backup. Only with the autopilot off and the boat moored.
- Restore an earlier backup — the settings, or a whole card (written to a new card with Raspberry Pi Imager).
- Update your TinyPilot (experimental) — prepares a new card image with the newest TinyPilot version from pypilot.org and your settings (calibration, motor, profiles, boat wifi, remote), checked before it is offered. You write it to a new card and swap it in; the card in the TinyPilot is never written, so the old one is the way back.
- Every backup has a state (checked, damaged), an optional note and a delete button that defaults to No.
- TinyPilot clock — the TinyPilot has no clock and runs years behind after each reboot; when pypilot connects, the plugin sets it from the Signal K server, once per boot and never with the autopilot engaged (a clock jump upsets the IMU filter).
- pypilot's Signal K access — pypilot asks for access again after every Signal K restart and, approved as read-only, Signal K silently drops its heading. The plugin approves it read/write (only from pypilot's address - the TinyPilot, or this machine when pypilot runs on the Signal K server), keeps a single pypilot device, and alarms if a request is still waiting. If pypilot still cannot write to Signal K, the plugin publishes the heading, attitude and rate of turn itself from pypilot's IMU - each one only while no other source does, and the rate of turn (which pypilot itself never sends) only together with the heading - so the visor never loses its heading. The Autopilot Check then shows a caveat with the link to fix pypilot's access, and a switch in Setup turns this off. With source priorities set in Signal K for these paths, Signal K takes the plugin's values after its unknown-source timeout (10 s by default) of silence from the listed sources. Captured TinyPilot logs are compressed and capped (30 days, 300 MB).
- Start-up check — when the visor opens: the logo, then the autopilot check and sensor quality in green / amber / red boxes ("All OK. Fair winds!"). Anything wrong — including a screen Signal K has not approved yet — says what happens, what to do and has a button to where it is fixed. Once per session, double tap closes, can be switched off per device.
- Prepared heading — with the autopilot off, in compass or GPS mode, the ±1 / ±10 buttons add up from the heading at the first tap, as on pypilot's own web page: at 290°, three taps of −10 show 260° — the target diamond and the 12 o'clock difference blink red until you press AP, which engages straight to it. Cleared on engage, on a mode change or after 60 s without a tap.
Plus — remote recovery without SSH: one-tap Restart pypilot and Reboot Pi buttons, and a whitelisted debug console. Details.
See CHANGELOG.md for the release-by-release history.
Safety
- This plugin is an aid to navigation and steering. It does not replace the skipper's vigilance, correct manoeuvring, direct observation of the surroundings, or official charts and notices. Verify in safe waters before relying on the autopilot for demanding manoeuvres.
allowDirectServodefaults to off — pypilot's directservo.commandback-door for manual steering is not exposed until you enable it.allowWritesgates every write to pypilot (including the route follower's APB sentences and the gain watchdog).- On Signal K 2.31+ every plugin route declares its access level: reads need a read-only session, writes a read/write one, and only the free-form SSH console needs a Signal K admin session. The technical actions (restarts, SSH presets, paths, config import / export, backups, SD image, installation settings) are also behind this plugin's own admin PIN when one is set.
- All PUT handlers validate ranges from the pypilot catalog before sending.
- On plugin stop the socket closes cleanly; the visor auto-reconnects on Signal K restart.
- Gain watchdog (separate process). Before the plugin tries a gain change on its own, it starts a small watchdog process that ships with the plugin (
dist/gain-watchdog.js, plain Node, no extra install). It runs outside Signal K, so if Signal K freezes during the trial it switches pypilot back to the profile you had within 15 s, over pypilot's own port. If Signal K crashes or is restarted, systemd stops the watchdog too; the plugin then restores the profile itself as soon as it starts again. It only ever writesprofile, only while the trial profile is still active (a profile you picked yourself meanwhile is left alone), never creates a missing one, respectsallowWrites, keeps retrying if the link to pypilot drops, logs what it does togain-watchdog/watchdog.login the plugin's data folder, and exits after 10 idle minutes. With automatic tuning off it never runs.
Advanced setup
Working alongside pypilot-autopilot-provider
We build on the excellent pypilot-autopilot-provider by Panaaj, which gives Signal K the standard Autopilot API v2 (/signalk/v2/api/vessels/self/autopilots/*) and opens its own socket.io connection to pypilot_web.
This plugin adds the rest of the pypilot catalog (gains, servo telemetry, calibration, warnings, profiles, tack detail…) and the touch webapp, and can optionally register the Autopilot API v2 itself via absorbProvider, so a single socket hits pypilot_web instead of two — handy when pypilot runs on a Pi Zero W.
Signal K allows only one provider per pilot ID, so if you enable absorb mode, disable Panaaj's plugin.
| Panaaj pypilot-autopilot-provider | New-UI absorb | Result |
|---|---|---|
| Enabled | Off (default) | Both run side by side. Panaaj owns the AP v2 API; this plugin adds the extra paths + UI. 2 sockets. |
| Disabled | On | Only this plugin: same AP v2 API + all the extras. 1 socket. Ideal on Pi Zero W. |
| Enabled | On | Both register the same AP ID — leave one off. |
| Disabled | Off | No other Signal K client sees the AP. Only useful if you use this plugin's webapp exclusively. |
Absorb mode lives in Setup → Autopilot Provider (one-socket mode).
Two differences to know when you switch from Panaaj's plugin to absorb mode:
- Manual steering from KIP with the autopilot off. Panaaj's plugin turns the ±1 / ±10 buttons and dodge into direct rudder commands while the pilot is in standby. Here that needs
allowDirectServoon (off by default, see above); without it, those buttons return an error while the pilot is off. - Engage from KIP or Freeboard locks the current heading (or wind angle in wind modes) before engaging, like pypilot's own web page, so the pilot never goes back to the course it held before the last disengage. A target sent just before the engage is kept.
Remote restart, reboot and consoles
When the autopilot process on the TinyPilot gets wedged, no manual SSH session is needed. Save the TinyPilot's SSH user + password once in Setup → Technical → Emergency and you get two big buttons, each behind a confirmation that asks whether someone is at the helm:
- RESTART pypilot (~10-15 s) —
sv restartof pypilot core + web (runit under piCore). The AP drops the heading briefly and re-engages when back. - Reboot Pi (~35-60 s) — full
sudo reboot. No autopilot for almost a minute; last resort.
Debug console — a closed whitelist of preset commands over the same SSH session: restart pypilot_web (web server only, steering unaffected), logs pypilot, logs pypilot_web, dmesg, top, uptime, df, pypilot --version. Scrollable output, a Follow logs toggle (polls journalctl --since '30 s ago' every 3 s), and Copy / Share buttons for GitHub issues. The endpoint refuses anything outside the whitelist.
Remote Control Console — a free-form SSH shell on the TinyPilot. It runs any command, so it needs a Signal K admin session in that browser (log in to the Signal K admin there) and, with a PIN set, the plugin's admin PIN. The preset buttons above work without the admin session.
Signal K stores plugin configs — including the SSH password — in plain text under
~/.signalk/plugin-config-data/. Use credentials valid only for that isolated TinyPilot.
Troubleshooting
Firefox on a Raspberry Pi is slow (Pi 5 tested) — visor, chart and videos stutter, the whole desktop feels sluggish. Firefox's GPU renderer (WebRender on the Pi's V3D chip) costs far more there than software rendering: with the visor open, the GPU sat at ~90% and a 1080p video dropped 64% of its frames; with software rendering the GPU falls to ~3% at the same CPU load. Fix it once:
- Open
about:configand accept the warning. - Set
gfx.webrender.softwaretotrue. - Restart Firefox.
Chromium doesn't need this. The visor detects Firefox on the Pi's own screen and shows these steps in its Info tab with an Apply now button that writes the setting into that Firefox's profiles (user.js) for you — then close and reopen Firefox.
TinyPilot 0.71: pypilot does not connect to Signal K
The TinyPilot image of July 2026 (pypilot 0.71) lacks two Python packages pypilot needs to talk to Signal K, so pypilot never asks Signal K for access. The plugin's Autopilot check says so. pypilot's author will fix it in the next image; until then, this is the fix Michael posted on the OpenMarine forum. Easiest: the Fix it now button. The Autopilot check shows Fix it now next to this warning. It needs the TinyPilot's SSH user and password (default tc / tc); if they are not saved yet, the button takes you to them in Setup → Technical → Emergency. It loads the packages, which are already on the SD card, keeps them for every boot and restarts pypilot (about 15 s without autopilot, so do it with nobody steering on it). No internet needed.
By hand, if the button cannot do it. It takes about ten minutes. You need a computer on the same network and a wifi with internet on the boat.
- Give the TinyPilot internet. Open its web page at
http://<tinypilot address>/wifi(http://192.168.14.1/wifiwhen you are on itspypilotwifi). Choose Master+Managed, type your boat's wifi name and password, and save. The TinyPilot keeps its ownpypilotwifi and also joins yours. - Log in to the TinyPilot from the computer:
ssh tc@<tinypilot address>. The default password istc. - Install the two packages:
pip3 install --user requests websocket-client. If it answerspip3: not found, runtce-load -i python3.11-pipfirst and try again. - Save the change:
filetool.sh -b. The TinyPilot forgets everything at power-off unless it is saved. - Restart it:
sudo reboot. - Within a minute pypilot asks Signal K for access, the plugin approves it, and the Autopilot check turns green.
- If you don't want the TinyPilot on your wifi, set
/wifiback to Master.
When the new image is out, you don't need any of this.
Reference for integrators
Signal K paths
The pypilot catalog is published under steering.autopilot.pypilot.* (opt-in per path; the count depends on your pypilot version and what you enable), for example:
- Gains per pilot (
P,I,D,DD,PR,FF). - Servo telemetry (voltage, current, controller / motor temperatures, flags, amp-hours, clutch engaged, controller error).
- Rudder calibration (offset, scale, non-linearity, range, calibration state).
- IMU heading offset, errors, warnings.
- Active pilot, active profile, available pilots / profiles / modes.
- Tack state, tack direction, tack timeout.
- Runtime, version.
Route following publishes steering.autopilot.route (active, waypoint name, index / total, distance, XTE, leg bearing, bearing to waypoint, last event).
KIP-ready switches
Under electrical.switches.pypilot.*, all numeric (1 / 0), with supportsPut:
ap.state— engage / disengage (on/off toggle).nudge.{plus10,plus1,minus1,minus10}— momentary: course +10° / +1° / −1° / −10°, resets to0by itself.tack.{port,starboard,cancel}— momentary.mode.{compass,gps,wind,trueWind,nav}— radio (mutually exclusive).navis refused without an active route; engaging with one goes to NAV by itself.profile.<name>— radio, dynamic per pilot profile.
A PUT also accepts true / false. A second tack within 3 s of the previous one is refused, and a switch ignores the same tap repeated within 250 ms.
KIP: in a Switch Panel, pick these paths with the numeric path type (tested: KIP sends each tap once; with boolean controls it sent taps twice or not at all). steering.autopilot.pypilot.actions.engageInt (1 engage, 0 disengage) works too. KIP must be logged in with a read/write user, and Allow writes must be on in the plugin settings. KIP's Autopilot widget does not support this plugin.
steering.autopilot.pypilot.actions.tackInt is numeric too (1 port, 2 starboard, 0 cancel); an on/off toggle only sends 1 and 0, so starboard needs a control that sends 2.
HTTP endpoints
Main plugin endpoints:
The plugin exposes more (trips, AIS, watch, supervisor, recorders…) — see src/index.ts for the full router.
| Method | Path | Purpose |
|---|---|---|
| GET | /plugins/signalk-pypilot-newui/status | Connection + last-seen catalog summary + Rev + version + historian header + KPI computedTs |
| GET | /plugins/signalk-pypilot-newui/scan | Scan LAN for pypilot_web hosts |
| GET | /plugins/signalk-pypilot-newui/paths | Live list of published SK paths with GET / PUT URLs and units |
| GET | /plugins/signalk-pypilot-newui/catalog | Raw pypilot catalog (all values + metadata) |
| GET | /plugins/signalk-pypilot-newui/values | Current pypilot value cache |
| PUT | /plugins/signalk-pypilot-newui/raw | Send raw name=value to pypilot (protected by allowWrites) |
| GET | /plugins/signalk-pypilot-newui/history | Historian slice. Query ?window=30s\|2m\|10m and ?paths=headingCmd,rudder,.... RAM ring buffer at 1 Hz. |
| GET | /plugins/signalk-pypilot-newui/stats | KPI snapshot: session (engaged time, distance, energy, tacks, gybes, max servo A) + window1m (mean / RMS / p95 heading error, servo duty). |
| POST | /plugins/signalk-pypilot-newui/session/reset | Reset the KPI session counters. History buffer is kept. |
| GET | /plugins/signalk-pypilot-newui/quality | Sensor Quality snapshot: age / observed Hz / jitter / source / status per watched SK path. |
| GET | /plugins/signalk-pypilot-newui/servo-health | Servo Health snapshot: learned baseline current, deviation ratio, peak A, samples in the learn window. |
| GET | /plugins/signalk-pypilot-newui/alarms/state | Active alarms + short resolved history. |
| GET | /plugins/signalk-pypilot-newui/alarms/rules | Rule metadata (id / label / severity / enabled / muted / active). |
| POST | /plugins/signalk-pypilot-newui/alarms/ack/:id | Acknowledge one active alarm (silences the sound, banner stays visible). |
| POST | /plugins/signalk-pypilot-newui/alarms/mute/:id | Mute the RULE for N minutes (query ?min=15). |
| POST | /plugins/signalk-pypilot-newui/alarms/enable/:id | Enable / disable a rule (query ?on=1\|0). |
| POST | /plugins/signalk-pypilot-newui/alarms/severity/:id | Override the severity of one rule. Body: { "severity": "info\|warn\|alarm" }. Persists via props.alarmSeverityOverrides so it survives restart. |
| GET | /plugins/signalk-pypilot-newui/prechecks | Pre-departure autopilot check verdict: ready / ready-with-caveats / do-not-engage + per-item detail. |
| POST | /plugins/signalk-pypilot-newui/doctor/start | Start a diagnostic session (query ?duration=180). Requires AP engaged. |
| POST | /plugins/signalk-pypilot-newui/doctor/cancel | Cancel the current session. |
| GET | /plugins/signalk-pypilot-newui/doctor/status | Session state + progress + result (when completed). |
| POST | /plugins/signalk-pypilot-newui/doctor/apply/:id | Apply one gain suggestion. The FIRST apply of the session copies the profile into a new one; body { "profileName": "..." } names it (default <profile> - Doc NNN). |
| POST | /plugins/signalk-pypilot-newui/doctor/apply-all | Apply every non-dismissed suggestion (all land in the same forked profile). |
| POST | /plugins/signalk-pypilot-newui/doctor/dismiss/:id | Mark a suggestion as dismissed (user rejects it). |
| POST | /plugins/signalk-pypilot-newui/doctor/reset | Clear result, back to idle. |
| POST | /plugins/signalk-pypilot-newui/route/next | Advance the active route to the next waypoint (requires allowWrites). |
| GET | /plugins/signalk-pypilot-newui/black-box/list | Saved black-box incidents (summary, seen flag, note). |
| GET | /plugins/signalk-pypilot-newui/black-box/incident/:id | One incident as JSON (samples, events, note). |
| POST | /plugins/signalk-pypilot-newui/black-box/mark | Mark now: open an incident (1 min before + 1 min after). |
| POST | /plugins/signalk-pypilot-newui/black-box/note/:id | Set the incident note. Body: { "note": "...", "append": false }. |
| POST | /plugins/signalk-pypilot-newui/restart-pypilot | SSH sv restart of pypilot core+web on the TinyPilot. |
| POST | /plugins/signalk-pypilot-newui/debug-cmd | Run one of a closed whitelist of preset diagnostic / restart commands over SSH. Body: { "preset": "<name>" }. |
| POST | /plugins/signalk-pypilot-newui/ssh-exec | Free-form SSH command (Remote Control Console). Body: { "cmd": "<any shell>" }. Signal K admin session only. |
| POST | /plugins/signalk-pypilot-newui/options | Save the visor's own settings (connection, SSH, nudge steps, absorb provider, essentials-only); only those keys are merged. |
| GET | /plugins/signalk-pypilot-newui/admin/status | Admin PIN set / unlocked. POST /admin/unlock {pin}, /admin/lock, /admin/pin {pin, current}. The key goes in the x-pnu-admin header. |
| GET | /plugins/signalk-pypilot-newui/backup/status | Settings backups in ~/Backups-pypilot-newui. POST /backup/now, GET /backup/download/:name\|latest. |
| GET | /plugins/signalk-pypilot-newui/backup/restore/preview/:name | What a copy would restore. POST /backup/restore {name}, GET /backup/restore/status. Profiles only, autopilot off. |
| POST | /plugins/signalk-pypilot-newui/tinypilot/sd-backup | Image the TinyPilot's SD card. Body { "dest": "<id>" } or { "folder": "<path>" }. GET .../sd-backup/status, GET /tinypilot/sd-download/:name?dest=, GET /tinypilot/folders?path=. |
| POST | /plugins/signalk-pypilot-newui/trip-recorder/control | Trip in progress: body { "action": "pause\|resume\|stop\|restart\|discard" }. |
| POST | /plugins/signalk-pypilot-newui/black-box/seen-all | Mark every incident reviewed. |
| POST | /plugins/signalk-pypilot-newui/pause | Disconnect local socket (for scripts). |
| POST | /plugins/signalk-pypilot-newui/resume | Reconnect local socket (for scripts). |
Support & feedback
Questions, ideas and experiences from other boats: the PyPilot New-UI thread on the OpenMarine forum.
Found a bug? Press Capture diagnostic (Setup → Autopilot check, or Info next to Feedback), review the report, download it and attach it to an issue on GitHub or to your forum post, with what you expected and what happened. The report holds versions, the autopilot check, pypilot's Signal K access, who sends the heading, the settings and the last events; position, vessel name and MMSI, passwords, PIN and tokens are removed and public addresses masked (local network addresses stay).
Development
git clone https://github.com/Aitonos/signalk-pypilot-newui
cd signalk-pypilot-newui
npm install
npm run build
npm testTo try it on a Signal K server, link the folder into ~/.signalk/node_modules/signalk-pypilot-newui and restart Signal K.
Acknowledgements
- Sean D'Epagnier — creator of pypilot, the open-source autopilot that makes this plugin possible.
- Jean-Marc at Navitop — for the TinyPilot hardware and marine integrations, and for making pypilot accessible to European sailors.
- Panaaj — for
pypilot-autopilot-provider, the reference AP v2 provider this plugin builds on. - @dirkwa — for
@signalk/collision-alerts, the CPA/TCPA engine behind the AIS overlay. - The Signal K community and OpenPlotter for the open ecosystem this plugin runs on.
Hall of fame
Sailors whose testing changed the plugin:
- Michael (Moeritsen), OpenMarine forum: tested on several Raspberry Pi systems with three TinyPilots, with and without IMU and wind sensor. He found that the autopilot could not be disengaged from the viewer while the link to pypilot was down, which led to 3.15.8 (disengage always possible, autopilot state kept when the link drops). He also reported warnings left in Spanish, constant connection warnings with the pilot switched off and how KIP has to be set up, and earlier asked for the course-change click counter and a more readable Tune screen (3.15.0).
License
AGPL-3.0-or-later, Aitonos. See LICENSE and NOTICE for third-party attributions.
