Razberry on Domotiga main.js

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
roffer
Posts: 4
Joined: 03 Nov 2014 15:36

Razberry on Domotiga main.js

Post 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
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Razberry on Domotiga main.js

Post 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.
Since 29-12-2016 I am no longer a moderator for this forum
roffer
Posts: 4
Joined: 03 Nov 2014 15:36

Re: Razberry on Domotiga main.js

Post by roffer »

ok tnx, i will try and see how this goes.

/roffer
roffer
Posts: 4
Joined: 03 Nov 2014 15:36

Re: Razberry on Domotiga main.js

Post 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
roffer
Posts: 4
Joined: 03 Nov 2014 15:36

Re: Razberry on Domotiga main.js

Post 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);
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Razberry on Domotiga main.js

Post 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.
Post Reply