### Development setup commands Source: https://github.com/helalaou/aerotizen/blob/main/CONTRIBUTING.md Clone the repository, create a virtual environment, install the CLI and dev tools, and install launcher build and lint tools. ```bash git clone https://github.com/helalaou/AeroTizen cd AeroTizen python3 -m venv .venv && source .venv/bin/activate pip install -e ".[dev]" # the aerotizen CLI + pytest + ruff npm ci # launcher build and lint tools ``` -------------------------------- ### Install the launcher Source: https://github.com/helalaou/aerotizen/blob/main/README.md Downloads the latest stable launcher release, checks its checksum and compatibility, signs it with your TV certificates, and installs it. No source checkout or Node.js needed. Run the same command to install a newer launcher. ```bash ./aerotizen install launcher ``` -------------------------------- ### Local verification commands Source: https://github.com/helalaou/aerotizen/blob/main/docs/preact-settings.md Run these commands in order to install dependencies, lint, typecheck, build, test, install Chromium, run browser tests, and start the dev server. The dev server prints the network URL at startup and serves at http://localhost:8019 at 1920×1080. ```sh npm ci npm run lint npm run typecheck npm run build npm test npx playwright install chromium npm run test:browser npm run dev ``` -------------------------------- ### Install a downloaded app package Source: https://github.com/helalaou/aerotizen/blob/main/README.md Installs a downloaded `.wgt` package directly. ```bash ./aerotizen install ./app.wgt ``` -------------------------------- ### Apply Home settings Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-pc-flow.md Start the apply process with the CLI, which requires a successful SDK UID 901 query and an eligible installed launcher. ```bash home apply --yes ``` -------------------------------- ### List installed apps Source: https://github.com/helalaou/aerotizen/blob/main/README.md Shows installed apps on the TV. ```bash ./aerotizen apps ``` -------------------------------- ### Local release build checks (Python and Node setup) Source: https://github.com/helalaou/aerotizen/blob/main/docs/releases.md Run these commands with Python 3.10+ (or 3.12 to match native build jobs) to install dev dependencies, build the launcher and CLI, and verify the executables. The `--tag` option checks that a tag matches the source version. CLI builds target the host OS and CPU; each built executable is run with `--help` and `--version` with Python paths removed. ```sh python -m pip install -e '.[dev]' npm ci npm run build python tools/build_release.py launcher --output dist/releases/launcher python -m pip install 'pyinstaller>=6,<7' certifi python tools/build_release.py cli --output dist/cli ``` -------------------------------- ### Install local launcher files Source: https://github.com/helalaou/aerotizen/blob/main/README.md Installs local development files or a downloaded package. Use after `npm ci && npm run build` or with a downloaded `.wgt` file. ```bash ./aerotizen install ./dist/launcher ``` -------------------------------- ### Manual performance comparison servers and Playwright CLI commands Source: https://github.com/helalaou/aerotizen/blob/main/docs/preact-settings.md Start these servers in separate terminals after building, then run the Playwright CLI commands to open the app, resize, and run the performance sample. The performance sample is a manual desktop comparison; the UI check mocks weather requests. ```sh python3 -m http.server 8020 --bind 127.0.0.1 --directory launcher python3 -m http.server 8032 --bind 127.0.0.1 --directory dist/launcher npx --package @playwright/cli playwright-cli -s=settings open http://127.0.0.1:8032 npx --package @playwright/cli playwright-cli -s=settings resize 1920 1080 npx --package @playwright/cli playwright-cli -s=settings run-code --filename tests/settings_performance.browser.js > /tmp/settings-performance.log ``` -------------------------------- ### Run explicit hardware test with probe_device_session.py Source: https://github.com/helalaou/aerotizen/blob/main/docs/device-session.md Run from a checkout installed with `pip install -e '.[dev]'`. Acquires root, reads device identity, checks SDB access and installed apps, and writes a handoff report. Requires absolute paths to the root tool and sdb, and the TV's IP address. ```sh python tools/probe_device_session.py \ --tv TV_IP \ --root-tool /absolute/path/to/samsung-tv-root \ --sdb /absolute/path/to/sdb \ --output /absolute/path/to/handoff.json ``` -------------------------------- ### Install CLI with pip Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-pc-flow.md Install the CLI from the same checkout using pip in editable mode. ```bash python -m pip install -e . ``` -------------------------------- ### Install a specific launcher version Source: https://github.com/helalaou/aerotizen/blob/main/README.md Selects a published launcher version to install. Replace the number with a valid version. CLI and launcher versions are independent; a launcher release can require a newer CLI. ```bash ./aerotizen install launcher --version 2.2.0 ``` -------------------------------- ### Check CLI version Source: https://github.com/helalaou/aerotizen/blob/main/README.md Displays the installed CLI version to verify compatibility with launcher releases. ```bash ./aerotizen --version ``` -------------------------------- ### Conventional Commit PR title examples Source: https://github.com/helalaou/aerotizen/blob/main/CONTRIBUTING.md Use these Conventional Commit titles for pull requests. The Validate PR title check runs on PR open, reopen, edit, or new commits. Supported types are feat, fix, docs, style, refactor, perf, test, build, ci, chore, and revert; scopes are optional. Use '!' for a breaking change. ```text feat(launcher): add a settings screen fix(cli): handle failed launcher downloads feat(cli)!: change certificate storage chore(main): release cli 2.2.0 ``` -------------------------------- ### Restore home with or without AeroTizen installed Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-pc-flow.md Run the restore command with or without AeroTizen installed. The CLI checks the TV's native application registry (launcher and service registrations); if installed, it uses the persistent watcher handoff, otherwise the SDK helper restores directly. A service timeout is not proof of uninstall, and restore stops before writes if installation state is unknown or the control service is unavailable. ```sh aerotizen home restore # offline preview aerotizen --tv TV_IP home restore --yes ``` -------------------------------- ### Apply Home-only configuration with aerotizen home apply Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-pc-flow.md Opens AeroTizen on the TV to start its control service. Use --yes for live apply; the commented variant is an offline preview. Apply accepts the specific difference where opening AeroTizen changes only db/appfw/booting_appid_backup to DclHome001.Home, then restores saved startup values. Do not use --boot for Home-only apply. ```sh aerotizen home apply # offline preview aerotizen --tv TV_IP home apply --yes ``` -------------------------------- ### Build native Home query and control helpers Source: https://github.com/helalaou/aerotizen/blob/main/CONTRIBUTING.md Build the separate native Home query and control helpers using the .NET 6 SDK. Build both before running the full Python suite or building a standalone CLI. ```bash python tools/build_home_query.py python tools/build_home_control.py ``` -------------------------------- ### Relaunch AeroTizen after in-place update Source: https://github.com/helalaou/aerotizen/blob/main/docs/s90c-weather-solar-validation.md Confirm installation completion and relaunch AeroTizen using the verified CLI. Update DclHome001.Home in place; do not uninstall it or run `home apply`, `home restore`, firmware updates or native preference writes for this wallpaper test. If an installer requests uninstall/reset to continue, stop and investigate. ```powershell & $verifiedCliPython -m aerotizen --tv $tvIp launch DclHome001.Home ``` -------------------------------- ### Apply Home only Source: https://github.com/helalaou/aerotizen/blob/main/README.md Open AeroTizen on the TV to start its control service, then apply Home only. The command stops if compatibility checks fail. ```sh ./aerotizen --tv TV_IP home apply --yes ``` -------------------------------- ### Prepare test worktree and run checks in PowerShell Source: https://github.com/helalaou/aerotizen/blob/main/docs/s90c-weather-solar-validation.md Run from an existing fork checkout in PowerShell. Creates a new worktree under Documents, fetches the fix branch, installs dependencies, and runs lint, build, and tests. Each command must succeed before the next. Do not overwrite the installed-build checkout, original signed package, certificates, or Home backup. ```powershell $solarRoot = Join-Path "$HOME\Documents" ("AeroTizen_Solar_Test_" + (Get-Date -Format "yyyyMMdd_HHmmss")) git fetch https://github.com/motorgrid-ita/AeroTizen.git fix/weather-cache-solar-refresh if ($LASTEXITCODE -ne 0) { throw "Fetch failed" } git worktree add --detach $solarRoot FETCH_HEAD if ($LASTEXITCODE -ne 0) { throw "Worktree creation failed" } Set-Location $solarRoot git rev-parse HEAD npm.cmd ci --no-audit --no-fund npm.cmd run lint npm.cmd run build npm.cmd test ``` -------------------------------- ### Sign and install compiled launcher with AeroTizen CLI Source: https://github.com/helalaou/aerotizen/blob/main/docs/s90c-weather-solar-validation.md Use only when the CLI's configured certificate directory has already been verified to contain the matching author certificate. `$verifiedCliPython` and `$tvIp` are explicit tester-supplied values, not automatic TV discovery. If the certificate configuration has not been verified, stop before this command and use the existing backup-based signing workflow instead. ```powershell # Use the existing, verified AeroTizen CLI environment and the actual TV address. & $verifiedCliPython -m aerotizen --tv $tvIp install "$solarRoot\dist\launcher" ``` -------------------------------- ### Run checks and tests Source: https://github.com/helalaou/aerotizen/blob/main/CONTRIBUTING.md Run the same checks as CI: linting, formatting, Python tests, launcher lint, type checks, build, and browser tests. Requires Node.js 22.12+ or Node 20.19+. ```bash ruff check . && ruff format --check . pytest npm run lint npm run typecheck # strict TypeScript checks for Settings and Vite config npm run build # type checks, then compiled Settings in dist/launcher npm test # launcher tests: tests/*.test.cjs, run in a Node sandbox npx playwright install chromium # once per Playwright version; CI also installs OS dependencies npm run test:browser # compiled Settings and legacy comparison, with managed local servers ``` -------------------------------- ### Restore original Home Source: https://github.com/helalaou/aerotizen/blob/main/README.md Revert to saved values, whether AeroTizen is installed or uninstalled. Restore uses your saved backup, not hardcoded defaults. ```sh ./aerotizen --tv TV_IP home restore --yes ``` -------------------------------- ### Restore on another authorised PC using a copied backup Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-pc-flow.md Use the copied baseline folder (containing original-home.json and transactions/) on another authorised PC. The PC's IP must be allowed in the TV's Developer Mode settings, and the folder must be writable because receipts are read and written beside the selected baseline. Restore re-enables the watcher if AeroTizen remains installed; no watcher is needed after uninstall. ```sh aerotizen home restore --backup /path/to/copied-folder/original-home.json aerotizen --tv TV_IP home restore --backup /path/to/copied-folder/original-home.json --yes ``` -------------------------------- ### Offline preview commands: aerotizen home apply and restore Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-apply-restore.md Run these commands without a TV connection to preview changes; they stage no files. Use --json for structured output and --backup PATH to add validated original values. Without a path, execution uses the connected TV's immutable backups//original-home.json; a missing or invalid baseline blocks all writes. ```sh aerotizen home apply aerotizen home restore ``` -------------------------------- ### Apply and restore native boot with AeroTizen Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-native-boot.md Use the existing immutable Home backup. Apply requires the exact original state; restore an existing native assignment first before adding boot. Plain `home apply` preserves original startup settings, while `--boot` enables Smart Hub autostart (`1`) and lets the TV derive its startup and boot-backup IDs. The boot request is saved in a private transaction receipt before the writer runs; restore permits changed autostart only when the current service transaction matches that receipt. A missing or unrelated receipt blocks restore before any write. Preserve the whole private device backup folder, not only `original-home.json`. Older Home control builds cannot restore the new boot setting; use the boot-aware build or this checkout. ```sh aerotizen home apply --boot # offline preview aerotizen --tv TV_IP home apply --boot --yes aerotizen --tv TV_IP home restore --yes ``` -------------------------------- ### Execution commands with --yes: aerotizen --tv TV_IP home status/apply/restore Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-apply-restore.md Use these commands when device testing is authorised. --yes is required for execution. Before the writer runs, the CLI verifies device identity, model, architecture, OS and exact firmware against the backup. Do not run them while playback must remain untouched. ```sh aerotizen --tv TV_IP home status aerotizen --tv TV_IP home apply --yes aerotizen --tv TV_IP home restore --yes ``` -------------------------------- ### Create TV certificates Source: https://github.com/helalaou/aerotizen/blob/main/README.md Opens Samsung's sign-in page in your browser to create the certificates needed for signing apps. Run after enabling Developer Mode on the TV. ```bash ./aerotizen certs ``` -------------------------------- ### aerotizen home apply and restore commands Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-startup-art-return.md Commands to apply and restore Home settings on a TV. Apply requires the original baseline; restore an existing assignment before using apply again. A full restart is required before checking the new return route and after restoring. ```sh aerotizen home apply --boot # offline preview aerotizen --tv TV_IP home apply --boot --yes aerotizen --tv TV_IP home restore --yes ``` -------------------------------- ### Build home query helper Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-pc-flow.md Build the home query helper using the provided build script. Requires the .NET 6 SDK. ```bash python tools/build_home_query.py ``` -------------------------------- ### Discover TV on macOS or Linux Source: https://github.com/helalaou/aerotizen/blob/main/README.md Checks that the CLI finds your TV on the same network. Run from the extracted directory; use `./aerotizen` for macOS/Linux. ```bash ./aerotizen discover ``` -------------------------------- ### Read Home status and backup commands Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-read-only.md Use these commands to inspect the TV's current native Home assignment and preserve the original values on the computer. They do not change Home, startup, Art Mode, or watcher settings. Add --json for machine-readable output. Optional --root selects the previous temporary-root transport; --root-tool and --sdb specify tool paths. ```sh aerotizen --tv TV_IP home status aerotizen --tv TV_IP home backup ``` -------------------------------- ### Check Home status and backup original Home Source: https://github.com/helalaou/aerotizen/blob/main/README.md Run these commands before opening AeroTizen to save the original Home backup. Replace TV_IP with your TV's address. ```sh ./aerotizen --tv TV_IP home status ./aerotizen --tv TV_IP home backup ``` -------------------------------- ### Build home control helper Source: https://github.com/helalaou/aerotizen/blob/main/docs/home-pc-flow.md Build the home control helper using the provided build script. Requires the .NET 6 SDK. ```bash python tools/build_home_control.py ``` -------------------------------- ### Uninstall AeroTizen Source: https://github.com/helalaou/aerotizen/blob/main/README.md Removes the AeroTizen launcher from the TV. ```bash ./aerotizen uninstall launcher ``` -------------------------------- ### Discover TV in Windows PowerShell Source: https://github.com/helalaou/aerotizen/blob/main/README.md Checks that the CLI finds your TV on the same network. Run from the extracted directory; use `.\.aerotizen.exe` for Windows PowerShell. ```powershell .\aerotizen.exe discover ``` -------------------------------- ### Diagnostics console check for weather photo and solar phase Source: https://github.com/helalaou/aerotizen/blob/main/docs/s90c-weather-solar-validation.md Read-only console check for the launcher inspector. Reports enabled settings, widget visibility, scene class, fallback visibility, and solar phase. Use the Network panel to count automatic requests to Open-Meteo and ipapi. ```javascript ({enabled: AeroTizen.settings.weatherPhoto, widget: AeroTizen.settings.showWeather, scene: document.getElementById('weather-photo').className, fallbackVisible: !document.getElementById('bg').hidden, phase: Weather.solarPhase(Weather.currentReading(), Date.now())}) ``` -------------------------------- ### Remove unwanted apps Source: https://github.com/helalaou/aerotizen/blob/main/README.md Lists or removes apps that are not needed. ```bash ./aerotizen debloat ```