node-cbus icon indicating copy to clipboard operation
node-cbus copied to clipboard

Cannot turn off via web ui

Open NovaGL opened this issue 8 years ago • 3 comments

Having a bit of trouble

Turning on works eg localhost:8080/cmd?device=13&level=100&timeout=0&delay=0

reduce works http://192.168.1.34:8080/cmd?device=13&level=50&timeout=0&delay=0

But turn off does not work

http://192.168.1.34:8080/cmd?device=13&level=0&timeout=0&delay=0

However via the console it does work

http://localhost:8080/cgate?cmd=OFF //HOME/254/56/13

What could be wrong preventing this from working correctly?

NovaGL avatar Jun 17 '17 04:06 NovaGL

Hey NovaGL, I have been using http in this form in any web browser, even my phone it does not like spaces, use (%20) instead of spaces ON http://192.168.1.34:8080/cgate?cmd=on%20//HOME/254/56/13 OFF http://192.168.1.34:8080/cgate?cmd=off%20//HOME/254/56/13 DIM http://192.168.1.34:8080/cgate?cmd=ramp%20//HOME/254/56/13%2050%201s this sets level to 50 (level between 0 and 255)

Chickenparmie avatar Sep 07 '17 05:09 Chickenparmie

Thanks. That works but its the ui that doesn't

NovaGL avatar Sep 07 '17 05:09 NovaGL

I added this under line 284; $.get('/cgate?cmd=OFF //HOME/254/56/' + id);

If you need clarification on where to place the code let me know. It's in the adjust level function, within the else. I'm just calling the http request from the script because I had the same issue as you.

ElphaX avatar Jan 22 '18 11:01 ElphaX