Search found 8 matches

by thos
Sat 14 Nov 2015, 15:56
Forum: Home Automation Bindings
Topic: Binding to Domoticz
Replies: 33
Views: 48941

Re: Binding to Domoticz

Pushed some of my updates to fork here: https://github.com/thosirl/node-spc-domoticz-binding Added Domoticz port number config parameter, also I changed mine to add variables as names instead of IDs, so it makes it easier to read in Domoticz. Would still like to find better solution for the 400 erro...
by thos
Sat 14 Nov 2015, 15:53
Forum: Ubuntu
Topic: Startup script needs changing
Replies: 0
Views: 12646

Startup script needs changing

Hi, The /etc/init.d/spc-web-gateway scripts wouldnt work for me was getting “start-stop-daemon: unable to stat” so had to change start-stop-daemon --start --pidfile $PIDFILE --make-pidfile --background --chdir $DAEMON_PATH --exec $NAME -c $RUN_AS > $LOGFILE 2>&1 by adding $DAEMON_PATH to the -ex...
by thos
Fri 13 Nov 2015, 11:26
Forum: Home Automation Bindings
Topic: Binding to Domoticz
Replies: 33
Views: 48941

Re: Binding to Domoticz

First run is certainly more onerous, given it's got to create ALL variables at once. The rolling/ad-hoc updates are easier to handle, much less load here.

To do that point - maybe the throttle only needs to be on createDomoticzVariable, and not so much on the Set.
by thos
Fri 13 Nov 2015, 11:07
Forum: Home Automation Bindings
Topic: Binding to Domoticz
Replies: 33
Views: 48941

Re: Binding to Domoticz

What version of Domoticz? I'm on very recent 2.3552

System is Intel Core i5, very little other load.
by thos
Thu 12 Nov 2015, 21:24
Forum: Home Automation Bindings
Topic: Binding to Domoticz
Replies: 33
Views: 48941

Re: Binding to Domoticz

It would be nicer to increase threads on Domoticz to handle more requests alright, slowing down the input increase latency, if you're planning on using the variables to drive events (ie; door open, light on - which would be nice).
by thos
Thu 12 Nov 2015, 20:52
Forum: Home Automation Bindings
Topic: Binding to Domoticz
Replies: 33
Views: 48941

Re: Binding to Domoticz

Have it working with some modification if (res.statusCode == 400) { /* Create variable if not found */ console.log('400 Error, aborting, waiting and retrying'); setTimeout(function(){ setDomoticzVariable(globalVariableHC2, value) }, 1000); req.abort(); return; } May not be 100% accurate, but seems t...
by thos
Thu 12 Nov 2015, 20:03
Forum: Home Automation Bindings
Topic: Binding to Domoticz
Replies: 33
Views: 48941

Re: Binding to Domoticz

So, I've commented out //getSpcStatus('zone', handleSpcZoneData); and it works fine. Also tried only putting 2-3 Zones through (not the 12 on my system), and this works also, soon as I increase this to 4/5/6 zones I get 400 errors. So looks like problem is this is pushing too many API calls to Domot...
by thos
Mon 09 Nov 2015, 22:19
Forum: Home Automation Bindings
Topic: Binding to Domoticz
Replies: 33
Views: 48941

Re: Binding to Domoticz

Hi, Have SPC Web Gateway installed and working, but getting some mixed results on this binding to Domoticz See logs: <html><head><title>Bad Request</title></head><body><h1>400 Bad Request</h1></body></html> Failed to parse reply, expected JSON Error: socket hang up Error: socket hang up Error: socke...