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

query the state when in server mode #85

Open
binlan opened this issue Jan 5, 2024 · 6 comments
Open

query the state when in server mode #85

binlan opened this issue Jan 5, 2024 · 6 comments

Comments

@binlan
Copy link

binlan commented Jan 5, 2024

Hi,

i think there is no way currently to get the current hight of the table when it runs in server mode, right? Ok, i could look into the logfile, but It would be nice to be able to curl (or linak-controller) the server for the current status. i run the linak-controller on a raspberry-pi in server mode mounted on the table. i now would like to integrate it in my home automation and therefore it would be helpful to display the state.

what do you think.

thank you.

@rhyst
Copy link
Owner

rhyst commented Jan 5, 2024

You can run:

linak-controller --forward

to get the current height

@binlan
Copy link
Author

binlan commented Jan 5, 2024

ah, without everything. yes thats help.

thank you

@rhyst
Copy link
Owner

rhyst commented Jan 5, 2024

No problem, I will leave this issue open as a reminder to put that in the README

@binlan
Copy link
Author

binlan commented Jan 5, 2024

hmm, unfortunately it didnt do the job. if i e.g. move the table by hand, than a linak-controller --server-address my-table --forward move them back to the former position. I think it looks like, the server did not recognize the position change. If i would let my home automation poll with that method, it would make the hand switch unusable.

@voruti
Copy link
Contributor

voruti commented Jan 6, 2024

I have connected my desk to my home automation over a REST Api and a (pushing) webhook, which I implemented in my own branch https://github.com/voruti/linak-controller/tree/typescript-rewrite. Maybe this can help you.

@rhyst
Copy link
Owner

rhyst commented Jan 9, 2024

I am not sure what the problem is. When I move my desk using the physical switch, and run linak-controller (either using server mode or not) then it accurately reports the current height.

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