Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
cc15296
chore: Deps
SvenFinn Feb 7, 2026
2a124cc
feat: Rework log parsing
SvenFinn Feb 7, 2026
ad333a3
feat: Switch to typed streams
SvenFinn Feb 8, 2026
c244d23
fix: Correct hit id magic in log
SvenFinn Feb 10, 2026
3b516f3
fix: Frontend now correctly handles holes in hit data
SvenFinn Feb 16, 2026
61c6c3a
chore: Dependencies
SvenFinn Feb 16, 2026
7219f36
fix: Typo in multicast address
SvenFinn Feb 16, 2026
6aaa712
fix: ranges-log ssh no longer crashing on file change
SvenFinn Feb 16, 2026
2696dd1
feat: Initial refactor of the multicast interface
SvenFinn Mar 4, 2026
7d38236
fix: New volume path
SvenFinn Mar 7, 2026
5529dc5
fix: make lastIp non-unique
SvenFinn Mar 7, 2026
db2018b
chore: Dependencies
SvenFinn Mar 7, 2026
4870f83
Remove unnecessary dependency
SvenFinn Mar 8, 2026
5ba99bb
feat: Change range protocol to explicitly represent shooter ambiguity
SvenFinn Mar 8, 2026
211a487
feat: Add (dormant) extrapolation code
SvenFinn Mar 8, 2026
f5c9099
fix: Database unhealthy detection
SvenFinn Mar 8, 2026
ddf60bb
fix: Dropping range state updates
SvenFinn Mar 14, 2026
cd8052b
fix: Log not working on free ranges
SvenFinn Mar 14, 2026
02334dc
fix: SSMDB2 Stabilizer
SvenFinn Mar 14, 2026
00b3b25
fix: Height of the range grid
SvenFinn Mar 14, 2026
ac3191b
fix: AhoCorasick returns the end position, not the start
SvenFinn Mar 14, 2026
1874523
feat: Switch to more sophisticated constraint solver for multicast
SvenFinn Mar 14, 2026
b5c9901
chore: Dependencies
SvenFinn Mar 14, 2026
e0839b8
feat: Move logger to lib directory
SvenFinn Mar 22, 2026
ad0f5f0
fix: Prisma migrations not working
SvenFinn Mar 22, 2026
461d413
feat: Move streams to lib directory
SvenFinn Mar 22, 2026
dba0753
feat: Move ttl to lib dir
SvenFinn Mar 22, 2026
c631839
feat: Move database clients to lib dir
SvenFinn Mar 22, 2026
5e0028f
feat: Add endpoint lib
SvenFinn Mar 22, 2026
de171ce
chore: Dependencies
SvenFinn Mar 22, 2026
ac29d7d
build(deps): bump the npm_and_yarn group across 12 directories with 7…
dependabot[bot] Mar 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Meyton Message Protocol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Meyton Message Protocol

Target IP: 224.0.0.3 UDP, Port:49497

| Start Address | Type | Size (Bytes) | Description |
| ------------- | -------- | -------------- | ----------------------------------------------------------------------------------------------------------- |
| 0x00 | bytes | 36 | 00 00 03 01 06 08 53 19 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 00 00 00 00 00 00 00 01 00 00 00 |
| 0x24 | uint32 | 4 | Message ID, 0x35 for Message, 0xFB is for a simulated button press |
| 0x28 | Bitfield | 52 / 53 | Target RangeNo (1-416), lsb of 0x28 gets ignored |
| 0x5D | Unknown | 79 | Padding? Always 0x00 |
| 0xAC | uint32 | 4 | Message Length |
| 0xB0 | char[] | Message Length | ASCII (HTML) Message Content |
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include:
- ./pgadmin/docker-compose.yaml
- ./migrate/docker-compose.yaml

services:
dc-database:
Expand All @@ -19,23 +20,7 @@ services:
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
dc-db-migrate:
container_name: dc-db-migrate
image: ghcr.io/svenfinn/dc-db-migrate:${APP_VERSION}
networks:
- displaycontroller
build:
context: .
dockerfile: Dockerfile
args:
- SELF_DB_HOST=${SELF_DB_HOST}
- SELF_DB_USER=${SELF_DB_USER}
- SELF_DB_PASS=${SELF_DB_PASS}
- SELF_DB_NAME=${SELF_DB_NAME}
depends_on:
dc-database:
condition: service_healthy
- postgres_data:/var/lib/postgresql

volumes:
postgres_data:
17 changes: 9 additions & 8 deletions database/local/Dockerfile → database/migrate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ ARG SELF_DB_PASS

FROM base AS deps

COPY package.json package-lock.json schema.prisma ./
COPY --from=local-db package.json package-lock.json schema.prisma ./
RUN npm ci --omit=dev --loglevel=info;

FROM base AS build

COPY package.json package-lock.json schema.prisma ./
COPY --from=local-db package.json package-lock.json schema.prisma ./
RUN npm ci --loglevel=info;

COPY . .
COPY --from=local-db . .
RUN export SELF_DB_URL="postgresql://$SELF_DB_USER:$SELF_DB_PASS@$SELF_DB_HOST:5432/$SELF_DB_NAME" && \
npm run build && \
echo "SELF_DB_URL=postgresql://$SELF_DB_USER:$SELF_DB_PASS@$SELF_DB_HOST:5432/$SELF_DB_NAME" > dist/.env;
COPY migrations dist/migrations
COPY src/entrypoint.sh prisma.config.ts schema.prisma dist/
COPY --from=local-db migrations dist/migrations
COPY --from=local-db prisma.config.ts schema.prisma dist/
COPY entrypoint.sh dist/

FROM base AS final

Expand All @@ -31,8 +32,8 @@ RUN apk add --no-cache --update netcat-openbsd nano
RUN adduser -D display-user && chown -R display-user /app
USER display-user

COPY --from=build /app/dist ./
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/package.json ./package.json
COPY --from=build --chown=display-user /app/dist ./
COPY --from=deps --chown=display-user /app/node_modules ./node_modules
COPY --from=deps --chown=display-user /app/package.json ./package.json

CMD ["sh", "entrypoint.sh"]
19 changes: 19 additions & 0 deletions database/migrate/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
dc-db-migrate:
container_name: dc-db-migrate
image: ghcr.io/svenfinn/dc-db-migrate:${APP_VERSION}
networks:
- displaycontroller
build:
context: .
dockerfile: Dockerfile
args:
- SELF_DB_HOST=${SELF_DB_HOST}
- SELF_DB_USER=${SELF_DB_USER}
- SELF_DB_PASS=${SELF_DB_PASS}
- SELF_DB_NAME=${SELF_DB_NAME}
additional_contexts:
- local-db=../../lib/database/local
depends_on:
dc-database:
condition: service_healthy
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ services:
depends_on:
dc-database:
condition: service_healthy
dc-db-migrate:
condition: service_completed_successfully
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: displaycontroller

include:
- proxy/docker-compose.yaml
- database/local/docker-compose.yaml
- database/docker-compose.yaml
- serverState/docker-compose.yaml
- syncTime/docker-compose.yaml
- screens/docker-compose.yaml
Expand Down
Loading