Guide Plex and Emby users step by step to the posters, at /guides/

People put the posters in their own libraries (one in an automated F1 library in Emby), and
the only help was the Kometa example page, written for developers. The guides are for people
who are not: numbered steps of one action each, the exact menus and buttons of Plex, Kometa and
Emby as their own documentation names them, boxes to copy, the pictures from the live API,
what to see after a step and what to do when it does not work. The technical details (routes,
options, the address version, a script and Emby's API) sit at the end of each.

guides/ holds the index, plex.html (a Plex TV library on the Personal Media Shows agent, Kometa
pointed at /kometa/formula-1-metadata.yml, its daily run) and emby.html (Kometa needs Plex, so:
Set Image from URL by hand, or picture files named as Emby's TV naming page reads them, and a
script that saves a whole season from the Kometa file). They use the example site's style
sheet; every example page's nav links them, and README.md lists them.

cdn-api.py serves guides/ at /guides/ beside /examples/, and the image copies it. A mount of a
directory the image lacks stops the service at its start, so tests/test_image.py holds that
every directory the app serves is copied by service/Dockerfile.
This commit is contained in:
2026-11-30 12:46:36 +01:00
parent 8754f64f80
commit 09a83f6ad9
20 changed files with 753 additions and 2 deletions
+10 -2
View File
@@ -50,6 +50,13 @@ A race is named as [Jolpica](https://github.com/jolpica/jolpica-f1) (the Ergast
its schedule, and its circuit is found by Jolpica's circuit id (`ergastId` in `circuits.json`), never by the
circuit's name: Jolpica renames circuits (Losail became Lusail), the id stays.
## Guides
Step-by-step guides for putting the posters in a media server, on the site at https://f1-circuits.zurag.be/guides/:
* [Plex](guides/plex.html), with Kometa: https://f1-circuits.zurag.be/guides/plex.html
* [Emby](guides/emby.html), by hand or as picture files: https://f1-circuits.zurag.be/guides/emby.html
## The data
`circuits/circuits.json` holds country → locality → circuit → layout. A circuit has its `name`, its Jolpica
@@ -168,8 +175,9 @@ are fetched only when a picture asks for them, at most two at once; Wikimedia Co
`merge-check.sh` runs before a change merges: every Python file the service ships must parse, and the tests in
`tests/` must pass (every circuit has one unique `ergastId`, a race resolves by it, a failed Jolpica fetch is never
kept, every link in this README leads to a file, an unknown circuit or layout is named; a poster's satellite source,
credits and licence, its options, keys and cache headers, the picture store's cap, and the picks `/picks/…` answers).
kept, every link in this README leads to a file, every directory the service serves is copied into its image, an
unknown circuit or layout is named; a poster's satellite source, credits and licence, its options, keys and cache
headers, the picture store's cap, and the picks `/picks/…` answers).
## Acknowledgment