2026-05-10 fix ~/Automations → ~/Automation path in luna-send docs, add htpc.md
This commit is contained in:
@@ -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"}'
|
||||
```
|
||||
</details>
|
||||
|
||||
### Проверка статуса сервиса
|
||||
|
||||
```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`.
|
||||
|
||||
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user