5 Commits
Author SHA1 Message Date
hermes 913759918b Optional Firecrawl scraping of the full featured article
smoke / hello (push) Successful in 2s
build-and-publish / publish (push) Successful in 14s
Add FIRECRAWL_API_URL / FIRECRAWL_API_KEY env config. When the URL is
set, the featured-article page is scraped through Firecrawl (main
content only) and the richer text replaces the short feed extract,
still capped at 4000 chars. Unset URL or any scrape failure falls
back to the original REST-feed extract behaviour automatically.

Also wire SLOW_RETRY_MINUTES through docker-compose (was missing).
2026-10-11 09:40:16 +00:00
hermes 0254db53e9 Add TRMNL e-ink feed endpoint /trmnl.json 2026-10-05 15:43:49 +02:00
hermes 7dc32a50e2 Raise LLM read timeout to 300s; prefer LAN endpoint in env example
Midnight failures were read timeouts against the public URL — hairpin NAT
and/or the request queuing behind other traffic on the shared model.
LAN endpoint + longer timeout covers both.
2026-09-30 08:06:18 +00:00
hermes 6bc9fa0e8d Resume retries after cooldown instead of giving up for the day
Previously 3 failed attempts at 06:00 (e.g. llamaswap model cold/starting)
permanently blocked generation until the next day. Now the retry loop
pauses SLOW_RETRY_MINUTES (default 60) after the burst budget is spent,
then resumes — one attempt per hour until jokes exist.
2026-09-30 07:55:40 +00:00
hermes 075b72ec6c Wiki Jokes: daily LLM jokes from Wikipedia featured article
- FastAPI + APScheduler + SQLite, single container
- Daily generation at 06:00 Europe/Copenhagen + cold-start generation
- Retry with backoff (3 attempts/15 min), stale fallback with banner
- OpenAI-compatible endpoint via env (OPENAI_BASE_URL/MODEL/API_KEY)
- docker-compose with named volume for joke persistence
2026-09-29 19:38:01 +00:00