Page 1 of 1

Razberry on Domotiga main.js

Posted: 03 Nov 2014 15:48
by roffer
Hi, i need some pointers on where i should put some config to get razberry to work with Domotiga. main.js is different from the version that's described.
eks:
Insert line just before last {

executeFile('domotiga.js');
}

so i want to execute this file domotiga.js but it seems not to work if i use what described.
source: https://domotiga.nl/projects/domotiga/w ... nd-150-rc1
/br
roffer

Re: Razberry on Domotiga main.js

Posted: 03 Nov 2014 16:01
by pz1
IIRC the situation is such that if you do not intend to use any of the automation, it suffices to have a main.js with only
executeFile('domotiga.js');
in the automation directory.
I am not sure if this works with the version 2.0.0 release candidates, as these do enable Z-Wave support with one of the automation modules.

Re: Razberry on Domotiga main.js

Posted: 03 Nov 2014 16:23
by roffer
ok tnx, i will try and see how this goes.

/roffer

Re: Razberry on Domotiga main.js

Posted: 03 Nov 2014 16:31
by roffer
hmm that didn't work, looks like i need it. tried to trigger a yale lock to secure but got errors from the web gui.
/roffer

Re: Razberry on Domotiga main.js

Posted: 03 Nov 2014 16:34
by roffer
should it work like this:

(fs.list("z-way-utils/") || []).forEach(function (file) {
try {
executeFile("z-way-utils/" + file);
executeFile('domotiga.js');
} catch (e) {
controller.addNotification("error", "Can not load z-way-utils file (" + file + "): " + e.toString(), "core");
console.log(e.stack);

Re: Razberry on Domotiga main.js

Posted: 03 Nov 2014 16:45
by pofs
pz1 wrote:I am not sure if this works with the version 2.0.0 release candidates, as these do enable Z-Wave support with one of the automation modules.
It won't be as simple on 2.0, but still possible.
In the end, they're all js objects which you can create yourself.

So it is possible to make a 'stripped' main.js with just web server and z-wave binding.