Search found 11 matches
- 10 Dec 2014 17:46
- Forum: RaZberry
- Topic: Using UDP datagrams to send status updates
- Replies: 17
- Views: 21926
Re: Using UDP datagrams to send status updates
Awesome, thanks for the tip. I use the following code to register my function "registerBinding" during boot up or if the file is loaded while zway is running, so far so good: this.regesterBinding = function(zwayName) { if (zwayName != "zway") return; debugPrint("Binding enab...
- 09 Dec 2014 19:13
- Forum: RaZberry
- Topic: Using UDP datagrams to send status updates
- Replies: 17
- Views: 21926
Re: Using UDP datagrams to send status updates
I use the following code to register my function "registerBinding" during boot up or if the file is loaded while zway is running, so far so good: this.regesterBinding = function(zwayName) { if (zwayName != "zway") return; debugPrint("Binding enabled"); } if(typeof globa...
- 05 Dec 2014 22:11
- Forum: RaZberry
- Topic: Release Candidate 21 binding problems
- Replies: 18
- Views: 16753
Re: Release Candidate 21 binding problems
Thanks for the heads up, I'll give rc25 a shot. I have had it work at bootup and not, its seems to depend on how quickly the zway module gets loaded in relation to when it loads the javascript file.
- 05 Dec 2014 20:39
- Forum: RaZberry
- Topic: Release Candidate 21 binding problems
- Replies: 18
- Views: 16753
Re: Release Candidate 21 binding problems
to be more clear I am using the script below, this is fine if I load it once ZWAY is already running, but if I need to reboot the device then I get the "TypeError: Cannot read property 'zway' of undefined". debugPrint("Binding enabled! "); var devices = global.ZWave["zway&qu...
- 04 Dec 2014 19:03
- Forum: RaZberry
- Topic: Release Candidate 21 binding problems
- Replies: 18
- Views: 16753
Re: Release Candidate 21 binding problems
That totally makes sense, I am loading this via the javascript file module, so I'm running up against the issue that during boot time the script gets loaded before the zway variable is initialized and it throws "TypeError: Cannot read property 'zway' of undefined". Is there something else ...
- 03 Dec 2014 23:58
- Forum: RaZberry
- Topic: Release Candidate 21 binding problems
- Replies: 18
- Views: 16753
Re: Release Candidate 21 binding problems
I am attempting to do something similar. I can see my script being loaded, my first debug statement prints to the console, unfortunately my function with the second debug statement never gets called. I'm on rc24, any ideas? this.bindFunc1 = function(zwayName) { debugPrint("Binding enabled! &quo...
- 03 Dec 2014 18:28
- Forum: RaZberry
- Topic: Websocket Support in 2.0
- Replies: 37
- Views: 38096
Re: Websocket Support in 2.0
BTW, I had not seen the openremote UDP solution, that actually may be better for my needs, so I may pursue that instead. Thanks.
- 03 Dec 2014 18:18
- Forum: RaZberry
- Topic: Websocket Support in 2.0
- Replies: 37
- Views: 38096
Re: Websocket Support in 2.0
My system is also Java, so I have a few choices for a websocket client. I was grepping through the automation code but can't find any reference to a websocket class. I would be happy to post what I get working in the recipes section. I just need a little stronger nudge in the right direction
- 03 Dec 2014 03:39
- Forum: RaZberry
- Topic: Websocket Support in 2.0
- Replies: 37
- Views: 38096
Re: Websocket Support in 2.0
Right now I am polling the ZWaveAPI every few seconds for status and would like to replace this with a push function over a websocket. Unfortunately this is the only API I am familiar with, so I'm not sure where your example would live. Would the ws.push(obj) live inside a automation module? How wou...
- 02 Dec 2014 23:00
- Forum: RaZberry
- Topic: Websocket Support in 2.0
- Replies: 37
- Views: 38096
Websocket Support in 2.0
I see in the 2.0 release notes that websocket push support is there. Can you explain how one would use this? Thanks!