afm-host-panel¶
A Grafana panel plugin that hosts anywidget front-end modules (AFM). The panel loads a widget module, gives it an element and a model, and feeds the model from Grafana: query results, the time range and dashboard variables. Widgets written for Jupyter run unchanged, within the limits listed in Compatibility and limits. A widget can write back to a dashboard variable.

The widgets follow the Grafana theme, light or dark.
Built-in widgets¶
-
52 instrumentation widgets, bundled unmodified: gauges, tanks, LEDs, switches, process objects, charts.
-
anywidget-instruments-automotive
The automotive instruments, bundled unmodified: speedometer, tachometer, fuel, coolant, tell-tales, gear indicator, cluster. For visualization only: no widget is meant to be operated while driving.
-
anywidget-instruments-aeronautics
The flight instruments, bundled unmodified: airspeed, attitude, altimeter, turn coordinator, heading, vertical speed. Not certified avionics, not for navigation.
Other AFM modules can be loaded from a URL when the server allows it (see the User guide).
Configure a panel¶
Choose a widget, set static traits, bind traits to the query results, a dashboard variable or the time range (see the User guide).

Documentation¶
- User guide: install, choose a widget, bind traits, write back.
- anywidget-instruments-industrial and anywidget-instruments-automotive and anywidget-instruments-aeronautics: the built-in widgets.
- Compatibility and limits: AFM compatibility matrix.
- Design: how the host works and why.
- Specification: requirements (EARS, MoSCoW).
- Development: build, tests, screenshots.
Screenshots are taken from the development server with
node scripts/screenshots.mjs (see Development).
Related projects¶
| Project | What it is | Documentation |
|---|---|---|
| anywidget-instruments-industrial | Instrumentation widgets for notebooks: gauges, tanks, LEDs, switches, charts, alarms, SCADA objects | https://anywidgetinstruments.github.io/anywidget-instruments-industrial/ |
| anywidget-instruments-automotive | Automotive instruments built on anywidget-instruments | https://anywidgetinstruments.github.io/anywidget-instruments-automotive/ |
| afm-host-panel | Grafana panel plugin that runs anywidget modules, with both libraries built in | https://anywidgetinstruments.github.io/afm-host-panel/ |





