wol-gate: 로그인 흔적(홈클로 세션 쿠키·Bearer·깨우기 버튼 쿠키) 있는 요청만 자동 기상, 나머지는 '서버 깨우기' 버튼(POST) — 국내 IP 스캐너(PHP-Inventory-Audit, /phpinfo.php)가 새벽 2:20에 깨움. 홈클로 대상만 기본 켬(지서버 Ollama는 그대로). wake-watch 파서에 'wake held' 추가. 온실 백필: HA DB가 root 소유라 쓰기를 docker exec로 컨테이너 안에서 실행(10-22 11시부터 readonly 실패)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Opus 5.5 committed 2026-10-23 10:14:49 +09:00
1 parent 8664834000
commit df80789830
3 files changed
+92 -14

No files matched your search

+2 -2
View File
@@ -16,8 +16,8 @@ EVENTS = f"{HOME}/events.jsonl"
KNOWN = f"{HOME}/known.json"
TRUENAS = "truenas_admin@192.168.0.240"
CONTAINER = "ix-wol-gate-wol-gate-1"
LINE = re.compile(r'^(\S+Z) \[wol-gate\] (?:\d{4}-\d\d-\d\d \d\d:\d\d:\d\d KST )?(waking|wake suppressed \(cooldown\)|wake blocked \(non-KR\)|wake denied \(watchlist\)) - triggered by (\S+) "(\w+) ([^"]*)" UA="(.*)"$')
KIND = {"waking": "wake", "wake suppressed (cooldown)": "cooldown", "wake blocked (non-KR)": "non-kr", "wake denied (watchlist)": "denied"}
LINE = re.compile(r'^(\S+Z) \[wol-gate\] (?:\d{4}-\d\d-\d\d \d\d:\d\d:\d\d KST )?(waking|wake suppressed \(cooldown\)|wake blocked \(non-KR\)|wake denied \(watchlist\)|wake held \(no login, button shown\)) - triggered by (\S+) "(\w+) ([^"]*)" UA="(.*)"$')
KIND = {"waking": "wake", "wake suppressed (cooldown)": "cooldown", "wake blocked (non-KR)": "non-kr", "wake denied (watchlist)": "denied", "wake held (no login, button shown)": "held"}
def load_known():
if not os.path.exists(KNOWN):