Always show Gateway UI button; bump add-on to 0.5.10
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: OpenClaw Assistant
|
name: OpenClaw Assistant
|
||||||
version: "0.5.9"
|
version: "0.5.10"
|
||||||
slug: openclaw_assistant
|
slug: openclaw_assistant
|
||||||
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
|
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
|
||||||
url: https://github.com/techartdev/OpenClawHomeAssistant
|
url: https://github.com/techartdev/OpenClawHomeAssistant
|
||||||
|
|||||||
@@ -26,31 +26,15 @@
|
|||||||
<a class="btn secondary" href="./terminal/" target="_self">Open Terminal (full page)</a>
|
<a class="btn secondary" href="./terminal/" target="_self">Open Terminal (full page)</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="muted" id="gwhint">
|
<div class="muted">
|
||||||
Tip: The gateway UI is intentionally opened outside of Ingress to avoid websocket/proxy issues.
|
Tip: The gateway UI is intentionally opened outside of Ingress to avoid websocket/proxy issues.
|
||||||
Configure <code>gateway_public_url</code> in the add-on options, then complete onboarding in the terminal.
|
Set <code>gateway_public_url</code> in the add-on options.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<div class="muted" style="margin-top:8px">
|
||||||
(function(){
|
If the Gateway UI says <b>Unauthorized</b>, you need the token. In the terminal run:
|
||||||
var publicUrl = "__GATEWAY_PUBLIC_URL__";
|
<code>openclaw config get gateway.auth.token</code>
|
||||||
var token = "__GATEWAY_TOKEN__";
|
</div>
|
||||||
var btn = document.getElementById("gwbtn");
|
|
||||||
var hint = document.getElementById("gwhint");
|
|
||||||
|
|
||||||
if (!publicUrl || publicUrl === "__GATEWAY_PUBLIC_URL__") {
|
|
||||||
btn.style.display = "none";
|
|
||||||
hint.innerHTML = "Configure <code>gateway_public_url</code> in the add-on options to enable the external Gateway UI link.";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!token || token === "__GATEWAY_TOKEN__") {
|
|
||||||
btn.style.display = "none";
|
|
||||||
hint.innerHTML = "Gateway token not found yet. Open the terminal below and run <code>openclaw onboard</code> (or <code>openclaw configure</code>) to finish setup.";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="term">
|
<div class="term">
|
||||||
<iframe src="./terminal/" title="Terminal"></iframe>
|
<iframe src="./terminal/" title="Terminal"></iframe>
|
||||||
|
|||||||
Reference in New Issue
Block a user