{"id":45294560,"url":"https://github.com/firstthumb/go-hue","last_synced_at":"2026-02-21T03:35:39.816Z","repository":{"id":49577077,"uuid":"367876214","full_name":"firstthumb/go-hue","owner":"firstthumb","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-06T11:22:37.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-27T22:06:45.815Z","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/firstthumb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-16T12:37:49.000Z","updated_at":"2021-06-13T20:48:49.000Z","dependencies_parsed_at":"2022-08-29T13:41:19.089Z","dependency_job_id":null,"html_url":"https://github.com/firstthumb/go-hue","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/firstthumb/go-hue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstthumb%2Fgo-hue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstthumb%2Fgo-hue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstthumb%2Fgo-hue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstthumb%2Fgo-hue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstthumb","download_url":"https://codeload.github.com/firstthumb/go-hue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstthumb%2Fgo-hue/sbom","scorecard":{"id":401236,"data":{"date":"2025-08-11","repo":{"name":"github.com/firstthumb/go-hue","commit":"070b444cce05d61bce7d8091efc6c82ac8ea46a2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/firstthumb/go-hue/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/firstthumb/go-hue/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/firstthumb/go-hue/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/firstthumb/go-hue/tests.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T20:08:24.574Z","repository_id":49577077,"created_at":"2025-08-18T20:08:24.574Z","updated_at":"2025-08-18T20:08:24.574Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T03:11:15.450Z","status":"ssl_error","status_checked_at":"2026-02-21T03:10:34.920Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-21T03:35:39.732Z","updated_at":"2026-02-21T03:35:39.797Z","avatar_url":"https://github.com/firstthumb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ego-hue\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003e*** Work In Progress ***\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/firstthumb/go-hue/commits/main\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/firstthumb/go-hue.svg\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n  \u003cimg alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/firstthumb/go-hue\"\u003e\n  \u003cimg alt=\"GitHub go.mod Go version\" src=\"https://img.shields.io/github/go-mod/go-version/firstthumb/go-hue\"\u003e\n  \u003ca href=\"http://godoc.org/github.com/firstthumb/go-hue\"\u003e\n    \u003cimg src=\"https://godoc.org/github.com/firstthumb/go-hue?status.svg\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/firstthumb/go-hue/issues?q=is%3Apr+is%3Aclosed\"\u003e\n    \u003cimg alt=\"GitHub closed pull requests\" src=\"https://img.shields.io/github/issues-pr-closed-raw/firstthumb/go-hue\"\u003e \n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/firstthumb/go-hue/pulls\"\u003e\n    \u003cimg alt=\"GitHub pull requests\" src=\"https://img.shields.io/github/issues-pr/firstthumb/go-hue\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/firstthumb/go-hue/issues\"\u003e\n    \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/firstthumb/go-hue\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/firstthumb/go-hue/graphs/contributors\"\u003e\n    \u003cimg alt=\"GitHub contributors\" src=\"https://img.shields.io/github/contributors/firstthumb/go-hue\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/firstthumb/go-hue/blob/main/LICENSE.md\"\u003e\n    \u003cimg alt=\"License: BSD\" src=\"https://img.shields.io/badge/license-MIT-green.svg\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e go-hue is a Go client library for accessing the [Philips Hue API](https://developers.meethue.com/develop/hue-api/)\n\n## Install\n\n```sh\ngo get github.com/firstthumb/go-hue\n```\n\n## Authentication\n\nPhilips Hue uses local and remote authorization. First you need to create user.\n\n## Usage\n\nImport the package into your project.\n\n```Go\nimport \"github.com/firstthumb/go-hue\"\n```\n\nUse existing user and access Hue services. For example:\n\n```Go\n// Discover your network and finds the first bridge\nhost, _ := hue.Discover()\nclient := hue.NewClient(host, \"\u003cYOUR USER TOKEN\u003e\", nil)\nlights, resp, err := client.Light.GetAll(context.Background())\n```\n\nOr create user. Don't forget to save the clientId \n\n```Go\n// You must press Philips Hue bridge button before\nhost, _ := hue.Discover()\nclient, _ := hue.CreateUser(host, \"\u003cCLIENT_NAME\u003e\", nil)\nclient.GetClientID() // Save clientID for next time\nlights, resp, err := client.Light.GetAll(context.Background())\n```\n\nSupports remote API\n\n```Go\n// Create your clientId and clientSecret at https://developers.meethue.com/my-apps/\n// set your environment variables HUE_CLIENT_ID, HUE_CLIENT_SECRET and HUE_APP_ID\n// use the same callback url defined in your app\nauth := hue.NewAuthenticator(\"http://localhost:8181/callback\")\nclient, err := auth.Authenticate()\nif err != nil {\n  panic(err)\n}\n\t\nusername, err := client.CreateRemoteUser()\nif err != nil {\n  panic(err)\n}\n\t\nclient.Login(username)\nresult, _, _ := client.Light.GetAll(context.Background())\nlights, _ := json.Marshal(result)\nfmt.Println(string(lights))\n```\n\n[More Examples](https://github.com/firstthumb/go-hue/tree/main/example)\n\n## Coverage\n\nCurrently the following services are supported:\n\n- [x] [Remote API](https://developers.meethue.com/develop/hue-api/remote-api-quick-start-guide/)\n  - [x] Remote Login\n- [x] [Lights API](https://developers.meethue.com/develop/hue-api/lights-api/)\n  - [x] Get all lights\n  - [x] Get new lights\n  - [x] Search for new lights\n  - [x] Get light attributes and state\n  - [x] Set light attributes (rename)\n  - [x] Set light state\n  - [x] Delete lights\n- [x] [Groups API](https://developers.meethue.com/develop/hue-api/groupds-api/)\n  - [x] Get all groups\n  - [x] Create group\n  - [x] Get group attributes\n  - [x] Set group attributes\n  - [x] Set group state\n  - [x] Delete group\n- [ ] [Schedules API](https://developers.meethue.com/develop/hue-api/3-schedules-api/)\n- [ ] [Scenes API](https://developers.meethue.com/develop/hue-api/4-scenes/)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstthumb%2Fgo-hue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstthumb%2Fgo-hue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstthumb%2Fgo-hue/lists"}