eve-watcher/start-all.ps1

30 lines
1.4 KiB
PowerShell

<#
start-all.ps1 - launch all local Goliath watchers at once (background, no windows).
Run from this folder: powershell -ExecutionPolicy Bypass -File .\start-all.ps1
Needs setup.ps1 to have installed Python + deps, and config.ini filled in
(ntfy topic and/or [discord] webhook so alerts reach you).
#>
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $here
if (Get-Command python -ErrorAction SilentlyContinue) {
python -m pip install --quiet -r (Join-Path $here "requirements.txt") 2>$null
} else {
Write-Warning "Python not found - run setup.ps1 first."; exit 1
}
# Headless intel watchers + the auto-update poller (run continuously, no interaction)
# NOTE: eve_local_watcher disabled — on a multi-monitor desktop its OCR region reads
# chat fragments and false-flags pilots not in system. danger_watch (zKill by system)
# covers real kills/killers reliably. Re-enable once Local list OCR is solved.
$watchers = @("eve_combat_watcher.py", "eve_chat_watcher.py", "eve_rock_watcher.py",
"eve_audio_watcher.py", "eve_orehold_watcher.py", "eve_autoupdate.py")
foreach ($w in $watchers) {
$err = Join-Path $here ("_err_" + $w + ".log")
Start-Process pythonw -ArgumentList "`"$here\$w`"" -WorkingDirectory $here `
-WindowStyle Hidden -RedirectStandardError $err
Write-Host "started $w"
}
Write-Host ""
Write-Host "Watchers running. Stop them with: Get-Process pythonw | Stop-Process"