> For the complete documentation index, see [llms.txt](https://docs.augelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.augelab.com/german/hauptfunktionen/headless/augelab-web-view.md).

# Web View

AugeLab Web View ist ein leichtgewichtiges Monitoring-Dashboard, das für **headless**-Runs gedacht ist.

<figure><img src="/files/kUnA1OBe5x2Ac5HLENkm" alt="Headless Web View" width="600"><figcaption><p>Headless Web View</p></figcaption></figure>

Es zeigt:

* Eine Live-Bildvorschau (aus der Ausgabe Ihres Szenarios)
* Ein fortlaufendes Log-Panel (aus Block-/Szenario-Logs)

***

## Web View starten

Alles, was Sie bei der Verwendung der Web View tun müssen, ist, einen `Subsystem Out`-Block zu verwenden, um Ihr finales Bild zu verbinden:

<figure><img src="/files/KptRcT4YB0dkHA2cXcvC" alt="Web View Link" width="600"><figcaption><p>Web View Scenario</p></figcaption></figure>

Dann schreiben Sie ein kleines Python-Skript:

{% code title="headless\_webview\.py" %}

```python
from studio import StudioScenario

scenario = StudioScenario()
scenario.load_scenario(r"PATH_TO_SCENARIO.pmod")
scenario.run_server(
    host="127.0.0.1",
    port=8080,
    header="Scenario Server",
)
```

{% endcode %}

Öffnen Sie anschließend:

* `http://127.0.0.1:8080`

<figure><img src="/files/N9DgWlIssh39eLwmArTJ" alt="Web View Link" width="400"><figcaption><p>Web View Running</p></figcaption></figure>

***

## Was das Dashboard von Ihrem Szenario erwartet

### Auswahl des Ausgabebildes

Die Web View zeigt die **erste bildähnliche Ausgabe** an, die vom Szenario erzeugt wird. Gibt Ihr Szenario kein Bild aus, bleibt die Vorschau leer.

### Bildformat

* Die Vorschau erwartet eine Bildausgabe.
* Falls das Array wie ein BGR-Bild (`H x W x 3`) aussieht, wird es vor der Anzeige in RGB umgewandelt.

{% hint style="info" %}
Wenn die „erste Ausgabe“ Ihres Szenarios kein Bild ist, bleibt das Dashboard wahrscheinlich leer. In diesem Fall passen Sie das Szenario so an, dass die erste Ausgabengruppe ein Bild liefert.
{% endhint %}

***

## Logs

Das Dashboard zeigt die aktuellen Laufzeit-Logs an.

***

## Betriebsnotizen / Einschränkungen

* Das Szenario wird in einem Hintergrundthread in einer Endlosschleife ausgeführt.
* Beenden Sie den Server mit Strg+C.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.augelab.com/german/hauptfunktionen/headless/augelab-web-view.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
