publish start-all.ps1
This commit is contained in:
parent
e70a35d04f
commit
e69a65c816
1 changed files with 33 additions and 0 deletions
33
start-all.ps1
Normal file
33
start-all.ps1
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
<#
|
||||||
|
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 (run continuously, no interaction needed)
|
||||||
|
$watchers = @("eve_combat_watcher.py", "eve_chat_watcher.py")
|
||||||
|
foreach ($w in $watchers) {
|
||||||
|
Start-Process pythonw -ArgumentList "`"$here\$w`"" -WorkingDirectory $here -WindowStyle Hidden
|
||||||
|
Write-Host "started $w"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Ore/gas-hold watcher: OCR mode is headless too (after a one-time --snip).
|
||||||
|
$cfg = Get-Content (Join-Path $here "config.ini") -ErrorAction SilentlyContinue
|
||||||
|
if ($cfg -match "mode\s*=\s*ocr") {
|
||||||
|
Start-Process pythonw -ArgumentList "`"$here\eve_orehold_watcher.py`"" -WorkingDirectory $here -WindowStyle Hidden
|
||||||
|
Write-Host "started eve_orehold_watcher.py (OCR mode)"
|
||||||
|
} else {
|
||||||
|
Write-Host "ore-hold watcher NOT started (timer mode is interactive — run it in its own window, or set mode=ocr + --snip)."
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "Watchers running. Stop them with: Get-Process pythonw | Stop-Process"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue