iblrig.tools.get_anydesk_id
- iblrig.tools.get_anydesk_id(format_id=True, silent=False)[source]
Retrieve the AnyDesk ID of the current machine.
- Parameters:
- Returns:
The AnyDesk ID as a formatted string (e.g., ‘123 456 789’) if successful, or None on failure.
- Return type:
- Raises:
FileNotFoundError – If the AnyDesk executable is not found.
subprocess.CalledProcessError – If an error occurs while executing the AnyDesk command.
StopIteration – If the subprocess output is empty.
UnicodeDecodeError – If there is an issue decoding the subprocess output.
- Parameters:
Notes
The function attempts to find the AnyDesk executable and retrieve the ID using the command line. On success, the AnyDesk ID is returned as a formatted string. If silent is True, exceptions are logged, and None is returned on failure. If silent is False, exceptions are raised on failure.