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
Razberry on Domotiga main.js
Re: Razberry on Domotiga main.js
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
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.
in the automation directory.executeFile('domotiga.js');
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
Re: Razberry on Domotiga main.js
ok tnx, i will try and see how this goes.
/roffer
/roffer
Re: Razberry on Domotiga main.js
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
Re: Razberry on Domotiga main.js
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);
(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
It won't be as simple on 2.0, but still possible.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.
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.