micro_start.ps1: Sperre weg, Cockpit --live, Spielplan Cash + Micro only (12 Tische, Einsatz nach echtem Guthaben), CoinPoker mit Debug-Port, Laeufer. micro_stop.ps1: Laeufer sanft stoppen, Spielgeld-Sperre zuruecklegen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
780 B
PowerShell
13 lines
780 B
PowerShell
# Micro-Lauf beenden: Laeufer sanft stoppen (steht nach der Hand auf) und die Spielgeld-Sperre zuruecklegen.
|
|
# powershell -ExecutionPolicy Bypass -File betrieb\micro_stop.ps1
|
|
$ErrorActionPreference = 'Continue'
|
|
$wurzel = Split-Path -Parent $PSScriptRoot
|
|
try {
|
|
$json = '{"aktion":"laeufer_stoppen"}'
|
|
$r = Invoke-RestMethod -Uri 'http://127.0.0.1:8787/api/steuern' -Method Post `
|
|
-ContentType 'application/json; charset=utf-8' -Body ([Text.Encoding]::UTF8.GetBytes($json))
|
|
Write-Host ("laeufer_stoppen: {0}" -f $r.text)
|
|
} catch { Write-Host "Cockpit-Server nicht erreichbar - Laeufer ggf. im Cockpit stoppen" }
|
|
git -C $wurzel checkout -- betrieb/nur_uebung
|
|
if (Test-Path (Join-Path $wurzel 'betrieb\nur_uebung')) { Write-Host "Spielgeld-Sperre liegt wieder" }
|