Page 1 of 1

Python scripting

Posted: Saturday 06 August 2016 0:34
by TheDoctor
Hi, I am looking at Python scripting within domoticz event system. Questions:

Is any work being done on this now? (event_system is misspelled in the latest git domoticz Python module)
Why is most of the info put in as globals, a standard module in Python uses its own namespace?
Is the standard way to create/set/delete user variables to do a JSON call, is that not complicated, with C++ boost this could be simpler?

I could look at this, I have some open source experience (look up dvipng), but not so much c++. Lots of C and Python though.

Re: Python scripting

Posted: Sunday 07 August 2016 12:47
by ben53252642
I think Python scripting directly in Domoticz event system is a great idea!

Could directly integrate things like this:
http://domoticz.com/forum/viewtopic.php?f=23&t=12837

I have a huge number of Python scripts all running separately on my system which I would love to be able to integrate.

Re: Python scripting

Posted: Monday 08 August 2016 7:53
by Dnpwwo
I have been looking at adding a Python Plugin system for external devices so that the proliferation of C++ devices in Domoticz can be reversed (and I say that as someone who added a device myself). That sounds similar to what you are talking about.

C/C++ is fine for me but I'm a casual Python scripter at best. I have 3 Python controlled devices which is the total of my Python experience.

If you are interested in collaborating (or at least providing some Python expertise) then PM me and we can talk.