Search found 61 matches
- 23 Jun 2014 09:33
- Forum: RaZberry
- Topic: Creating virtual devices in new automation
- Replies: 19
- Views: 22980
Re: Creating virtual devices in new automation
I am trying to get the lavel out of the vDev, but I can't find how?? When I look this post, it does not say how: http://forum.z-wave.me/viewtopic.php?f=3422&t=20282 controller.on('device.metricUpdated', function (vdevId, name, value) { .... }); -----> vDev.on('change:metrics:...", function ...
- 20 Jun 2014 17:26
- Forum: RaZberry
- Topic: Creating virtual devices in new automation
- Replies: 19
- Views: 22980
Re: Creating virtual devices in new automation
Almost there! added in automation/main.js: vDev = controller.devices.get("DummyDevice_bn_12"); vDev.on("change:metrics:level", function (vDev) { var level; if (vDev.SwitchBinary.data.level.value == "on") { level = 1; } else { level = 0; } try { system("python /opt/...
- 20 Jun 2014 15:46
- Forum: RaZberry
- Topic: Creating virtual devices in new automation
- Replies: 19
- Views: 22980
Re: Creating virtual devices in new automation
Thanks 1 step further.
I added 2 dummy devices in the new ui: Z-Way Home Automation UI
But how do I now execute code on a switch change? Can't find it in the UI.
Do I have to do this in code? if yes where?
I added 2 dummy devices in the new ui: Z-Way Home Automation UI
But how do I now execute code on a switch change? Can't find it in the UI.
Do I have to do this in code? if yes where?
- 20 Jun 2014 14:05
- Forum: RaZberry
- Topic: Debugger for Z-Way JavaScript
- Replies: 51
- Views: 117488
Re: Debugger for Z-Way JavaScript
who shit, I have to think. I did something like this
sudo mkdir /opt/node
sudo npm install -g node-inspector
node -v returns: v0.10.4
hope this helps you.
sudo mkdir /opt/node
sudo npm install -g node-inspector
node -v returns: v0.10.4
hope this helps you.
- 19 Jun 2014 15:25
- Forum: RaZberry
- Topic: Debugger for Z-Way JavaScript
- Replies: 51
- Views: 117488
Re: Debugger for Z-Way JavaScript
It works now!
I updated to 1.7.1 and node inspector works now.
Just finding out how to use it.
I updated to 1.7.1 and node inspector works now.
Just finding out how to use it.
- 19 Jun 2014 15:10
- Forum: RaZberry
- Topic: Debugger for Z-Way JavaScript
- Replies: 51
- Views: 117488
Re: Debugger for Z-Way JavaScript
Yes, i added V8_DEBUG=yes to /etc/init.d/z-way-server.
I installed Node Inspector on the Raspberry.
And started it: node-inspector --debug-port 8183 (via telnet)
I installed Node Inspector on the Raspberry.
And started it: node-inspector --debug-port 8183 (via telnet)
- 18 Jun 2014 09:32
- Forum: RaZberry
- Topic: Debugger for Z-Way JavaScript
- Replies: 51
- Views: 117488
Re: Debugger for Z-Way JavaScript
I tried everything but node inspector start, the webpage loads but I don't see a script file or running code.
If I press Ctrl+O it opens a window but this is empty?
If I press Ctrl+O it opens a window but this is empty?
- 16 Jun 2014 09:30
- Forum: RaZberry
- Topic: Creating virtual devices in new automation
- Replies: 19
- Views: 22980
Re: Creating virtual devices in new automation
Hi All, Still I was not able to create a simple virtual device, binary switch which run python code when switched. Is there no one how has done something like this and want to share his code? I can run python code from main.js on init state, so that's not the problem, creating a virtual device and r...
- 11 Jun 2014 10:03
- Forum: RaZberry
- Topic: Debugger for Z-Way JavaScript
- Replies: 51
- Views: 117488
Re: Debugger for Z-Way JavaScript
should port 8183 not be port 8083?
If not then Node Inspector is running but I don't see any files, if not then Node Inspector crashes with a error 500: Servewr Error, SyntaxtError: Unexpected token E.
If not then Node Inspector is running but I don't see any files, if not then Node Inspector crashes with a error 500: Servewr Error, SyntaxtError: Unexpected token E.
- 18 May 2014 15:51
- Forum: RaZberry
- Topic: Creating virtual devices in new automation
- Replies: 19
- Views: 22980
Re: Creating virtual devices in new automation
I have tried everything but I can't add a virtual device to show up. Could you please give me some working demo code?
Thank you verry mutch.
Thank you verry mutch.