{"id":21423813,"url":"https://github.com/ossystems/tv-serial-control","last_synced_at":"2025-09-06T18:34:36.125Z","repository":{"id":137551697,"uuid":"169410794","full_name":"OSSystems/tv-serial-control","owner":"OSSystems","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-11T14:13:55.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T19:49:05.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/OSSystems.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}},"created_at":"2019-02-06T13:31:53.000Z","updated_at":"2019-10-11T14:13:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2f8c4c7-b1d2-462b-bccc-658f36ebdc24","html_url":"https://github.com/OSSystems/tv-serial-control","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OSSystems/tv-serial-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Ftv-serial-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Ftv-serial-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Ftv-serial-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Ftv-serial-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSSystems","download_url":"https://codeload.github.com/OSSystems/tv-serial-control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Ftv-serial-control/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260083862,"owners_count":22956408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-22T21:18:22.872Z","updated_at":"2025-06-16T02:05:32.609Z","avatar_url":"https://github.com/OSSystems.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tv-serial-control\n\nControl TV Monitor via serial port\n\n## Configuration\n\n* `DRIVER` driver name\n* `DEVICE` device\n* `PORT` listen port\n\n## Available Drivers\n\n* `dummy` Default dummy driver\n* `lg` LG monitors\n\n\u003e The dummy driver is available by default. To enable other supported driver\n\u003e pass the driver name as build tag to the build system.\n\n## Endpoints\n\n### `GET /driver`\n\nGet driver info.\n\nResponse:\n\n```json\n{\n  \"driver\": \"lg\",\n  \"device\": \"/dev/ttyS0\",\n  \"commands\": [\n    \"power_on\",\n    \"power_off\",\n    \"power_status\",\n    \"volume_get\",\n    \"volume_set\",\n    \"key_home\",\n    \"key_up\",\n    \"key_left\",\n    \"key_right\",\n    \"key_down\",\n    \"key_esc\",\n    \"key_a\",\n    \"key_z\",\n    \"key_r\"\n  ]\n}\n```\n\n\n### `POST /commands/:cmd`\n\nSend command `cmd`\n\n\n### Dummy Driver Command list\n```    \n    echo          \n```\n\n### LG Driver Command list and translation to  transmission protocol\n```\t\n  power_on:        \"ka 00 01\"\n  power_off:       \"ka 00 00\"\n  power_status:    \"ka 00 ff\"\n  volume_get:      \"kf 00 ff\"\n  volume_set:      \"kf 00 VAL\"\n  volume_mute_on:  \"ke 00 00\"\n  volume_mute_off: \"ke 00 01\"\n  key_home:        \"mc 00 7c\"\n  key_up:          \"mc 00 40\"\n  ley_left:        \"mc 00 07\"\n  key_enter:       \"mc 00 7c\"\n  key_right:       \"mc 00 06\"\n  key_down:        \"mc 00 31\"\n  key_esc:         \"mc 00 1b\"\n  key_a:           \"mc 00 41\"\n  key_z:           \"mc 00 5a\"\n  key_r:           \"mc 00 52\"\n  volume_up:       \"mc 00 02\"\n  volume_down:     \"mc 00 03\"\n```\nwhere  ` VAL`  is  a numeric value from 00 to 64 sent as a  string parameter\"\n\n#### Example with curl\n```curl  -X POST -H \"Content-Type: application/json\" -d '{\"args\":[\"64\"]}'   \"http://localhost:8080/commands/volume_set\"```\n   \n\n## License\n\nLicensed under MIT, ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT).\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the MIT\nlicense, shall be licensed as above, without any additional terms or\nconditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossystems%2Ftv-serial-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossystems%2Ftv-serial-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossystems%2Ftv-serial-control/lists"}