Search found 50 matches
- Monday 05 February 2018 17:12
- Forum: Python
- Topic: Python Plugin - how to replicate a curl statement in a plugin
- Replies: 5
- Views: 1150
Re: Python Plugin - how to replicate a curl statement in a plugin
OK - got it authenticating and I can read back the token etc. via the framework - thanks for the help on that - found that if I didn't tell the server I would accept gzipped content then it returns uncompressed - how very civil of it - will need to deal with gzip'ed content if I got as far as ...
- Monday 05 February 2018 13:04
- Forum: Python
- Topic: Python Plugin - how to replicate a curl statement in a plugin
- Replies: 5
- Views: 1150
Re: Python Plugin - how to replicate a curl statement in a plugin
Thanks for the quick response and the pointers - some more options there - if I can use the framework I will - if not - will fall back to urllib (or probably urllib2 for the flexibility) In the case of the HTTP.py example - I see the header getting constructed - thats useful. The auth sequence is a ...
- Monday 05 February 2018 12:16
- Forum: Python
- Topic: Python Plugin - how to replicate a curl statement in a plugin
- Replies: 5
- Views: 1150
Python Plugin - how to replicate a curl statement in a plugin
Hi - looking at the possibility of developing a plugin for the Blink Home Monitoring Camera's - there's a couple of libraries out there (a python one - unfortunately it depends heavily on the requests module so I can't just use that) There is also good docs on driving Blink via curl, so between the ...
- Monday 15 January 2018 19:47
- Forum: Python
- Topic: Python - How to POST JSON data
- Replies: 4
- Views: 3448
Re: Python - How to POST JSON data
To get the info from domoticz you need to use GET not POST. The response is in JSON - not the query. GET over HTTPS does not expose the remainder of the URL - wireshark it if you don't agree - SSL handshake basically does the high level bit first, something like connect to www.myfakedomain.com:443 ...
- Sunday 14 January 2018 21:37
- Forum: Python
- Topic: Can we create new or custom device types via python plugin (thermostat setpoint + temperature + demandHeat)
- Replies: 3
- Views: 2054
Can we create new or custom device types via python plugin (thermostat setpoint + temperature + demandHeat)
I would like to create a plugin to support the following virtual device A device I am calling "fake-o-stat" - I need a SINGLE device that can take a setpoint, return a temperature and (for now) optionally have a "demandHeat" function if current temp < setpoint (with some maths to adjust for ...
- Monday 28 November 2016 12:02
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1715
- Views: 416824
Re: homebridge-edomoticz Plugin
Yes, as far as I can see - server address 127.0.0.1 (have also tried the "public IP)" and 1883 for the port - same config as the MQTT agent in Domoticz - running on the same host. That's weird.. Did you enable authentication by any chance? Or do you have a username/password set in MQTT perhaps? No ...
- Monday 28 November 2016 9:48
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1715
- Views: 416824
Re: homebridge-edomoticz Plugin
Yes, as far as I can see - server address 127.0.0.1 (have also tried the "public IP)" and 1883 for the port - same config as the MQTT agent in Domoticz - running on the same host. That's weird.. Did you enable authentication by any chance? Or do you have a username/password set in MQTT perhaps? No ...
- Monday 28 November 2016 9:11
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1715
- Views: 416824
Re: homebridge-edomoticz Plugin
Having a problem with MQTT. I have Domoticz (with the MQTT hardware device added), mosquitto and homebridge/edomoticz all running on the same host. ks MQTT and DOMOTICZ talking fine via mosquitto - I can set device values via mosquitto_pub ..... as per wiki, but when I enable MQTT in the config ...
- Sunday 27 November 2016 20:41
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1715
- Views: 416824
Re: homebridge-edomoticz Plugin
Having a problem with MQTT. I have Domoticz (with the MQTT hardware device added), mosquitto and homebridge/edomoticz all running on the same host. ks MQTT and DOMOTICZ talking fine via mosquitto - I can set device values via mosquitto_pub ..... as per wiki, but when I enable MQTT in the config.json ...
- Tuesday 26 January 2016 0:12
- Forum: PHP and all others
- Topic: Execute a script only once an hour
- Replies: 17
- Views: 10322
Re: Execute a script only once an hour
The scheduling is fixed in domoticz. ALL "device" scripts (scripts with "device" in their name) run everytime ANY device status changes ALL "time" scripts (scripts with "time" in their name) run every MINUTE. It looks like you have a device changing value regularly - that is triggering your script ...
- Monday 18 January 2016 9:00
- Forum: MySensors
- Topic: sendHeartbeat() ?
- Replies: 34
- Views: 11732
Re: sendHeartbeat() ?
I'd like to add my request to this (I already have a feature request in tracker for the ability to update a switch even if the new value is the same as the old). I want to do this to implement a heartbeat for a sensor that changes infrequently but my solution is less elegant that surfacing the ...
- Sunday 17 January 2016 23:47
- Forum: MySensors
- Topic: MySensors - Gateway to Domoticz
- Replies: 311
- Views: 135032
Re: MySensors - Gateway to Domoticz
I seem to remember some notes on the non + version on the mysensors forum - I think a couple of "DEFINE" statements can be used to get them to work.but received the wrong radio's had the nrf24l01 instead of the plus version
- Sunday 03 January 2016 22:56
- Forum: Other questions and discussions
- Topic: Remote XMLAPI for sensors and switches
- Replies: 4
- Views: 1362
Re: Remote XMLAPI for sensors and switches
you could run it in a script (lua) as a "time" event - they run every minute - and you could update the status from that script - there may be a side effect of any on action (like the http:// string) being run when you update the status. Not sure if that would be suitable for motion sensors though
- Sunday 03 January 2016 22:46
- Forum: MySensors
- Topic: Set a switch ON that is already ON & update last seen time?
- Replies: 16
- Views: 6078
Re: Set a switch ON that is already ON & update last seen ti
I have something "basic" - its not running in cron yet - but theres no reason it will have an issue - but I have checked with some friends who are running Domoticz on a PI - and the python install there doesn't have one of the libraries I use, nor does it have the python installers (pip or easy ...
- Sunday 03 January 2016 22:07
- Forum: Other questions and discussions
- Topic: Remote XMLAPI for sensors and switches
- Replies: 4
- Views: 1362
Re: Remote XMLAPI for sensors and switches
Triggering should be easy - add yourself the dummy hardware - create a switch (you can use any type - I "pretend" things are x10 type in that case you set a house and unit code - they are not used they just create a unique switch) on that hardware - and then edit the resulting switch - in there is ...
- Sunday 03 January 2016 21:10
- Forum: Suggestions
- Topic: Highlight when sensor not sent for x minutes
- Replies: 4
- Views: 997
Re: Highlight when sensor not sent for x minutes
The red tag on the UI is coded into domoticz and has fixed values (not sure what they are but I think orange after x and read after x+some). The issue with mysensors (and others perhaps) - is that if nothing changes (a switch that is on stays on, or a temp that is "21" stays at "21") then NOTHING at ...
- Sunday 03 January 2016 15:10
- Forum: Suggestions
- Topic: Highlight when sensor not sent for x minutes
- Replies: 4
- Views: 997
Re: Highlight when sensor not sent for x minutes
Take a look at this discussion around this topic - there is a bug and a feature request in place - and I have documented how I made it work - another forum user has taken a different approach to get to the same place.
viewtopic.php?f=42&t=9272
Hope this helps.
viewtopic.php?f=42&t=9272
Hope this helps.
- Sunday 03 January 2016 15:08
- Forum: MySensors
- Topic: Set a switch ON that is already ON & update last seen time?
- Replies: 16
- Views: 6078
Re: Set a switch ON that is already ON & update last seen ti
For notification you could run a script that checks last seen time - there are a few people describing that on the forums. Personally - I don't like to resort to scripts to do these things - I think there may be issues with some of the time based lua scripts (because they all run every minute) - so ...
- Saturday 02 January 2016 16:38
- Forum: MySensors
- Topic: Set a switch ON that is already ON & update last seen time?
- Replies: 16
- Views: 6078
Re: Set a switch ON that is already ON & update last seen ti
The MySensorsBase.cpp is part of the source code - if you have not built the software from source you won't have the file (building from source isn't something that "right" for everyone). Basically - my solution involves changing the source code and then making my own "special" version of the my ...
- Saturday 02 January 2016 11:02
- Forum: Other questions and discussions
- Topic: Dusk sensor sometimes fails
- Replies: 5
- Views: 1605
Re: Dusk sensor sometimes fails
I use a virtual switch - with two timers set Switch called "IsDay" timer on set to 10 mins after sunrise and set to off 10 mins before sunset. You can trigger a blockly from that on/off if you want - or any other kind of script - and you can adjust the timings to suit the difference between ...