Frontend

Python and python framework

Moderator: leecollings

Post Reply
MarFan
Posts: 18
Joined: Monday 02 September 2013 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Frontend

Post by MarFan »

For my (Heishamon) plugin, I want to create a 'frontend' (like Zigbee2MQTT is having).
Is there any docs/samples/howto available ?
MarFan / NL / 3x RasPi / RfXcom / RfLink / S0PCM-5 / P1
Barberousse
Posts: 140
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Frontend

Post 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.
Barberousse
Posts: 140
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Frontend

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest