From cdad164cb5682e62e688967f3034a5cf32a88343 Mon Sep 17 00:00:00 2001 From: Alexey Martemyanov Date: Sun, 10 May 2026 21:02:31 +0600 Subject: [PATCH] =?UTF-8?q?2026-05-10=20fix=20~/Automations=20=E2=86=92=20?= =?UTF-8?q?~/Automation=20path=20in=20luna-send=20docs,=20add=20htpc.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- family/how-to/magic4pc-webos.md | 10 +++++----- family/how-to/tv-luna-send.md | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/family/how-to/magic4pc-webos.md b/family/how-to/magic4pc-webos.md index eaade0bf..5934ed65 100644 --- a/family/how-to/magic4pc-webos.md +++ b/family/how-to/magic4pc-webos.md @@ -80,7 +80,7 @@ cd ~/Developer/magic4pc/webos Скрипт делает всё: build → package → scp → close → remove → install → launch. -Использует `~/Automations/tv-luna-send.sh` для close/remove/launch. +Использует `~/Automation/tv-luna-send.sh` для close/remove/launch. Для install (`-i` subscribe) — прямой ssh+script с polling на `"state":"installed"`. > ⚠️ **Не использовать `ares-install` / `ares-launch`** — не ждут завершения, работают ненадёжно. @@ -94,8 +94,8 @@ NODE_OPTIONS=--openssl-legacy-provider npm run build /Users/admin/webOS_TV_SDK/CLI/bin/ares-package dist/ service/ --outdir . scp me.wouterdek.magic4pc_1.1.0_all.ipk root@192.168.1.75:/tmp/magic4pc.ipk -~/Automations/tv-luna-send.sh -n 1 -f luna://com.webos.service.applicationmanager/closeByAppId '{"id":"me.wouterdek.magic4pc"}' || true -~/Automations/tv-luna-send.sh -n 1 -f luna://com.webos.appInstallService/dev/remove '{"id":"me.wouterdek.magic4pc"}' || true +~/Automation/tv-luna-send.sh -n 1 -f luna://com.webos.service.applicationmanager/closeByAppId '{"id":"me.wouterdek.magic4pc"}' || true +~/Automation/tv-luna-send.sh -n 1 -f luna://com.webos.appInstallService/dev/remove '{"id":"me.wouterdek.magic4pc"}' || true sleep 2 # install — через прямой script (luna-send -i не работает через враппер) @@ -103,14 +103,14 @@ ssh root@192.168.1.75 "script -q -c \"luna-send -i -f luna://com.webos.appInstal for i in \$(seq 1 30); do sleep 1; grep -q '\"state\":\"installed\"' /tmp/install.txt 2>/dev/null && break; done kill %1 2>/dev/null; grep -v '^Script ' /tmp/install.txt; rm -f /tmp/install.txt" -~/Automations/tv-luna-send.sh -n 1 -f luna://com.webos.applicationManager/launch '{"id":"me.wouterdek.magic4pc"}' +~/Automation/tv-luna-send.sh -n 1 -f luna://com.webos.applicationManager/launch '{"id":"me.wouterdek.magic4pc"}' ``` ### Проверка статуса сервиса ```bash -~/Automations/tv-luna-send.sh -n 1 -f luna://me.wouterdek.magic4pc.service/query '{}' +~/Automation/tv-luna-send.sh -n 1 -f luna://me.wouterdek.magic4pc.service/query '{}' ``` Ожидаемый результат: `serviceActive: true`, `broadcastAdsActive: true`. diff --git a/family/how-to/tv-luna-send.md b/family/how-to/tv-luna-send.md index e1547e69..ee90a1dc 100644 --- a/family/how-to/tv-luna-send.md +++ b/family/how-to/tv-luna-send.md @@ -1,6 +1,6 @@ # tv-luna-send.sh — враппер для luna-send на LG TV -Скрипт: `~/Automations/tv-luna-send.sh` +Скрипт: `~/Automation/tv-luna-send.sh` ## Проблема @@ -19,22 +19,22 @@ ## Использование ```bash -~/Automations/tv-luna-send.sh [luna-send flags] luna://service/method 'json' +~/Automation/tv-luna-send.sh [luna-send flags] luna://service/method 'json' ``` Примеры: ```bash # foreground app -~/Automations/tv-luna-send.sh -n 1 -f luna://com.webos.applicationManager/getForegroundAppInfo '{}' +~/Automation/tv-luna-send.sh -n 1 -f luna://com.webos.applicationManager/getForegroundAppInfo '{}' # закрыть app -~/Automations/tv-luna-send.sh -n 1 -f luna://com.webos.service.applicationmanager/closeByAppId '{"id":"me.wouterdek.magic4pc"}' +~/Automation/tv-luna-send.sh -n 1 -f luna://com.webos.service.applicationmanager/closeByAppId '{"id":"me.wouterdek.magic4pc"}' # запустить app -~/Automations/tv-luna-send.sh -n 1 -f luna://com.webos.applicationManager/launch '{"id":"me.wouterdek.magic4pc"}' +~/Automation/tv-luna-send.sh -n 1 -f luna://com.webos.applicationManager/launch '{"id":"me.wouterdek.magic4pc"}' # статус сервиса -~/Automations/tv-luna-send.sh -n 1 -f luna://me.wouterdek.magic4pc.service/query '{}' +~/Automation/tv-luna-send.sh -n 1 -f luna://me.wouterdek.magic4pc.service/query '{}' ``` Переменная `TV_HOST` переопределяет таргет (default: `root@LGwebOSTV`, alias `root@tv`, IP: `root@192.168.1.75`).