Hello, Thanks for the info. I've played with the GetDashboardConfig() methods and hook posibilities already. I want to use the Dashboard of the OVMS via the smartphone (placed in the holder of the e-Up) which is connected to the OVMS APs WiFi. Imho there is no point in showing data I have already in the cars dashboard (i.e. km/h) in the OVMS dashbard. I want to display mainly values there I don't see in the car yet... So thats why I don't want to hook or frankly even fill the values of the standard dashboard. I will give MyWebServer.RegisterPage() a try. thx Soko On 21.08.2020 20:25, Michael Balzer wrote:
Soko,
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: https://docs.openvehicles.com/en/latest/components/ovms_webserver/docs/hooks... …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: https://docs.openvehicles.com/en/latest/components/ovms_webserver/docs/plugi...
Regards, Michael
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/dashb... 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@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev