[Ovmsdev] Override WebUI Dashboard

Michael Balzer dexter at expeedo.de
Sat Aug 22 02:25:02 HKT 2020


user plugins currently cannot override system pages. That's by design
for security and system stability.

Compiled modules OTOH can override all system page handlers simply by
calling MyWebServer.RegisterPage() on the URI to replace, passing their
own handler. The default behaviour of the API call is to replace an
existing handler.

Before replacing the dashboard completely, consider customizing and/or
extending it.

The dashboard gauges can be customized by overriding the
OvmsVehicle::GetDashboardConfig() method. See
OvmsVehicleRenaultTwizy::GetDashboardConfig() for an example.

Hook extensions (inline page callbacks) can be installed by users and by
compiled modules. See:
…and the webserver's RegisterCallback() method.

The dashboard provides the "body.pre" hook for extensions. See
OvmsVehicleRenaultTwizy::WebExtDashboard() for a native code example
adding a drive mode profile switcher to the dashboard. This example user
plugin adds tuning sliders to the dashboard:


Am 21.08.20 um 16:50 schrieb Soko:
> Hey guys,
> I've found the possibility of creating own pages via Web Plugins which
> is really great.
> https://docs.openvehicles.com/en/latest/components/ovms_webserver/docs/dashboard.html
> talks of installing your own dashboard by using exactly this feature.
> Is it possible though to replace the default Dashboard link with my
> own page? So the default dashboard is gone and it uses my own page?
> thx
> Soko
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26

More information about the OvmsDev mailing list