Skip to content

API Documentation

Generate 800×480 BMP images for E-Ink displays showing F1 race schedules in 1bit, B/W/R, B/W/R/Y, or Spectra 6 mode.

800×480 BMP 1bit / B/W/R / B/W/R/Y / Spectra 6 E-Ink REST API

GET /calendar.bmp

Generates F1 calendar as a BMP image (800×480) for 1bit, 4-bit B/W/R, 4-bit B/W/R/Y, and Spectra 6 E-Ink displays.

Without year plus round or race_key, the next race is selected. Copy round or race_key from /api/races/{year}. Exception: race_key without year returns HTTP 400.

Track style: track_style=relief · Track source: track_source=jules · Colour accents: track_accent=all.

Height and colour divisions are decorative. Uses colours supported by your display. For all four accents use display=spectra6.

GET /api/tracks — All styles, accents and circuits. GET /api/tracks/{circuit_id} — Authors and licences.

GET /api/tracks/{circuit_id}.{svg|png|bmp} · GET /preview/configure/calendar.png — The same track_style, track_source, track_accent parameters.

Madring · SVG · Credits

Parameters

Parameter Type Description
lang string Language code for calendar text
Values: cs, de, en, es, fr, it, ja, nl, pl, pt-BR, sk, tr, zh-CN (default: en)
year integer Season year for specific race
optional — e.g. 2026
round integer Round number from the season race list; ignored without year
optional — e.g. ?year=2026&round=5
race_key string Race identifier from /api/races/{year}; requires year
optional — e.g. 2026-round-6-monaco-2026-06-07
tz string Timezone for schedule times (IANA format)
optional — e.g. America/New_York, Europe/Prague (default: Europe/Prague)
display string Output mode for 1bit, B/W/R, B/W/R/Y, or Spectra 6 displays
Values: 1bit, bwr, bwry, spectra6 (default: 1bit)
weather boolean Enable or disable the weather overlay
Values: true, false (default: true)
weather_type string Which weather data variant to render
Values: off, race_day, race, current, weekend (default: race_day)
weekend — Weekend: a second line in the status box with the forecast for qualifying (and the sprint when it fits) and the race, e.g. Q 19° 60% | R 22° 10%. One Open-Meteo request covers the whole weekend, the same one race_day uses. Sessions beyond the 16-day forecast or without a published time are left out; after the race starts only the race weather is shown.
countdown string Countdown in the status box: hours (days and hours, default), days (whole days in tz, changes at local midnight), auto (whole days until 48 h before the start, then days and hours) or off (race date instead of a countdown). Invalid values return HTTP 422.
Values: hours, days, auto, off (default: hours)
weekend_mode string Weekend mode: off (default) or auto. With auto, during the race weekend (from 12 h before the first session) finished sessions get a check mark, the running or next session is marked and the status box counts down to it with its short label (e.g. Q: 3 h). A session counts as finished from its start plus a conservative duration estimate, because the real end is not published. The footer shows this weekend's qualifying and race podiums once available (Jolpica, fetched only in the hours after those sessions), with the season above each column. Invalid values return HTTP 422.
Values: off, auto (default: off)
temp_unit string Temperature unit: c (default, Celsius) or f (Fahrenheit). Converted when the image is drawn from the same cached data, so it costs no extra weather requests. Invalid values return HTTP 422.
Values: c, f (default: c)
track_style string Track style
Values: relief, poster, clean, lino, riso, screenprint, contours, geometric, blueprint, ribbon, mosaic, halftone, negative, papercut, typographic, artdeco, stencil, pixel (default: relief)
track_source string Track source
Values: jules, commons (default: jules)
track_accent string Colour accents
Values: all, mono, red, yellow, blue, green, warm, red-blue, red-green, yellow-blue, yellow-green, cool, red-yellow-blue, red-yellow-green, red-blue-green, yellow-blue-green (default: all)
format string Output format: bmp (default, unchanged) or png. PNG is lossless with exactly the same pixel indices and panel palette (no dithering, no extra colours) and 4–27× smaller, for firmware that decodes PNG. The path stays .bmp; Content-Type, Content-Length and ETag describe the bytes sent. Invalid values return HTTP 422.
Values: bmp, png (default: bmp)
rotate string Rotation: 0 (default) or 180. 180 turns the image upside down without loss (still 800×480, same BMP colour depth) for a panel mounted the other way round. 90/270 are not offered because they would need a portrait layout. Invalid values return HTTP 422.
Values: 0, 180 (default: 0)
theme string Theme: light (default) or dark (experimental). Dark draws white text and lines on a black background; red, yellow and the Spectra 6 colours keep their roles and flags keep their colours. Large black areas can ghost on some e-ink panels, so prefer a full refresh. Rendered on demand, never pregenerated. Invalid values return HTTP 422.
Values: light, dark (default: light)

Response

Content-Type image/bmp image/png (format=png)
Dimensions 800×480
Color depth 1bit / 4-bit B/W/R / 4-bit B/W/R/Y / Spectra 6
Cache public, max-age=3600

BMP responses include ETag. Send If-None-Match to receive 304 when the image is unchanged.

Typical calendar sizes with format=png: 1bit 48 KB → ~10 KB, bwr/bwry 192 KB → ~13 KB, spectra6 385 KB → ~14 KB. Every format and rotation has its own ETag. /calendar.bmp?display=spectra6&format=png&rotate=180

Calendar and teams responses (200 and 304) include X-Next-Refresh-Seconds: a hint of how many seconds until the image is next expected to change (60 to 86400, at most 3600 while hourly refreshed weather is shown). Battery displays can use it as their deep-sleep length; it is only a hint, so a poll may still return 304. /calendar.bmp?countdown=auto&weather=false

Code Examples

# Download next race calendar
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp"

# With Czech language and timezone
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp?lang=cs&tz=Europe/Prague"

# Specific race (year and round)
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp?year=2026&round=6"

# B/W/R/Y output for four-color E-Ink
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp?display=bwry"

# One URL: calendar in race week, teams otherwise
curl -o screen.bmp "https://f1.inkycloud.click/auto.bmp?lang=cs&tz=Europe/Prague"
import httpx

async def get_f1_calendar(lang: str = "en", tz: str = "Europe/Prague"):
    """Download F1 calendar as BMP image."""
    async with httpx.AsyncClient() as client:
        response = await client.get(
            "https://f1.inkycloud.click/calendar.bmp",
            params={"lang": lang, "tz": tz}
        )
        response.raise_for_status()

        with open("calendar.bmp", "wb") as f:
            f.write(response.content)

        print("Calendar saved as calendar.bmp")

# Usage
import asyncio
asyncio.run(get_f1_calendar(lang="cs"))
// Fetch and display calendar
async function loadF1Calendar(lang = 'en', tz = 'Europe/Prague') {
    const url = new URL('https://f1.inkycloud.click/calendar.bmp');
    url.searchParams.set('lang', lang);
    url.searchParams.set('tz', tz);

    const response = await fetch(url);
    const blob = await response.blob();

    // Display in img element
    const img = document.getElementById('calendar');
    img.src = URL.createObjectURL(blob);
}

// Download as file
async function downloadCalendar() {
    const response = await fetch('/calendar.bmp?lang=cs');
    const blob = await response.blob();

    const link = document.createElement('a');
    link.href = URL.createObjectURL(blob);
    link.download = 'f1-calendar.bmp';
    link.click();
}

E-Ink Display Usage

Fetch /calendar.bmp and display directly on your E-Ink display. Recommended refresh interval: every 1-6 hours. Compatible with any 800×480 E-Ink display (e.g., Waveshare 7.5", LaskaKit).

For LaskaKit / zivyobraz.eu:

  1. 1 In zivyobraz.eu select content source: URL with image
  2. 2 Paste URL: https://f1.inkycloud.click/calendar.bmp?lang=cs&tz=Europe/Prague
  3. 3 Set refresh interval to 1-6 hours

GET /teams.bmp

Generate a BMP image showing all F1 teams with their drivers, photos, and championship points in 1bit, B/W/R, B/W/R/Y, or Spectra 6 output modes.

Image attribution and licences (track artwork CC BY 4.0, Open-Meteo weather CC BY 4.0): see Credits. Responses also carry a Link header with rel="license".

Parameters

Parameter Type Description
lang string Language code for calendar text
Values: cs, de, en, es, fr, it, ja, nl, pl, pt-BR, sk, tr, zh-CN (default: en)
year integer Season year for team data
optional — e.g. 2026
display string Display output mode
Values: 1bit, bwr, bwry, spectra6 (default: 1bit)
extra string Optional panel: none (default), countdown, flags, track, weather. Uses local season data and cached weather only; unavailable panels fall back to none.
tz string Optional IANA timezone for extra panels showing a time or date: countdown, flags, track, weather. Defaults to the server's DEFAULT_TIMEZONE; ignored for none or unavailable panels. Invalid values return HTTP 400. Also supported by /preview/configure/teams.png.
temp_unit string Temperature unit of the weather panel (extra=weather): c (default) or f. Invalid values return HTTP 422.
Values: c, f (default: c)
format string Output format: bmp (default, unchanged) or png. PNG is lossless with exactly the same pixel indices and panel palette (no dithering, no extra colours) and 4–27× smaller, for firmware that decodes PNG. The path stays .bmp; Content-Type, Content-Length and ETag describe the bytes sent. Invalid values return HTTP 422.
Values: bmp, png (default: bmp)
rotate string Rotation: 0 (default) or 180. 180 turns the image upside down without loss (still 800×480, same BMP colour depth) for a panel mounted the other way round. 90/270 are not offered because they would need a portrait layout. Invalid values return HTTP 422.
Values: 0, 180 (default: 0)
theme string Theme: light (default) or dark (experimental). Dark draws white text and lines on a black background; red, yellow and the Spectra 6 colours keep their roles and flags keep their colours. Large black areas can ghost on some e-ink panels, so prefer a full refresh. Rendered on demand, never pregenerated. Invalid values return HTTP 422.
Values: light, dark (default: light)

Calendar and teams responses (200 and 304) include X-Next-Refresh-Seconds: a hint of how many seconds until the image is next expected to change (60 to 86400, at most 3600 while hourly refreshed weather is shown). Battery displays can use it as their deep-sleep length; it is only a hint, so a poll may still return 304.

Response

Content-Type image/bmp image/png (format=png)
Dimensions 800×480
Color depth 1-bit / 4-bit / Spectra 6
Cache no-cache

GET /auto.bmp

One URL that returns the calendar or the teams BMP directly (no redirect). Use it on displays that can poll only one address, such as Živýobraz.eu or simple ESP32 firmware.

Parameters

Parameter Type Description
mode string race_week: the calendar from lead_hours before the first session of the next race weekend until the next race is selected (4 h after the start), teams otherwise, including the off-season and cancelled races. daily: calendar on even and teams on odd local days in tz, switching at local midnight. Invalid values return HTTP 422.
Values: race_week, daily (default: race_week)
lead_hours integer race_week only: how many hours before the first session (FP1) the calendar appears. Values outside 0–168 return HTTP 422.
0–168 (default: 48)
extra string Teams panel on this URL; defaults to countdown (days to the next race). Use none for the plain grid.
lang, tz, display, weather, weather_type, countdown, weekend_mode, temp_unit, track_style, track_source, track_accent, year, format, rotate, theme — Same values as on /calendar.bmp and /teams.bmp; each parameter applies to its own screen. year selects the teams season; the calendar always shows the next race.

X-Active-Screen tells which screen was returned (calendar or teams). The ETag is that of the active screen, so a 304 is only returned while the display already shows that screen. X-Next-Refresh-Seconds and the Cache-Control max-age never reach past the next switch.

Other Endpoints

GET /api/teams/{year}

Get all teams with drivers and points for a season (JSON)

GET /api/standings/leader

Get current championship leaders (driver and constructor)

/api/standings/leader/{year}

GET /api/races/{year}

List of all races for a given season

GET /api/race/{year}/{round}

Detailed race information including schedule

GET /api/stats

Request statistics for the last 24 hours

GET /api/stats/history

Hourly request history; limit: 1–720 (default 168).

GET / POST /api/perf-metrics

GET: performance summaries; hours: 1–720 (default 24). POST: numeric Web Vitals; visitor and device metadata are ignored.

GET /preview/{screen_type}.png

GET /preview/configure/{screen_type}.png

PNG previews for calendar or teams; lang selects the language. Configure previews also accept display and calendar weather_type (default off).

extra — Optional panel: none (default), countdown, flags, track, weather. Uses local season data and cached weather only; unavailable panels fall back to none.

track_style, track_source, track_accent — Track style, Track source, Colour accents (calendar).

countdown — Countdown in the status box: hours (days and hours, default), days (whole days in tz, changes at local midnight), auto (whole days until 48 h before the start, then days and hours) or off (race date instead of a countdown). Invalid values return HTTP 422. (calendar)

weekend_mode — Weekend mode: off (default) or auto. With auto, during the race weekend (from 12 h before the first session) finished sessions get a check mark, the running or next session is marked and the status box counts down to it with its short label (e.g. Q: 3 h). A session counts as finished from its start plus a conservative duration estimate, because the real end is not published. The footer shows this weekend's qualifying and race podiums once available (Jolpica, fetched only in the hours after those sessions), with the season above each column. Invalid values return HTTP 422. (calendar)

temp_unit — Temperature unit: c (default, Celsius) or f (Fahrenheit). Converted when the image is drawn from the same cached data, so it costs no extra weather requests. Invalid values return HTTP 422. (calendar, teams)

theme — Theme: light (default) or dark (experimental). Dark draws white text and lines on a black background; red, yellow and the Spectra 6 colours keep their roles and flags keep their colours. Large black areas can ghost on some e-ink panels, so prefer a full refresh. Rendered on demand, never pregenerated. Invalid values return HTTP 422. (calendar, teams)

GET /health/ready

Database, writable storage and image freshness; HTTP 200 when ready, 503 otherwise.

GET /health

Service health check

GET /api

JSON API — API documentation in JSON format

Statistics read APIs require X-Admin-Token or Authorization: Bearer <token> when ADMIN_API_TOKEN is configured. With MINIMAL_DATA_MODE=true, all statistics APIs return 410.

Rate-limited requests return 429 with Retry-After.

Menu