Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot turn off via web ui #3

Open
NovaGL opened this issue Jun 17, 2017 · 3 comments
Open

Cannot turn off via web ui #3

NovaGL opened this issue Jun 17, 2017 · 3 comments

Comments

@NovaGL
Copy link

NovaGL commented Jun 17, 2017

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?

@Chickenparmie
Copy link

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)

@NovaGL
Copy link
Author

NovaGL commented Sep 7, 2017

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

@ElphaX
Copy link

ElphaX commented Jan 22, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants