{"id":50933323,"url":"https://github.com/tedyno/tvremote","last_synced_at":"2026-06-17T06:32:43.385Z","repository":{"id":363688237,"uuid":"1194078874","full_name":"tedyno/tvremote","owner":"tedyno","description":"Self-hosted web remote for Samsung Tizen TVs — Go server with Wake-on-LAN, app launcher and an installable PWA client.","archived":false,"fork":false,"pushed_at":"2026-06-09T23:24:15.000Z","size":379,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-10T01:12:07.934Z","etag":null,"topics":["golang","home-automation","pwa","remote-control","samsung","self-hosted","smart-tv","tizen","wake-on-lan","websocket"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tedyno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-27T22:33:59.000Z","updated_at":"2026-06-09T23:24:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tedyno/tvremote","commit_stats":null,"previous_names":["tedyno/tvremote"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tedyno/tvremote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyno%2Ftvremote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyno%2Ftvremote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyno%2Ftvremote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyno%2Ftvremote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tedyno","download_url":"https://codeload.github.com/tedyno/tvremote/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyno%2Ftvremote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34437449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","home-automation","pwa","remote-control","samsung","self-hosted","smart-tv","tizen","wake-on-lan","websocket"],"created_at":"2026-06-17T06:32:43.261Z","updated_at":"2026-06-17T06:32:43.379Z","avatar_url":"https://github.com/tedyno.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TV Remote\n\n[![Release](https://img.shields.io/github/v/release/tedyno/tvremote?sort=semver)](https://github.com/tedyno/tvremote/releases)\n[![Container](https://img.shields.io/badge/ghcr.io-tvremote-2496ED?logo=docker\u0026logoColor=white)](https://github.com/tedyno/tvremote/pkgs/container/tvremote)\n[![Go](https://img.shields.io/badge/Go-1.23-00ADD8?logo=go\u0026logoColor=white)](go.mod)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nA self-hosted web remote for Samsung Tizen TVs. Open it on your phone, add it to\nthe home screen, and control the TV over your LAN — including powering it on with\nWake-on-LAN. Single ~16 MB Go binary, no app store, no cloud.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/demo.gif\" alt=\"TV Remote UI\" width=\"300\"\u003e\n\u003c/p\u003e\n\n## Features\n\n- **Full remote** — power, D-pad, OK, volume, numbers, navigation and media keys\n- **Wake-on-LAN** — turns the TV on from standby/off (the WebSocket can't)\n- **Press-and-hold** — arrows and volume repeat/accelerate like the physical remote\n- **App launcher** — lists installed apps with icons, launch with a tap\n- **Favorites** — long-press an app to pin it to the main screen (stored locally)\n- **Live status** — shows power state and the currently active app\n- **PWA** — installable to the iOS/Android home screen, runs full-screen\n- **OLED design** — pure-black UI tuned for phones; tap detection so swipes don't fire buttons\n\n## How it works\n\nThe server keeps a WebSocket open to the TV's remote-control channel\n(`wss://\u003ctv\u003e:8002`) and exposes a small HTTP API the web client calls. Power-on\nuses Wake-on-LAN (a magic packet to the TV's MAC) because a TV in standby won't\nwake over the WebSocket. The real power state is read from the TV's REST API\n(`http://\u003ctv\u003e:8001/api/v2/`). App icons are proxied from Google's favicon service\nand cached.\n\n## Quick start (Docker)\n\n```sh\ncp .env.example .env       # then edit TV_IP and TV_MAC for your TV\ndocker compose up -d --build\n```\n\nOr run the prebuilt multi-arch image (amd64/arm64) straight from GHCR:\n\n```sh\ndocker run -d --name tvremote --network host \\\n  -e TV_IP=192.168.1.10 -e TV_MAC=AA:BB:CC:DD:EE:FF \\\n  -v \"$PWD/data:/app/data\" \\\n  ghcr.io/tedyno/tvremote:latest\n```\n\nOpen `http://\u003chost\u003e:\u003cSERVER_PORT\u003e/` on your phone. On first connect the TV shows\nan authorization prompt — accept it, and the pairing token is saved to `data/`.\n\n### Finding your TV's details\n\n- **TV_IP** — the TV's IP on your network (Settings → General → Network → Network Status).\n- **TV_MAC** — the MAC of the interface the TV uses (wired or Wi-Fi). With the TV on\n  and on the same subnet: `ping \u003cTV_IP\u003e` then `arp -n \u003cTV_IP\u003e`.\n\n## Configuration\n\nAll config is via environment variables (see `.env.example`):\n\n| Variable | Required | Default | Description |\n|---|---|---|---|\n| `TV_IP` | yes | — | TV IP address |\n| `TV_MAC` | no | — | TV MAC for Wake-on-LAN (without it the TV can't be powered on) |\n| `TV_PORT` | no | `8002` | TV remote WebSocket port |\n| `SERVER_PORT` | no | `3000` | Port this server listens on |\n| `APP_NAME` | no | `TVRemote` | Name shown when pairing with the TV |\n| `TOKEN_FILE` | no | `./data/tv-token.txt` | Where the pairing token is stored |\n\n## Local development\n\nRequires [Go](https://go.dev) 1.23+.\n\n```sh\nexport TV_IP=192.168.1.10 TV_MAC=AA:BB:CC:DD:EE:FF\ngo run ./server          # start the server\n```\n\n### CLI\n\nA small command-line client for sending a single key:\n\n```sh\ngo run ./server/cli \u003ccommand\u003e\n# commands: back, chdown, chup, down, enter, home, menu, mute,\n#           pause, play, power, source, stop, up\n```\n\n## Project layout\n\n```\nserver/        Go server (main.go) and CLI (cli/main.go)\nclient/        web UI (index.html), manifest and icons\nDockerfile     multi-stage build → distroless image (~16 MB)\n```\n\n## Notes\n\n- **No authentication** — anyone on your network can control the TV. Intended for a\n  trusted home LAN. Don't expose it to the internet without putting auth in front.\n- **Self-signed TLS** — the TV uses a self-signed certificate; the server skips\n  verification for that one connection only.\n- Tested with a Samsung RU7022 (2019, Tizen). Other Tizen models should work but\n  key names or quirks may differ.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedyno%2Ftvremote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedyno%2Ftvremote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedyno%2Ftvremote/lists"}