1.5.0 • Published 3 years ago
@telefonica/stb-url-launch v1.5.0
Launch URL to Living Apps STB.
usage:
npx @telefonica/stb-url-launch <url>
Automatically replaces localhost by your home IP address.
HTTP API usage
STB_URL_LAUNCH_HOST=example.tef-dc1.softether.net npx @telefonica/stb-url-launch <url>
Designed for using STBs via remote VPN Server.
It's possible to launch stb-url-launch in HTTP API mode, so you can launch URLs using the following HTTP call:
POST <host>:3000/launch
payload:
{
"url": "...",
"stb" "xxx"
}
Config using environment variables:
STB_URL_LAUNCH_HOST
: Server public IPADMIN_CODE
: Movistar Admin Code (optional)
It will authenticate using <STB_URL_LAUNCH_HOST>:8<ID>
, where ID
comes from stb
parameter.
Therefore, you'll need to apply the following port forwarding rule in your server:
- External: 8. Internal: 8090. IP Address: 192.168.1.
Also, you'll need to configure static IP for your STB: 192.168.1.
Why so weird? Due to VPN server limitations it's not possible to reach VPN client (STB) from VPN Server (same host as API Server) :(