Skip to content

MoreTore/connect-killer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an open-source alternative to openpilot connect for use with openpilot software. To see the server in action, go to: https://stable.konik.com/

Thank you https://konik.com for hosting!

To make your device connect to the server, complete the following steps:

Note. There is no need to unpair the device from comma connect.

  • Step 1: SSH into the device.

  • Step 2 (Cloned comma devices only): Make sure you generate unique OpenSSL key pairs on the device. You can copy a script from here https://github.com/1okko/openpilot/blob/mr.one/1.sh to generate the keys.

  • Step 3: Delete the device dongle ID by running rm /data/params/d/DongleId and rm /persist/comma/dongle_id

If you are running a custom fork of openpilot that already has the code changes required, then you can reboot the device now and scan the qr code on the website pair the device.

If you are using a fork that does not have the code changes, you will need to continue with the following steps:

Step 4: export the server urls in launch_openpilot.sh by adding this to that file.

#!/usr/bin/bash
export API_HOST=https://api.springerelectronics.com
export ATHENA_HOST=wss://athena.springerelectronics.com
# Any other custom launch options here
exec ./launch_chffrplus.sh

Step 5: Commit your changes and disable automatic software updates in the openpilot settings (if applicable). git commit -a -m "switched to konik server"

Step 5: Reboot the device and scan the QR code on the website. The QR code must be scanned with the konik website and not comma connect.

Hosting you own instance (Hardcore)

To get started with hosting your own instance, inspect the docker compose yaml to adjust the volume mount points.

services:
db:
image: postgres:15.3-alpine
restart: unless-stopped
ports:
- 5432:5432
network_mode: "host"
volumes:
- pgdata:/var/lib/postgresql/data
#- ./pgvector:/pgvector
env_file:
- .env
# entrypoint: ["sh", "/pgvector/init_pgvector.sh"]
redis:
image: redis:latest
restart: unless-stopped
ports:
- 6379:6379
network_mode: "host"
minikeyvalue:
build:
context: ./minikeyvalue
dockerfile: Dockerfile
volumes:
- /mnt/raid5/kvstore:/tmp
ports:
- "3000-3005:3000-3005"
network_mode: "host"
restart: unless-stopped
connect:
build: .
restart: unless-stopped
ports:
- "3222:3222"
- "3223:3223"
- "3111:3111"
- "3112:3112"
depends_on:
- db
# - redis
- minikeyvalue
env_file:
- .env
network_mode: "host"
volumes:
- cargo-cache:/usr/local/cargo
volumes:
pgdata:
cargo-cache:
connect-target:
fill out the .env_template and rename it to .env
POSTGRES_DB=connect_development
POSTGRES_USER=loco
POSTGRES_PASSWORD=
DATABASE_URL=postgres://loco:loco@localhost:5432/connect_development
REDIS_URL=redis://redis:6379
MAILER_HOST=mailer
CONNECT_PORT=3111
USERADMIN_PORT=3112
GITHUB_SECRET=
GITHUB_CLIENT=
SERVER_SECRET=
HF_TOKEN=
HF_HUB_ENABLE_HF_TRANSFER=1
MOUNT_POINT=/mnt/raid5
MKV_ENDPOINT=http://localhost:3000
ADMIN_JWT=
API_ENDPOINT=https://api.springerelectronics.com
WS_ENDPOINT=https://api.springerelectronics.com/ws
create openssl keys for your domain and put them into self_signed_certs folder. See here

connect-killer/src/app.rs

Lines 151 to 158 in 4b9be82

let config = RustlsConfig::from_pem_file(
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("self_signed_certs")
.join("cert.pem"),
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("self_signed_certs")
.join("key.pem"),
)
More changes to hard coded values need to be changed to get the frontend working. More work needs to be done to make it easier.

run docker compose up --build

About

Backend Server for Openpilot connectivity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published