Module that send events over TCP/UDP or websocket

Discussions about Z-Way software and Z-Wave technology in general
pah111kg
Posts: 25
Joined: 02 Sep 2016 18:49

Re: Module that send events over TCP/UDP or websocket

Post by pah111kg »

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
Attachments
Console output from firefox
Console output from firefox
WebSocket Configurator.png (54.92 KiB) Viewed 6188 times
SReibert
Posts: 11
Joined: 20 Jan 2016 20:35

Re: Module that send events over TCP/UDP or websocket

Post by SReibert »

Hello Patrick,
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.
No till today I was not able to test the WebSocket Configurator.:

"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
shakey
Posts: 4
Joined: 19 Jul 2021 01:30

Re: Module that send events over TCP/UDP or websocket

Post by shakey »

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?
shakey
Posts: 4
Joined: 19 Jul 2021 01:30

Re: Module that send events over TCP/UDP or websocket

Post by shakey »

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.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Module that send events over TCP/UDP or websocket

Post by PoltoS »

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.
shakey
Posts: 4
Joined: 19 Jul 2021 01:30

Re: Module that send events over TCP/UDP or websocket

Post by shakey »

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.
shakey
Posts: 4
Joined: 19 Jul 2021 01:30

Re: Module that send events over TCP/UDP or websocket

Post by shakey »

Thanks that helped, got it working. Don’t need the module anymore as the device.level that is pushed has all info I need.
Post Reply