signalk-kipcast
v0.3.1
Published
Cast live KIP dashboards to low-cost ESP32 touchscreens, with touch passed back to KIP
Maintainers
Readme
signalk-kipcast
Put live KIP dashboards on low-cost ESP32 touchscreens around the boat.
This Signal K plugin runs KIP in headless Chromium on the server and streams it as JPEG frames over WiFi to Waveshare ESP32-S3 touchscreens: the 7" (800×480) and the 4" (480×480). Touches on the screen are sent back to KIP as real touch events, so tapping, swiping between dashboards and KIP's menus all work as they do on a tablet.
Each display has its own id, and each id gets its own KIP, drawn at that screen's size with its own login and dashboards.
The screens need the KIPCast display firmware, which you can install from Chrome or Edge with the web installer. The full instructions are in the KIPCast repository.
Requirements
- Signal K with KIP installed
- Node.js 22.12 or later
- Chromium:
sudo apt install chromium
Each connected display has its own Chromium, which uses about 370 MB on a Pi 5. A display's Chromium is shut down 5 minutes after its screen disconnects.
Setting up
- Install KIPCast from the Signal K App Store, then enable it in Server → Plugin Config → KIPCast.
- Install the firmware on a screen with the web installer, then give it your WiFi details and a display id on its setup page. It finds the Signal K server by itself.
- Open Webapps → KIPCast. The screen appears in the list once it connects.
When a plugin update comes with new display firmware, Webapps → KIPCast and the plugin's status line say which screens need it. Update a screen by running the web installer again; it keeps its settings.
Recommended workflow for a new screen size
Editing KIP's layout on the touchscreen itself is fiddly, so build the dashboards on a computer and use the screen only to check the result:
- Create a Signal K user for the screen size, for example
kip480for the 4" screens, in Security → Users. - Build the dashboards in an ordinary browser. Open KIP, log in as that user, and add the dashboards and widgets.
- Log the display in as the same user. In Webapps → KIPCast, click Open for the display and log its KIP in as that user. The dashboards load from the Signal K server.
- Fine-tune while watching the screen. The viewer is drawn at the screen's exact size and everything you do in it appears on the screen straight away.
Security
The browser viewer on port 3050 uses your Signal K login: open it with Open in Webapps → KIPCast, which gives it a pass that lasts 12 hours. This relies on Signal K having security turned on, and can be switched off in the plugin settings.
The screens connect on port 3051, which has no login because an ESP32 can't log in. Anything on the network that speaks KIPCast's protocol can show and touch a display's KIP, so keep KIPCast on a network you trust.
Settings
| Setting | Default | Notes |
|---|---|---|
| Dashboard URL | http://localhost:3000/@mxtommy/kip/ | Any web page works, not just KIP. |
| Default width / height | 800 × 480 | Only for a display id the server has never seen. Screens report their own size. |
| JPEG quality | 70 | |
| Max frames per second | 8 | Per display. Frames are only sent when the page changes. |
| Display TCP port | 3051 | Port the screens connect to. |
| Browser viewer port | 3050 | |
| Input mode | touch | Switch to mouse if a page ignores touch events. |
| Chromium path | auto | |
| Browser viewer needs a Signal K login | on | |
Licence
MIT
