{"id":20279162,"url":"https://github.com/peterhellberg/lights","last_synced_at":"2025-09-08T16:48:57.022Z","repository":{"id":136623168,"uuid":"486523374","full_name":"peterhellberg/lights","owner":"peterhellberg","description":"A command line tool for circadian lighting at my desk ","archived":false,"fork":false,"pushed_at":"2022-11-17T15:18:24.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-04T02:39:15.991Z","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/peterhellberg.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":"2022-04-28T09:13:07.000Z","updated_at":"2023-01-24T00:51:56.000Z","dependencies_parsed_at":"2024-06-21T16:29:00.120Z","dependency_job_id":"58b4b02b-ba28-4bae-bffa-8347a00a8434","html_url":"https://github.com/peterhellberg/lights","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterhellberg/lights","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Flights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Flights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Flights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Flights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterhellberg","download_url":"https://codeload.github.com/peterhellberg/lights/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Flights/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274218180,"owners_count":25243357,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2024-11-14T13:28:38.462Z","updated_at":"2025-09-08T16:48:56.989Z","avatar_url":"https://github.com/peterhellberg.png","language":"Go","readme":"# 💡💡 `lights`\n\nA command line tool for circadian lighting at my desk.\n\n\u003e Note: This code is meant for my own use, written as a lab day project, do not expect much.\n\n## Circadian Lighting\n\n![Circadian Lighting Diagram](https://www.thelightingpractice.com/wp-content/uploads/2018/08/Sunset-Photo-Academic-Publication-Graphic.jpg)\n\n![Temperature Chart](https://i.imgur.com/NiAdlGj.png)\n\n## Usage\n\n```\nlights      # Toggles both of the lights ON or OFF\nlights -i   # Show information about the current state\nlights -c   # Calculate and set the appropriate circadian lighting values\n```\n\n```go\n$ lights --help\nUsage of lights:\n  -af string\n    \tthe address of the Fill Light's HTTP API (default \"http://filllight:9123\")\n  -ak string\n    \tthe address of the Key Light's HTTP API (default \"http://keylight:9123\")\n  -bf value\n    \tset Fill Light brightness to an absolute (between 0 and 100) or relative (-N or +N) percentage\n  -bk value\n    \tset Key Light brightness to an absolute (between 0 and 100) or relative (-N or +N) percentage\n  -c\tcalculate and set the appropriate circadian lighting values\n  -i\tdisplay the current status of the lights without changing their state\n  -tf value\n    \tset Fill Light temperature to an absolute (between 2900 and 7000) or relative (-N or +N) degrees\n  -tk value\n    \tset Key Light temperature to an absolute (between 2900 and 7000) or relative (-N or +N) degrees\n```\n\n\u003e I have also bound `Ctrl+F11` to toggle the Key Light, and `Ctrl+F12` to toggle the Fill Light.\n\n## Technical details\n\nThe heavy lifting is performed by [github.com/mdlayher/keylight](https://github.com/mdlayher/keylight/)\n\n\u003cimg src=\"https://assets.c7.se/svg/viking-gopher.svg\" align=\"right\" width=\"30%\" height=\"300\"\u003e\n\n## License (MIT)\n\nCopyright (c) 2022 [Peter Hellberg](https://c7.se)\n\n\u003e Permission is hereby granted, free of charge, to any person obtaining\n\u003e a copy of this software and associated documentation files (the\n\u003e \"Software\"), to deal in the Software without restriction, including\n\u003e without limitation the rights to use, copy, modify, merge, publish,\n\u003e distribute, sublicense, and/or sell copies of the Software, and to\n\u003e permit persons to whom the Software is furnished to do so, subject to\n\u003e the following conditions:\n\u003e\n\u003e The above copyright notice and this permission notice shall be\n\u003e included in all copies or substantial portions of the Software.\n\n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n\u003e EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\u003e MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n\u003e NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n\u003e LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n\u003e OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n\u003e WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Flights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterhellberg%2Flights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Flights/lists"}