Files
appRobotHoming/public/index.html
2026-06-16 17:36:46 +02:00

99 lines
3.0 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>appRobotHoming</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<div class="sections">
<!-- AKTIONEN -->
<div class="section full">
<h2>Aktionen</h2>
<!-- Homing primäre Aktion -->
<div class="controls" style="flex-wrap:wrap;gap:10px;align-items:center">
<button id="btn-homing-run">📷 Foto &amp; Homing berechnen</button>
<button id="btn-homing-send" disabled
style="opacity:.4;cursor:not-allowed"
title="Erst Homing ausführen">
✅ An Roboter senden
</button>
<span id="homing-status" class="status-badge idle">○ Warte</span>
</div>
<!-- Fortschrittsbalken -->
<div id="homing-progress" style="display:none;margin-top:12px">
<div id="homing-progress-track">
<div id="homing-progress-bar"></div>
</div>
<span id="homing-progress-text"></span>
</div>
<!-- Sekundäre Aktionen -->
<div class="controls" style="margin-top:14px;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid #1e293b">
<button data-cmd="HOME" style="font-size:12px;padding:4px 12px">HOME</button>
<button data-cmd="PING" style="font-size:12px;padding:4px 12px">PING</button>
<input
id="gcodePayload"
type="text"
placeholder="G-Code / Motorbefehl"
style="font-size:12px;padding:4px 8px"
/>
<button data-cmd="GCODEMOTOR" data-payload="#gcodePayload"
style="font-size:12px;padding:4px 12px">GCodeMotor</button>
<button id="btn-foto" style="font-size:12px;padding:4px 12px">Foto-Vorschau</button>
<a href="/calibration.html">
<button type="button" style="font-size:12px;padding:4px 12px">Kalibrierung</button>
</a>
</div>
</div>
<!-- AUSGABE / LOG -->
<div class="section full">
<h2>Ausgabe</h2>
<textarea id="log" readonly></textarea>
</div>
<!-- ANALYSE -->
<div class="section full">
<h2>Analysis &amp; Reasoning</h2>
<textarea id="analysis-log" readonly></textarea>
</div>
<!-- BOARD-VIEWER -->
<div class="section full">
<h2>Board-Viewer</h2>
<iframe
id="board-viewer-frame"
src="/boardViewer.html?mode=homing"
style="width:100%;height:1200px;border:1px solid #334155;border-radius:6px;background:#0d0f13;display:block;margin-top:12px"
title="Board-Viewer"
></iframe>
</div>
<!-- SNAPSHOTS (nur Debug-Bilder) -->
<div class="section full">
<h2>Snapshots</h2>
<div id="snapshot-info-picture"></div>
</div>
<!-- SNAPSHOT CSV -->
<div class="section full">
<h2>Snapshot CSV</h2>
<div id="snapshot-info"></div>
<table id="snapshot-table"></table>
</div>
</div>
<script src="/calculateAngles.js"></script>
<script src="/client.js"></script>
</body>
</html>