Commit Graph
10 Commits
Author SHA1 Message Date
jschoubben b6e6e9d565 Add an example site that calls every route, served at /examples/
A reader learns the API fastest from working calls: one page per area
(circuit browser, track images, GPS traces on a map, grand prix lookup,
posters, Kometa) shows the exact request URL next to its answer. Pages
call their own origin when the app serves them, and the public service
when opened from disk or given ?api=. Posters render only on a button
press, since each one fetches map tiles on the server. A body that does
not match the asked format is said in red, never shown as success.

The image copies examples/ so the deployed app serves the same pages.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 09:48:04 +01:00
jschoubben e976f1d8f5 Remove copies, backups and caches from the repository
Nothing reads them, and each is a copy of what stays or can be fetched
again:
- cache/: FastF1's download cache (93 files, 562 MB) of the trace
  generator; it fetches it again when run.
- circuits_bak/: the circuit tree before its move to lowercase slugs; 117
  of its 118 traces are identical in circuits/, the last is a FastF1
  sketch in metres, not a GPS trace.
- Grand Prix/: 18 traces filed by race name, all identical in circuits/.
- Data/circuits.json: the circuit list in its first format.
- __pycache__/, .idea/: bytecode and editor settings.
- fast_f1_service.py: an empty file.

.gitignore had ".nova__pycache__/" on one line, so neither applied; it now
ignores .nova, __pycache__/, cache/ and .idea/.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
2026-11-27 09:40:28 +01:00
jschoubben 847ae2bae1 Add Plex-ready race + season poster endpoints
GET /posters/race/{grand_prix_name}/{season}.png
GET /posters/season/{season}.png

1000x1500 PNGs composed with Pillow + cairosvg:
checkered-flag strips top/bottom, F1 wordmark, round/year ribbon,
GP name, rasterised track outline (white), race date. Season poster
is wordmark + giant year + 'WORLD CHAMPIONSHIP'. Cached under
cache/posters/ so cold renders happen once.
2026-06-13 20:57:28 +02:00
Tomislav Bacinger d27b6c11f5 Git Ignore File 2024-05-15 14:24:32 +02:00
Tomislav Bacinger 647aaa2c85 Ignore QGIS 2020-09-24 13:50:29 +02:00
Tomislav Bacinger 0ccf3b1f96 Exclude QGIS folder 2020-09-24 13:50:04 +02:00
Tomislav Bacinger be96c14310 Exclude QGIS folder 2020-09-23 10:01:25 +02:00
Tomislav Bacinger 7fd53b19f0 qgis 2020-09-23 10:00:39 +02:00
Tomislav Bacinger cfa0cd0b9f qgis 2020-09-22 13:18:16 +02:00
Tomislav Bacinger e697a734c7 Add .gitignore 2020-09-21 19:11:23 +02:00