Python scripting

Moderator: leecollings

Post Reply
TheDoctor
Posts: 3
Joined: Friday 15 July 2016 10:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python scripting

Post 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.
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Python scripting

Post 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.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python scripting

Post 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.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest