Page 1 of 1
Frontend
Posted: Saturday 09 January 2021 19:57
by MarFan
For my (Heishamon) plugin, I want to create a 'frontend' (like Zigbee2MQTT is having).
Is there any docs/samples/howto available ?
Re: Frontend
Posted: Sunday 28 March 2021 20:59
by Barberousse
There is some documentation in
https://www.domoticz.com/wiki/Developin ... hin_plugin but it seems very "hackish" because it supposes that the domoticz process has write permission in www directory, and I don't see a clear way/API to communicate with the plugin, except using json calls, which is hackish too and not enough for my need, because I want to improve the plugin config page, and as long as it's not configured, there is no device to call/modify using json.
I think there are things to imagine, maybe adding an API call to python plugin framework and to webserver.cpp, to be able for the plugin to present a web page and the get/post results.
Re: Frontend
Posted: Sunday 28 March 2021 21:10
by Barberousse
This has been discussed here:
viewtopic.php?f=65&t=27758
After that, Dnpwwo creates some C++ callable API (the configuration one is very convenient by the way, thank you

) but I don't see yet an easy way to expose a custom config page.