Page 2 of 4

Re: Binding to Domoticz

Posted: Thu 12 Nov 2015, 21:24
by thos
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).

Re: Binding to Domoticz

Posted: Thu 12 Nov 2015, 21:37
by gol
I agree, if that is possible in Domoticz you should test that first.

Re: Binding to Domoticz

Posted: Fri 13 Nov 2015, 10:53
by fergalom
@thos
Hmmm thats strange as I'm get none of these errors in my logs, 2 zones and updating 24 uservariables in Domoticz.
Using a Rpi2

Re: Binding to Domoticz

Posted: Fri 13 Nov 2015, 11:07
by thos
What version of Domoticz? I'm on very recent 2.3552

System is Intel Core i5, very little other load.

Re: Binding to Domoticz

Posted: Fri 13 Nov 2015, 11:16
by fergalom
v2.3566 currently and update the version every couple of weeks.

I'll make a copy of logs over weekend and double check I don't have same issue and not aware of it.
Tailing the logs now shows everything normal

Re: Binding to Domoticz

Posted: Fri 13 Nov 2015, 11:26
by thos
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.

Re: Binding to Domoticz

Posted: Sat 14 Nov 2015, 15:56
by thos
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 error handling, but it works for now.

Re: Binding to Domoticz

Posted: Sat 05 Dec 2015, 10:17
by Rena
Hi,

Totally newbie to Rasp, but have managed to install both Domoticz and Web gateway.
After installing the binding and trying to start it, i got the following error.

pi@raspberrypi ~/node-spc-domoticz-binding $ sudo ./node-spc-domoticz-binding.js
module.js:489
throw err;
^
SyntaxError: /home/pi/node-spc-domoticz-binding/config.json: Unexpected string
at Object.parse (native)
at Object.Module._extensions..json (module.js:486:27)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/pi/node-spc-domoticz-binding/node-spc-domoticz-binding.js:8:14)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)


Is there any way to complete remove the package and then reinstall?

Re: Binding to Domoticz

Posted: Sat 05 Dec 2015, 17:41
by fergalom
There is a problem with your config.json file, check the file

Re: Binding to Domoticz

Posted: Mon 07 Dec 2015, 15:08
by Rena
fergalom wrote:There is a problem with your config.json file, check the file
OK, then I have to check the file and compare it with the default file.