Skip to content

v1.3.17#99

Merged
TiTidom-RC merged 7 commits into
betafrom
dev
May 5, 2026
Merged

v1.3.17#99
TiTidom-RC merged 7 commits into
betafrom
dev

Conversation

@TiTidom-RC
Copy link
Copy Markdown
Owner

This pull request introduces a new "Virtual Keyboard (IME)" configuration option for TV Remote devices, improves robustness when communicating with the daemon, and updates development environment settings and linting configuration. The changes ensure that the IME setting is properly initialized, exposed in the UI, and passed through the entire stack to the Python daemon. Additionally, the plugin version is incremented and development tooling is updated.

TV Remote IME (Virtual Keyboard) Feature:

  • Added a new enable_ime configuration option for TV Remote devices, defaulting to enabled. This setting is now initialized for existing devices during upgrade and included in device creation and updates. (core/class/tvremote.class.php, plugin_info/install.php, public static function createAndUpdTVRemoteFromScan, plugin_info/info.json, [1] [2] [3]
  • Updated the equipment UI to allow users to enable or disable the IME feature, with explanatory tooltips and warnings about daemon restarts. (desktop/php/tvremote.php, desktop/php/tvremote.phpR205-R214)
  • Modified the Python daemon to accept and use the enable_ime parameter when creating and managing remote devices, ensuring the IME setting is respected at runtime. (resources/tvremoted/tvremoted.py, [1] [2] [3]

Daemon Communication Robustness:

  • Added checks in all methods that communicate with the daemon to ensure it is running before sending commands, logging and skipping actions if the daemon is not active. (core/class/tvremote.class.php, [1] [2] [3]

UI and Documentation Updates:

  • Reorganized the equipment UI sections, renaming and separating "Informations" and "Paramètres avancés" for clarity. (desktop/php/tvremote.php, [1] [2]

Development Environment and Linting:

  • Updated VSCode settings to specify the Python interpreter and project environment, and added a ruff.toml configuration for Python linting, replacing the previous .flake8 file. (.vscode/settings.json, [1] [2]; ruff.toml, [3]; .flake8, [4]

Versioning:

TiTidom-RC added 7 commits May 5, 2026 19:24
Remove legacy .flake8 and add ruff.toml to migrate linting to ruff (target py312). ruff configuration selects pycodestyle (E) and pyflakes (F) checks, preserves previous ignored E-codes, and adds per-file ignore for __init__.py imports. Also update .vscode/settings.json to set the workspace venv interpreter path and add python-envs.pythonProjects configuration (plus minor cSpell list formatting). These changes align editor settings and linting configuration with the project's ruff-based setup.
Expose a new "enable_ime" option in the equipment UI and propagate it to the daemon so the virtual keyboard (IME) can be enabled/disabled per device. Core: send enable_ime (default 1) with device info. Desktop: add a Compatibilité section with the IME checkbox and adjust the legend label. Daemon: accept enable_ime from socket messages, log its state, pass it into EQRemote and into AndroidTVRemote (enable_ime parameter). Also bump plugin version to 1.3.17.
Add migration v1.3.17 in plugin_info/install.php to set the 'enable_ime' configuration to 1 for all existing tvremote eqLogic instances when the setting is unset, and persist the change. Ensures the new default is applied to older equipments.
When creating eqLogic entries during a device scan, set the 'enable_ime' configuration to 1 and save the object. This ensures the input method editor (IME) is enabled by default for tvremote devices to support text input features.
Add daemon state checks to enable/disable methods. Each of enableTVRemoteToDaemon, enableADBToDaemon, disableTVRemoteToDaemon and disableADBToDaemon now calls self::deamon_info() and, if the daemon state is not 'ok', logs a debug message and returns early to avoid sending commands when the daemon isn't started.
Rename the section header from 'Compatibilité' to 'Paramètres avancés' and refine the French tooltip for 'Clavier Virtuel (IME)' to clarify default behavior: that it retrieves the current app name and allows sending text via the virtual keyboard, and to advise when to disable it. No functional logic changes.
Refines the French tooltip for the "Clavier Virtuel (IME)" option to be shorter and clearer. The new text explicitly states that enabling allows the "Current App" command and text input, while disabling should be used if the TV shows "Utiliser le clavier sur votre smartphone" instead of the built-in keyboard. Change applied to desktop/php/tvremote.php.
@TiTidom-RC TiTidom-RC merged commit 2a56a26 into beta May 5, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant