diff --git a/configs/bank-landing/README.md b/configs/bank-landing/README.md index d59e83a..68f290f 100644 --- a/configs/bank-landing/README.md +++ b/configs/bank-landing/README.md @@ -103,11 +103,31 @@ taler-wallet-cli exchanges accept-tos https://exchange.hacktivism.ch/ --- -## Live stats (in bank container) +## Live stats (central host collector · hernani systemd) -Stats are **not** computed on the laptop or host browser. A small script runs -**inside the bank container**, queries libeufin for the demo funding account -(`explorer`), and writes a public JSON file next to the landing assets. +**Primary:** user **hernani** on koopa runs `taler-landing-stats.timer` +(`scripts/taler-landing/`). That process full-scans **all bank accounts** +(except `exchange` double-count), paginates every ledger, writes +`stats.json` with **GOA alt units** (`amount_alt` / Kilo-GOA / Mega-GOA / …), +and refreshes exchange + merchant stats the same way. + +```bash +# on koopa as hernani +./scripts/taler-landing/install-landing-stats-host.sh +sudo loginctl enable-linger hernani +systemctl --user start taler-landing-stats.service +``` + +See **`scripts/taler-landing/README.md`**. + +**Fallback:** in-container `landing-stats.sh` (below) if the host timer is down. +It now also scans admin + all users (skips only `exchange`). + +## Live stats (in bank container · fallback) + +Stats are **not** computed in the browser. A small script can still run +**inside the bank container**, query libeufin (all accounts), and write a +public JSON file next to the landing assets. | Piece | Path / role | |-------|-------------| @@ -131,9 +151,9 @@ Stats are **not** computed on the laptop or host browser. A small script runs | Env | Default | Meaning | |-----|---------|---------| -| `TX_DELTA` | `-50000` | per-account ledger window (`GET …/transactions?delta=`) | -| `ACCOUNTS_DELTA` | `-500` | account-list window (`GET /accounts?delta=`) | -| `MAX_SCAN_ACCOUNTS` | `500` | max usernames to scan | +| `TX_DELTA` | `-200000` | per-account ledger window (`GET …/transactions?delta=`) | +| `ACCOUNTS_DELTA` | `-10000` | account-list window (`GET /accounts?delta=`) | +| `MAX_SCAN_ACCOUNTS` | `0` (unlimited) | max usernames to scan; `0` = all | Older defaults (`TX_DELTA=-100`, `MAX_SCAN_ACCOUNTS=80`) **undercounted** credits/withdraws and account totals on this stack. Empty accounts often return **HTTP 204** (no body) — diff --git a/configs/bank-landing/index.html b/configs/bank-landing/index.html index f172304..b527ea7 100644 --- a/configs/bank-landing/index.html +++ b/configs/bank-landing/index.html @@ -1491,6 +1491,7 @@ tw run-until-done && tw balance +