Commit Graph

15 Commits

Author SHA1 Message Date
Mortdecai b901b8be6e fix: use fast model for story selection, gemma4 for summaries only
gemma4:26b under format:json ignores the bare-array instruction and returns a
reasoning object ({"thought": ...}), which broke Phase-1 selection (Unterminated
string -> silent fallback to first-5). Selection now uses ollama_select_model
(default qwen2.5:1.5b); summaries stay on gemma4:26b. Also tolerate dict-shaped
selection responses defensively.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:36:20 -04:00
Mortdecai 362053f8d6 feat: print to discovered printer IP
print_receipt now resolves the printer by MAC via discover_printer() instead of
a hardcoded IP. Verified end-to-end: physical receipt printed to 192.168.0.184.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:32:49 -04:00
Mortdecai 06bc18ed31 fix: add tests/pytest.ini + move Path import to top (completes 2308f24)
The prior commit only recorded the conftest.py deletion; this adds the actual
fix: tests/pytest.ini (pins rootdir to tests/ so the standard pytest command
no longer crashes on the dead /root/bin symlink) and the PEP8 import move.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:28:15 -04:00
Mortdecai 2308f24bc4 fix: pin pytest rootdir via tests/pytest.ini; move Path import to top
The root conftest.py did not prevent pytest's rootdir scandir from following
the dead CREATE_PROJECT.md symlink (-> inaccessible /root/bin), so the standard
'pytest tests/...' command crashed on collection. A minimal tests/pytest.ini
pins rootdir to tests/, so the repo root is never scanned. Also moves the
pathlib import to the top import block (PEP 8).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:27:54 -04:00
Mortdecai 7bfe862f53 feat: discover printer by MAC (survives DHCP IP changes)
Add discover_printer(), _mac_of(), _port_open(), _sweep_arp(), _cache_ip()
with PRINTER_MAC/PRINTER_SUBNET/CACHE_FILE config + unit tests. Also adds
conftest.py to work around broken symlink that blocked pytest collection.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:20:34 -04:00
Mortdecai fa580ec936 feat: summarize with gemma4:26b using converged prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 13:17:28 -04:00
Mortdecai f19c04bdc1 feat: hourly weather forecast + steel141 migration notes
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:15:02 -04:00
Mortdecai c7b114da7a docs: implementation plan for HA/Google Home POS briefing trigger
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:07:10 -04:00
Mortdecai cb7ad8b0ff docs: design for HA/Google Home on-demand POS briefing trigger
Replaces the never-installed cron approach with an MQTT bridge mirroring the
lgtv pattern: Google Home button -> HA script/scene -> MQTT -> steel141 prints.
Adds MAC-based printer discovery (printer IP is DHCP-unstable) and a gemma4
summarizer swap. Includes scripts/dryrun.py (non-printing pipeline harness).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 13:01:15 -04:00
Seth 5061c21b94 Remove down-site alert from printed briefing 2026-03-17 15:04:16 -04:00
Seth cd05366c78 Fix Uptime Kuma check: SSH to pve173 instead of local pct exec 2026-03-17 01:32:26 -04:00
Seth 393de540ee Mark crontab thread resolved; schedule 4:58am and 3pm 2026-03-17 01:23:47 -04:00
Seth 779960108e Add SESSION.md with session memory and open threads 2026-03-17 01:16:36 -04:00
Seth 73c91a4528 Add CONTEXT.md with full project documentation 2026-03-17 00:17:38 -04:00
Seth 5e733a2aa9 Initial commit: POS-only daily briefing for Epson TM-m30 2026-03-17 00:15:49 -04:00