Search found 10 matches
- Tuesday 09 October 2018 8:07
- Forum: Python
- Topic: Accessing the room plans.
- Replies: 5
- Views: 1227
Re: Accessing the room plans.
http://domoticzIP:domoticzPort/json.htm?type=plans&order=name&used=true gives you all the rooms and http://domoticzIP:domoticzPort/json.htm?type=command¶m=getplandevices&idx=<planID> gives you all devices in the roomplan <planID> Does that not help you ? Thank you for the answer, Waaren! My ...
- Monday 08 October 2018 23:59
- Forum: Python
- Topic: Accessing the room plans.
- Replies: 5
- Views: 1227
Re: Accessing the room plans.
http://domoticzIP:domoticzPort/json.htm?type=plans&order=name&used=true gives you all the rooms and http://domoticzIP:domoticzPort/json.htm?type=command¶m=getplandevices&idx=<planID> gives you all devices in the roomplan <planID> Does that not help you ? Thank you for the answer, Waaren! My ...
- Monday 08 October 2018 23:02
- Forum: Suggestions
- Topic: Suggestion: Room Plans on Device Object
- Replies: 0
- Views: 249
Suggestion: Room Plans on Device Object
It would be great to allow the plugins have access to the device's room plans. it would allow the plugin, for example, control devices by room or make customs actions by type of room (on kitchen changes color or br quiet in rooms at night). I need it for context commands that I'm trying to create. I ...
- Monday 08 October 2018 22:56
- Forum: Python
- Topic: Accessing the room plans.
- Replies: 5
- Views: 1227
Re: Accessing the room plans.
I tried everything but I think that it's not a feature currently supported.
What I did temporarily to solve the problem was use the device's description field as the device location, so the plugin could access it. But this is very bad.
What I did temporarily to solve the problem was use the device's description field as the device location, so the plugin could access it. But this is very bad.
- Wednesday 19 September 2018 20:48
- Forum: Python
- Topic: HTTPS bad request problem
- Replies: 2
- Views: 588
Re: HTTPS bad request problem
Try to use curl on both versions to get the RAW data. You'll find out the difference between the two codes.
To get the raw data you can do it, for example:
https://stackoverflow.com/questions/430 ... -with-curl
To get the raw data you can do it, for example:
https://stackoverflow.com/questions/430 ... -with-curl
- Wednesday 12 September 2018 22:39
- Forum: Python
- Topic: Accessing the room plans.
- Replies: 5
- Views: 1227
Accessing the room plans.
How do I get the floor plan and room plan associated with my python plugin's Device?
I need it for context commands that I'm trying to create. I'd like to do something like "turn off all lights of Mary's room" or "Turn on John's TV".
Thanks.
I need it for context commands that I'm trying to create. I'd like to do something like "turn off all lights of Mary's room" or "Turn on John's TV".
Thanks.
- Monday 25 June 2018 21:08
- Forum: Switches and Scenes
- Topic: LightsController.js
- Replies: 0
- Views: 504
LightsController.js
Hi. I'm trying to change the source code to put the Kodi remote in the Switch Selector (or vice versa) and I ended up getting into the "LightsController.js" file. The problem is that any modification I make to the file is ignored by Domoticz. I already tried to delete the cache, enter another ...
- Tuesday 05 June 2018 22:22
- Forum: Python
- Topic: Open a popup page when you click on a switch button
- Replies: 0
- Views: 526
Open a popup page when you click on a switch button
Hi.
I've a switch with some options and I'd like to open a webpage (like that one that opens when we click on Kodi's remote control).
Actually, I'd like to make my own remote controls on that buttons (it will be more than one) at the same switch.
Is it possible?
Thanks in advance.
I've a switch with some options and I'd like to open a webpage (like that one that opens when we click on Kodi's remote control).
Actually, I'd like to make my own remote controls on that buttons (it will be more than one) at the same switch.
Is it possible?
Thanks in advance.
- Monday 23 October 2017 13:33
- Forum: Python
- Topic: Threading conflict on Python
- Replies: 2
- Views: 999
Re: Threading conflict on Python
Thank you very much. I'll try the example you provided, but I took a quick look at it and that seems to be what I needed.
- Monday 23 October 2017 3:34
- Forum: Python
- Topic: Threading conflict on Python
- Replies: 2
- Views: 999
Threading conflict on Python
I need to create a function that reads everytime a serial port to get a device notification, then I can trigger the plugin's onHeartbeat() function. For some reason the notification on serial port doesn't wait on buffer for more than a half of a second. In order to accomplish that I tried to apply a ...