Commit Graph
117 Commits
Author SHA1 Message Date
larssandandClaude Opus 5.5 196437d25b feat(audio): choose a male or female local voice per language
The installer now fetches one male and one female Piper voice per language (Swedish
NST/Lisa, English Ryan/Lessac), with genders confirmed by measuring each voice's pitch
rather than guessed from the name. Settings -> Audio gets a voice selector per language
with its own Test button that always plays the Piper voice. Male is preselected for both.

The integration test now runs its server with an empty home directory, so voices
installed on the developer's own machine can't leak into it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 20:29:59 +02:00
larssandandClaude Opus 5.5 e8a2799a92 feat(audio): add offline local neural voice via Piper (sv + en)
Announcements can use Piper, a free local neural TTS, instead of the browser's system
voice. No account, no paid service, and it keeps working with no internet at the track.

- npm run tts:install (or Settings -> Audio -> Install) downloads the standalone Piper
  release for Linux/Windows/macOS plus Swedish and English voices into piper/ once
- server/tts.js generates each line once, one at a time, and caches it as WAV under
  data/tts/; a new line takes ~0.3 s with the standalone build
- src/piper_speech.js plays it and falls back to the browser voice if Piper is missing,
  errors, or takes over 2.5 s, so no announcement is lost and timing is never held up
- "Pre-generate phrases and driver names" renders every fixed phrase and name in both
  languages before race day

Browser voice stays the default. Generation routes fall under the admin PIN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 19:28:15 +02:00
larssandandClaude Opus 5.5 9016ce02e4 feat(auth): add optional admin PIN for all API writes
Off by default. Once a PIN is set in Settings -> System & backup, every non-GET /api/*
request (plus GET /api/ammc/config) needs a signed 30-day HttpOnly cookie, which also
closes the unauthenticated /api/update/run restart trigger. A 401 opens a PIN dialog
and the pending save is retried after login. Reads stay open because the public overlay
hydrates through GET /api/state. Optional RC_ADMIN_ALLOWED_CIDRS restricts the same
routes by client address.

The PIN hash and signing secret live in data/, outside the app_state blob, so they
never leak through GET /api/state, exports or backups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 22:14:58 +02:00
larssandandClaude Sonnet 5 d76b0e8eef Refresh stale screenshots and add one for Event Manager's new tabs
guide.jpg was captured before this session's Schedule feature and video guides existed,
so it was missing both. Event Manager's tabbed layout (also from this session) had never
been pictured in the README at all. Added scripts/capture-screenshots.mjs as a reusable
tool for this instead of another throwaway script, since screenshot refreshes are clearly
a recurring need - reuses the same isolated-server/headless-Chrome pattern as the video
recorder and test suite, with one shared seeded demo dataset so future captures stay
visually consistent.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 17:30:44 +02:00
larssandandClaude Sonnet 5 3e02ba9aad Link the video guides from README, README.sv, and the in-app Guide page
Commit all 7 recorded clips to docs/videos/ (alongside the existing docs/screenshots/)
instead of leaving them in the gitignored video-guides/ folder from the earlier
feasibility spike - they're meant to be shipped, discoverable assets now, not scratch
output. scripts/record-video-guides.mjs writes there by default going forward.

Added a "Video Guides" section to README.md/README.sv.md (Getting started + Interface
tour groups) and a matching in-app "Video guides" panel on the Guide page, right after
the overview cards - the most discoverable spot for a brand-new user. Links point at
/docs/videos/<name>.mkv, served by the server's existing /docs static route.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 18:29:32 +02:00
larssandandClaude Sonnet 5 50586e8859 Fix malformed race clock format and refresh docs screenshots
formatRaceClock rendered a doubled-up, garbled time (e.g.
"02:48.20:207") everywhere a race clock is shown - Timing, Overlay,
Results archive, Judging, Training stint logs - because it
concatenated both a centiseconds and a milliseconds computation into
the same string. Only the milliseconds part was ever meant to be
there. Found while building realistic demo data for new screenshots,
since every prior test/demo session was empty and never exercised
this code path with a real result.

Also regenerates all screenshots in docs/screenshots against a
realistic seeded race (drivers, cars, qualifying heats, finals,
practice history, a real judging correction) instead of empty demo
data, adds two new ones (Managed AMMC config, the in-app Guide page)
aimed at helping a new user understand initial setup, removes 6
screenshots orphaned by an earlier README revision, and updates both
README.md and README.sv.md's screenshot tables accordingly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 20:03:10 +02:00
larssand b3bec531de connecton satus mobil profile 2026-09-08 19:27:37 +02:00
larssand a0c3d3039e Separat status och mottagningsräknare för varje kanal.
Senaste råmeddelande, fel och ignoreringsorsaker.
Pausa visning, rensa och kopiera logg.
Uppdateras utan att störa inställningsfält eller tidtagning.
2026-09-08 18:37:47 +02:00
larssand 8aedf83826 fix all overlays 2026-09-08 18:26:30 +02:00
larssand 443434d569 fix status and roadmap 2026-09-08 17:26:55 +02:00
larssand 9c74c1f256 add version 2026-09-05 13:39:50 +02:00
larssand 78c650bde7 raceday kontroller 2026-09-05 09:59:55 +02:00
larssand bfe13de59c fixrefresh in mbil prof 2026-09-05 09:49:19 +02:00
larssand 285babcfcf add more stats to mobile and fix refresh stint 2026-09-04 16:41:51 +02:00
larssand 4068cc7c19 add more stats to mobile profile 2026-09-04 16:17:45 +02:00
larssand 142c45be04 add replay session 2026-09-04 15:58:24 +02:00
larssand 2d56b74731 Add local and public QR sharing for training profiles 2026-09-03 20:15:13 +02:00
larssand 4f847610dc Improve training statistics, achievements and stable pace audio 2026-09-03 06:36:17 +02:00
larssand f2ba4b3c7b Enable bundled AMMC tools and document decoder simulation 2026-09-02 21:13:49 +02:00
larssand 9aeb638211 add glibc rec 2026-09-02 19:53:16 +02:00
larssand 483a9dbd5a Fix lap limits and five-minute stint statistics 2026-09-02 19:36:25 +02:00
larssand f561dd8feb new raceday and backup 2026-09-01 07:07:23 +02:00
larssand c2bfa97d30 update readme install 2026-08-30 22:04:49 +02:00
larssand 5ed193cdeb fix import av csv 2026-08-30 16:14:45 +02:00
larssand 5366043979 fix stats sida 2026-08-30 14:31:53 +02:00
larssand 694aba5f3d Add motivational training challenges and shared club goals 2026-08-30 09:16:11 +02:00
larssand 27dcbd92aa add pic 2026-08-29 10:04:16 +02:00
larssand e5e1754185 add more train stats per driver 2026-08-29 09:56:45 +02:00
larssand 375bfb2416 förbättreing tränings 2026-08-28 21:44:23 +02:00
larssand c6262aceab fix live leaderbord details 2026-08-28 21:12:43 +02:00
larssand 3cf68cf34a branding och namechange 2026-08-28 20:56:58 +02:00
larssand 5cab3a0e17 add screenshot 2026-08-28 20:45:21 +02:00
larssand 0a05f04075 fix tränings statse sidan 2026-08-28 14:12:09 +02:00
larssand 34e55ff7f6 add custome voice 2026-08-28 13:47:25 +02:00
larssand fa3e5ee379 add save sound 2026-08-28 13:39:12 +02:00
larssand 5f79228941 Add configurable manifest-driven race audio system 2026-08-28 13:29:27 +02:00
larssand e5af42ce2d Add CSV imports and granular competition data cleanup 2026-08-27 17:56:50 +02:00
larssand a87c64a47c Improve decoder setup UI and add configurable training timers 2026-08-27 17:29:44 +02:00
larssand 808d5b2657 Decoder-dokumentationen är nu tydligare och mer komplett 2026-08-26 08:55:19 +02:00
larssand 84302a770d Mobilprofilen visar nu per vald klassom det finns depå,mellantids
decoders
2026-08-25 20:04:14 +02:00
larssand abf887dccd Split- och depåstatistik är implementerad 2026-08-25 20:00:55 +02:00
larssand 8ea8b3a84e Add multi-decoder split and pit timing support 2026-08-25 19:45:40 +02:00
larssand 6f02e955a5 Add class-specific driver training profiles and metadata 2026-08-24 22:05:50 +02:00
larssand 3aeb77a042 add stat 2026-08-24 21:28:38 +02:00
larssand 355a1ad3b0 Förbättrat ljudsystemet 2026-08-24 19:40:39 +02:00
larssand 2e6866a013 Add simplified Open Practice flow and reorganize 2026-08-24 19:25:21 +02:00
larssand 5a6e51c51b Add persistence and SQLite integration tests 2026-08-24 19:08:21 +02:00
larssand e22077b4d5 Ny automatisk testsvit för träningslogiken. 2026-08-24 18:35:22 +02:00
larssand 8b7153bf6a fix start and install bat 2026-08-24 18:29:39 +02:00
larssand aa74da0bdf Add per-driver live stats for timed practice sessions 2026-08-24 17:36:03 +02:00