Frontpage Skill
Display newspaper front pages from frontpages.com on an eink device.
Workflow
- •
Check/refresh URLs - Read
/home/slzatz/headlines/frontpageurls.json.- •If the file doesn't exist, run
retrieve_fp_urlsto create it. - •If the date in any URL path doesn't match today's date (format:
/g/YYYY/MM/DD/...), runretrieve_fp_urlsto refresh. - •Note: Refreshing takes 1-2 minutes as it uses Playwright to visit each newspaper's page on frontpages.com. Inform the user this is happening.
- •If the file doesn't exist, run
- •
Match newspaper name - Convert user input to the slug format. See references/newspapers.md for aliases.
- •If the requested newspaper isn't in the JSON file, inform the user it's not currently tracked and offer to show available newspapers from the JSON keys.
- •
Download front page - Run
get_front_page <newspaper-slug>(saves to/home/slzatz/headlines/fp.jpg) - •
Send to display - Run
send_to_display /home/slzatz/headlines/fp.jpg. If it fails with a network error, retry up to 5 times with a 5-second delay between attempts before reporting failure.
Commands
retrieve_fp_urls # Refresh URL list (once daily, takes 1-2 min) get_front_page <newspaper-slug> # Download front page image send_to_display /home/slzatz/headlines/fp.jpg # Send to eink
Expected Output
retrieve_fp_urls:
Fetching: new-york-post -> /g/2026/01/20/new-york-post-114445yde2cwt.webp Fetching: the-new-york-times -> /g/2026/01/20/the-new-york-times-070523265avuz.webp ... Updated 11 newspaper URLs
get_front_page:
Fetching: https://www.frontpages.com/g/2026/01/20/the-new-york-times-... Image saved to fp.jpg
send_to_display (success):
Processing /home/slzatz/headlines/fp.jpg... ... Success! Image sent to frame.
send_to_display (failure): Look for connection errors, timeouts, or "Failed" messages. The ESP32 can be flaky - retry up to 5 times with 5-second delays.
Example
User: "Display the NYT front page"
- •Read
/home/slzatz/headlines/frontpageurls.json- check dates are current - •Match "NYT" → "the-new-york-times"
- •Run
get_front_page the-new-york-times - •Run
send_to_display /home/slzatz/headlines/fp.jpg - •Confirm: "The New York Times front page is now on your eink display."