Skip to content

DallasFormulaRacing/pie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ev-26-raspi

CAN bridge + web GUI for the DFR EV-26 FSAE car. Runs on a Raspberry Pi connected to the vehicle CAN bus.

  • can-bridge — Rust backend that reads/writes CAN FD frames and exposes a WebSocket API (port 9002)
  • gui — React frontend served by Caddy, reverse proxies /ws to the backend

Prerequisites

  • Podman (or Docker)
  • just command runner
  • GHCR login: podman login ghcr.io

Just Commands

Command Description
just build Cross-build both container images for arm64
just push Push images to ghcr.io/schommie/
just deploy Build + push, then run podman auto-update on the Pi
just dev Start dev environment with hot reload
just up Start production stack on the Pi
just down Stop all services
just check Run cargo check for can-bridge (cross-compile)

CI/CD Workflow

Deploy from dev machine

just deploy

This builds arm64 images, pushes them to GHCR, and prints a reminder to update the Pi.

On the Raspberry Pi

Pull and restart with the latest images:

sudo podman auto-update

Or manually:

podman-compose pull && podman-compose up -d

Auto-start on boot

Place Quadlet .container files in /etc/containers/systemd/ on the Pi:

/etc/containers/systemd/can-bridge.container

[Container]
Image=ghcr.io/schommie/ev-can-bridge:latest
Network=host
AutoUpdate=registry

[Service]
Restart=always

[Install]
WantedBy=default.target

/etc/containers/systemd/gui.container

[Container]
Image=ghcr.io/schommie/ev-gui:latest
Network=host
AutoUpdate=registry

[Service]
Restart=always

[Install]
WantedBy=default.target

Then reload and start:

sudo systemctl daemon-reload
sudo systemctl start can-bridge gui

Local Development

just dev

Starts both services with volume mounts for hot reload — can-bridge uses cargo-watch, gui uses Vite dev server on port 5173.

About

tools and scripts for the raspi on the 2026 ev

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors