Hello,
I've tried your code and it has worked. I ran your JavaScript in the browser on my laptop and connected to my RaspberryPi.
I use the latest Z-Way version 2.2.5 on RaspberryPi.
Did you run the refresh command? The WebSocket Configurator subscribes to the events of all devices otherwise only with a Z-Way server restart.
Patrick
Module that send events over TCP/UDP or websocket
Re: Module that send events over TCP/UDP or websocket
- Attachments
-
- Console output from firefox
- WebSocket Configurator.png (54.92 KiB) Viewed 6187 times
Re: Module that send events over TCP/UDP or websocket
Hello Patrick,
"Sadly I am not able to add the token. If a add a token zway say: "Unable to update data"
After lot of testing and version changes, my zway server is very instable. But it works.
In the next days I go to a friend. He has a clean zway server for testing."
I only ask if the code works, because that if I go to my fried that we have no problem to connect to the websocket.
Today we wanted to test the WebSocket Configurator app but we had a big problem.
We installed a fresh Windows 7 x64, Windows 10 x64 and Ubuntu 16.04.x with only Zway Server 2.2.4 (Win), 2.2.5 (Ubuntu) and UZB Stick with zway license.
On all systems we had the same problem that we are not able to install online Apps. No matter which App it come the Error Message: "Failed to install the App"
I write the issue in this topic: https://forum.z-wave.me/viewtopic.php?f ... 898#p65898
Sorry but I or zwave.me must fix this first that I am able to test the WebSocket Configurator.
Regards
Steffen
No till today I was not able to test the WebSocket Configurator.:pah111kg wrote:Did you run the refresh command? The WebSocket Configurator subscribes to the events of all devices otherwise only with a Z-Way server restart.
"Sadly I am not able to add the token. If a add a token zway say: "Unable to update data"
After lot of testing and version changes, my zway server is very instable. But it works.
In the next days I go to a friend. He has a clean zway server for testing."
I only ask if the code works, because that if I go to my fried that we have no problem to connect to the websocket.
Today we wanted to test the WebSocket Configurator app but we had a big problem.
We installed a fresh Windows 7 x64, Windows 10 x64 and Ubuntu 16.04.x with only Zway Server 2.2.4 (Win), 2.2.5 (Ubuntu) and UZB Stick with zway license.
On all systems we had the same problem that we are not able to install online Apps. No matter which App it come the Error Message: "Failed to install the App"
I write the issue in this topic: https://forum.z-wave.me/viewtopic.php?f ... 898#p65898
Sorry but I or zwave.me must fix this first that I am able to test the WebSocket Configurator.
Regards
Steffen
Re: Module that send events over TCP/UDP or websocket
I was using this module for a third party control system. When I upgraded to Pro 7 and 3.2.3 this websocket module that pushed all status changes to the other side has stopped working. I can see my client side still connect to websocket but no changes are pushed. How would I bind websocket to show changes?
Re: Module that send events over TCP/UDP or websocket
I upgraded to 3.2.3 and the new Pro 7. It broke this Websocket Configurator Module. Having finding a good example of how bind devices changes over websocket. Any idea what broke this module? Was using to push all changes over websocket to a custom RTI XP Processor driver.
Re: Module that send events over TCP/UDP or websocket
If you upgraded from some old version (prior to v3.2.0), you need to know that new WebSockets require authentication. So this module might need some improvements.
Re: Module that send events over TCP/UDP or websocket
Thanks, could someone point me in the right direction on how send bearer token over ws. I'm sending the token via HTTP for commands and works fine. Websocket api doesn't show an example unless I missed it.
Re: Module that send events over TCP/UDP or websocket
Thanks that helped, got it working. Don’t need the module anymore as the device.level that is pushed has all info I need.