Renders a read-only jQuery Knob gauge that displays a live value with a configurable maximum, updating via RPC polling.
KNOBOUT — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Parameters are unused at render time; Param1 is forwarded via the RPC call at runtime. The knob is read-only (data-readonly="true"). The query is expected to return rows of (value, max_value). Returns an HTML string with the knob canvas and polling script.
RpcGetseries(data)RPC endpoint. Receives param1 from the client, fetches the report's Query from def_report, substitutes $param1$, and executes it via query_get_list. Returns the raw result list.
GetKnobType()Returns the HTML attribute string that makes the knob read-only: data-readonly="true" readonly="readonly".
Options read from self._Options JSON:
| Key | Effect |
|---|---|
color |
Foreground colour of the knob arc. Defaults to $package_pallete_primary$. |
width |
Pixel size (width and height) of the knob (default: 90). |
refresh |
Polling interval in milliseconds (default: 3000). |
label |
Optional label text rendered below the knob. |
Requires axion.rpc.js. Loads jquery-knob@1.2.11 from jsDelivr CDN. Uses a custom "tron" skin draw callback for the arc style. The knob's data-max attribute and configured max are updated dynamically on each poll response.