Python plugin with HTTP
Posted: Monday 11 December 2017 23:21
Dear all,
I am trying to write a plugin for a nice multichannel electrical consumption device (legrand 412000) which acts as a webserver, and provides real-time AC current measures over 5 channels in JSON format.
I started from the examples from the "Developing a Python plugin" wiki page, but none seem to work on the current Domoticz version. I always have the following message:
But it seems that Domoticz call it with 4 arguments. Where can I find documentation (posts about API change, etc...) about this?
Thanks
I am trying to write a plugin for a nice multichannel electrical consumption device (legrand 412000) which acts as a webserver, and provides real-time AC current measures over 5 channels in JSON format.
I started from the examples from the "Developing a Python plugin" wiki page, but none seem to work on the current Domoticz version. I always have the following message:
All examples and the documentation as well define onMessage like this:'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
Code: Select all
def onMessage(Connection, Data):
Thanks