Search found 598 matches

by Dnpwwo
Monday 10 September 2018 11:31
Forum: Other questions and discussions
Topic: PLCBUS support
Replies: 1
Views: 117

Re: PLCBUS support

@AlBundy,

A Python plugin would probably be easiest if you want to built support into Domoticz, I read the spec and the Serial connectivitity in the framework should be okay with it.

You could look to see if someone has written a PLCBUS to MQTT bridge which allow you to then bridge MQTT to Domoticz.
by Dnpwwo
Sunday 09 September 2018 15:05
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 327
Views: 48324

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

I assume you have upgraded Domoticz recently because the plugin framework changed JSON handling a few months ago and I believe that is your problem. This code at around line 188 in plugin.py: def onMessage(self, Connection, Data): #Domoticz.Debug("Received: " + str(Data)) command = json.loads(Data.d...
by Dnpwwo
Sunday 09 September 2018 2:49
Forum: Python
Topic: Error: JSON Protocol: Parse Error
Replies: 1
Views: 127

Re: Error: JSON Protocol: Parse Error

Protocol should be HTTP not JSON, the 'Data' entry in the returned dictionary will have the JSON in it.
by Dnpwwo
Wednesday 05 September 2018 23:47
Forum: Bugs and Problems
Topic: Plugin developement and python modules
Replies: 2
Views: 200

Re: Plugin developement and python modules

@pipiche,

If you post you plugin.py source we could have a look and probably help
by Dnpwwo
Tuesday 04 September 2018 23:52
Forum: Bugs and Problems
Topic: plugin disable/enable - how does the tty/usb behave
Replies: 2
Views: 158

Re: plugin disable/enable - how does the tty/usb behave

@pipiche,

The plugin framework uses an event queue so anything you write will be written before and disconnect or shutdown is executed.

Why, are you seeing some strange behaviour?
by Dnpwwo
Sunday 26 August 2018 11:08
Forum: Python
Topic: Python plugin: Kodi
Replies: 118
Views: 19378

Re: Python plugin: Kodi

Yeah, I forgot to push the change.

Worked for me but no one else :oops:
by Dnpwwo
Sunday 26 August 2018 8:34
Forum: Python
Topic: Python plugin: Kodi
Replies: 118
Views: 19378

Re: Python plugin: Kodi

The currently maintained Kodi plugin is here: https://github.com/dnpwwo/Domoticz-Kodi-Plugin

Can you give that one a try and let me know if there are any issues
by Dnpwwo
Sunday 26 August 2018 7:42
Forum: dzVents
Topic: using dzvents to listen on a port
Replies: 6
Views: 332

Re: using dzvents to listen on a port

You could create a python plugin that listens for JSON. Under plugins/examples there is one called "HTTP Listener" which shows how to listen on an ip & port. If you set the connection's protocol to JSON rather than HTTP it will return JSON messages in dictionaries (and/or lists depending on the JSON...
by Dnpwwo
Saturday 18 August 2018 10:37
Forum: Python
Topic: Python Plugin Problem : Pushing 'onHeartbeatCallback' on to queue
Replies: 2
Views: 287

Re: Python Plugin Problem : Pushing 'onHeartbeatCallback' on to queue

@febalci, You appear to have your "STATUS Poll Period" value set to 30 seconds which is too high, it should be less than 30 seconds otherwise Domoticz thinks the hardware has failed. It looks like there was a disconnect at 05:22:50 that was the real cause of the problem. Did you force that? The upda...
by Dnpwwo
Thursday 02 August 2018 7:59
Forum: Bugs and Problems
Topic: python plugin - onHeartbeat frequency
Replies: 2
Views: 249

Re: python plugin - onHeartbeat frequency

@pipiche, onHeartBeat events are posted to the Plugin Framework's event queue once for every 'interval' you specify. The framework itself will service the queue as quickly as possible and process any events that are ready. My first question for you would be: Do you have other plugins do you have run...
by Dnpwwo
Sunday 29 July 2018 23:26
Forum: Python
Topic: Python plugin: Sony Bravia TV
Replies: 195
Views: 24851

Re: Python plugin: Sony Bravia TV

That information is out of date and I have updated the wiki page.

Issues on Stretch were SSL library related and were resolved prior to the last stable release.
by Dnpwwo
Sunday 29 July 2018 5:15
Forum: Python
Topic: Python plugin: Sony Bravia TV
Replies: 195
Views: 24851

Re: Python plugin: Sony Bravia TV

If people with this failing on a recent beta (or last stable) enable debugging for the plugin and post some log output it might be possible to diagnose the problem.
by Dnpwwo
Tuesday 24 July 2018 11:06
Forum: Python
Topic: Python plugin: Presence detection from wireless router
Replies: 376
Views: 23111

Re: Python plugin: Presence detection from wireless router

@mrkrabs, I always recommend that people run the version of Python that ships with their operating system because that always seems to work best. Python Plugin Framework works with Python 3.4.2 and above and there is no advantage to running later versions. Functionality is the same for all versions ...
by Dnpwwo
Friday 20 July 2018 8:20
Forum: Other questions and discussions
Topic: Where does the python plugin handler get it's pythonpath?
Replies: 1
Views: 226

Re: Where does the python plugin handler get it's pythonpath?

The plugin framework expects python to have a path set correctly already. To answer your question, the path shown in the import error message is the output from the Python function Py_GetPath() which is explained here: https://docs.python.org/3/c-api/init.html#c.Py_GetPath but I'm not sure that is w...
by Dnpwwo
Friday 20 July 2018 8:01
Forum: Python
Topic: Generic Denon / Marantz python plugin
Replies: 76
Views: 12151

Re: Generic Denon / Marantz python plugin

What version are you running?
by Dnpwwo
Friday 20 July 2018 7:59
Forum: Bugs and Problems
Topic: Python upgrade not working
Replies: 9
Views: 1245

Re: Python upgrade not working

The most reliable solution to this is, of course, to use the built in connection objects in the python framework itself. HTTP/HTTPS protocols are handled and the interface is not that different to urllib and other libraries. That method is fully supported on Windows and Linux for Python 3.4.2 -> 3.7...
by Dnpwwo
Sunday 01 July 2018 3:37
Forum: Python
Topic: Generic Denon / Marantz python plugin
Replies: 76
Views: 12151

Re: Generic Denon / Marantz python plugin

@simon_rb, I would recommend staying with the version of Python 3 that comes with your version of Linux. Python 3.4 & 3.5 work well as long as your are on a recent beta (or new stable). Python 3.5 had a linking issue with open ssl until recently but now resolved. The version I support is here: https...
by Dnpwwo
Saturday 30 June 2018 11:12
Forum: Python
Topic: Generic Denon / Marantz python plugin
Replies: 76
Views: 12151

Re: Generic Denon / Marantz python plugin

@simon_rb,

Works on the current beta so should work on the latest stable. Key questions:
  • What platform are you on
  • What version of Python
  • What version of the plugin are you using
  • Can you turn on debug logging and post the log
by Dnpwwo
Saturday 30 June 2018 4:20
Forum: Python
Topic: WARNING: Don't install Python 3.7, it won't work with Domoticz yet
Replies: 0
Views: 338

WARNING: Don't install Python 3.7, it won't work with Domoticz yet

Python 3.7 was released on June 27th, 2018 but you should not use it yet because it will crash Domoticz. Our friends at Python have helpfully changed the way initialisation works: void PyEval_InitThreads() Initialize and acquire the global interpreter lock. It should be called in the main thread bef...
by Dnpwwo
Friday 22 June 2018 4:34
Forum: Other questions and discussions
Topic: Using json commands in combination with an username and password
Replies: 2
Views: 375

Re: Using json commands in combination with an username and password

@joran,

Sounds like you should be creating a python plugin for this, have a look at this example (*https://github.com/domoticz/domoticz/bl ... s/RAVEn.py) to see how to read from the serial port and update counters.