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

Adding programming vs demonstration mode #23

Open
colormotor opened this issue Feb 29, 2024 · 0 comments
Open

Adding programming vs demonstration mode #23

colormotor opened this issue Feb 29, 2024 · 0 comments

Comments

@colormotor
Copy link

Hi, it would be useful to add functionality to the desk interface so it can also set programming vs execution mode. Currently I am doing this externally (using a FR3) with this function:

def set_programming_mode(desk, flag):
        if flag:
            url = '/desk/api/operating-mode/programming'
        else:
            url = '/desk/api/operating-mode/execution'
        desk._request('post',
                  url,
                  files={'force': True},
                  headers={'X-Control-Token': desk._token.token})

With the URLs borrowed from https://github.com/TimSchneider42/franky

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

1 participant