{"id":28167930,"url":"https://github.com/kaperys/go-webos","last_synced_at":"2025-05-15T14:14:25.592Z","repository":{"id":57499732,"uuid":"142150408","full_name":"kaperys/go-webos","owner":"kaperys","description":"A small Go webOS library","archived":false,"fork":false,"pushed_at":"2020-05-01T05:04:42.000Z","size":16,"stargazers_count":12,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T19:49:15.912Z","etag":null,"topics":["go","iot","webos"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/kaperys/go-webos","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/kaperys.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}},"created_at":"2018-07-24T11:42:40.000Z","updated_at":"2024-05-13T18:44:40.000Z","dependencies_parsed_at":"2022-08-28T14:10:12.256Z","dependency_job_id":null,"html_url":"https://github.com/kaperys/go-webos","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaperys%2Fgo-webos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaperys%2Fgo-webos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaperys%2Fgo-webos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaperys%2Fgo-webos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaperys","download_url":"https://codeload.github.com/kaperys/go-webos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355368,"owners_count":22057356,"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":["go","iot","webos"],"created_at":"2025-05-15T14:14:24.415Z","updated_at":"2025-05-15T14:14:25.569Z","avatar_url":"https://github.com/kaperys.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go WebOS 📺\n\nA small Go library for interaction with webOS enabled TVs. Tested on LG webOS TV UH668V (webOS version 05.30.20).\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/kaperys/go-webos)](https://goreportcard.com/report/github.com/kaperys/go-webos)\n\n```go\ndialer := websocket.Dialer{\n    HandshakeTimeout: 10 * time.Second,\n    // the TV uses a self-signed certificate\n    TLSClientConfig: \u0026tls.Config{InsecureSkipVerify: true},\n    NetDial: (\u0026net.Dialer{Timeout: time.Second * 5}).Dial,\n}\n\ntv, err := webos.NewTV(\u0026dialer, \"\u003ctv-ipv4-address\u003e\")\nif err != nil {\n    log.Fatalf(\"could not dial TV: %v\", err)\n}\ndefer tv.Close()\n\n// the MessageHandler must be started to read responses from the TV\ngo tv.MessageHandler()\n\n// AuthorisePrompt shows the authorisation prompt on the TV screen\nkey, err := tv.AuthorisePrompt()\nif err != nil {\n    log.Fatalf(\"could not authorise using prompt: %v\", err)\n}\n\n// the key returned can be used for future request to the TV using the \n// AuthoriseClientKey(\u003ckey\u003e) method, instead of AuthorisePrompt()\nfmt.Println(\"Client Key:\", key)\n\n// see commands.go for available methods\ntv.Notification(\"📺👌\")\n```\n\nSee [examples](examples/) for usage.\n\n🌟 Inspired by [lgtv.js](https://github.com/msloth/lgtv.js), [go-lgtv](https://github.com/dhickie/go-lgtv) and [webostv](https://github.com/snabb/webostv).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaperys%2Fgo-webos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaperys%2Fgo-webos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaperys%2Fgo-webos/lists"}