Serve screenshots from nginx webroot at clawdie.si/screenshots
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e42c0403eb
commit
9abcc9754d
2 changed files with 6 additions and 5 deletions
|
|
@ -42,9 +42,10 @@ Required on FreeBSD host:
|
|||
## Canonical paths
|
||||
|
||||
- Script: `.agent/skills/tmux-screenshot/tmux-screenshot.py`
|
||||
- Output dir: `/home/clawdie/clawdie-ai/tmp/screenshots/`
|
||||
- Output dir: `/usr/local/www/clawdie/screenshots/`
|
||||
- Served at: `https://clawdie.si/screenshots/`
|
||||
- Fonts: `/usr/local/share/fonts/dejavu/DejaVuSansMono.ttf`
|
||||
- Manifest: `{outdir}/manifest.json`
|
||||
- Manifest: `/usr/local/www/clawdie/screenshots/manifest.json`
|
||||
|
||||
## Workflow
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ BG_COLOR = (18, 18, 28)
|
|||
DEFAULT_FG = (228, 228, 228)
|
||||
|
||||
DEFAULT_SESSION = "0"
|
||||
DEFAULT_OUTDIR = Path("/home/clawdie/clawdie-ai/tmp/screenshots")
|
||||
BASE_URL = "https://ai.clawdie.si/screenshots/viewer.html"
|
||||
DEFAULT_OUTDIR = Path("/usr/local/www/clawdie/screenshots")
|
||||
BASE_URL = "https://clawdie.si/screenshots"
|
||||
|
||||
# ═─ signature database ────────────────────────────────────────────────────────
|
||||
# Each signature has:
|
||||
|
|
@ -769,7 +769,7 @@ def capture_screenshot(session: str, outdir: Path) -> dict:
|
|||
print(f"Verification failed: {e}", file=sys.stderr)
|
||||
return {'success': False, 'error': str(e)}
|
||||
|
||||
url = f"{BASE_URL}?u={uuid}"
|
||||
url = f"{BASE_URL}/{uuid}.png"
|
||||
print(f"\nScreenshot saved: {uuid}")
|
||||
print(f" PNG: {png_path} ({img.width}x{img.height}px)")
|
||||
print(f" TXT: {txt_path}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue