{"id":23872037,"url":"https://github.com/eddiewebb/studio-light","last_synced_at":"2025-07-02T23:35:02.781Z","repository":{"id":95272073,"uuid":"172793237","full_name":"eddiewebb/studio-light","owner":"eddiewebb","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-24T17:50:22.000Z","size":2453,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T19:16:09.887Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddiewebb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-26T21:27:15.000Z","updated_at":"2022-04-14T01:40:10.000Z","dependencies_parsed_at":"2023-03-20T12:57:21.641Z","dependency_job_id":null,"html_url":"https://github.com/eddiewebb/studio-light","commit_stats":null,"previous_names":["eddiewebb/blync-studio-light"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eddiewebb/studio-light","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fstudio-light","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fstudio-light/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fstudio-light/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fstudio-light/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddiewebb","download_url":"https://codeload.github.com/eddiewebb/studio-light/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fstudio-light/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263233955,"owners_count":23434890,"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":"2025-01-03T15:19:21.665Z","updated_at":"2025-07-02T23:35:02.734Z","avatar_url":"https://github.com/eddiewebb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blync Studio Light\n\ngo based CLI to set Blync light based on calendar or manual interaction.\n\n\n### here is a picture my daughter drew to explain. \nI hang my light outside my home office to convey to family if they can visit.\n\n![Red means don't go in, sad daughter.  Green means it's ok to visit daddy, happy daughter!](assets/izzyexplains.jpg)\n\nRed means don't go in, sad daughter.  Green means it's ok to visit daddy, happy daughter!\n\n### Light updates based on free/busy events.\n![Busy Calendar shows red light](assets/busy_red.png)\n![Open Calendar shows green light](assets/avail_green.png)\n\n\n\n## Build / Install\nYou can leave in a working driectory as build, or install to central repo this doc aassumes install.\n```\nCGO_LDFLAGS_ALLOW='-fconstant-cfstrings' go install\n\n\n~/go/bin/blync-studio-light -h \n```\n\n\n## Configure schedule and interact with calendar\n```\n~/go/bin/blync-studio-light -h # help, options, etc\n\n\n# get started\n~/go/bin/blync-studio-light config init\n~/go/bin/blync-studio-light config schedule #(optional to set working hours and days off which light will go dark)\n\n\n```\n\n\n\n## Get and provide google credentials.\n\nyou need a credentials.json file fomr goolge that allows access to calendar APIs.  (https://console.cloud.google.com/apis/credentials)\n\n```\nmkdir -p ~/.studio-light/gcal\nmv ~/Downloads/client_secret[FILE YOU GO FROM GOOGLE].json ~/.studio-light/gcal/credentials.json\n\n\n~/go/bin/blync-studio-light config login\n# follow steps.git \n```\n\n## Keeping the light accurate\n```\n\n# add this command to crontab\n~/go/bin/blync-studio-light calendar refresh\n\n```\n\n### Example Cron file\n```\n# Run every minute, do not send mail.\n* * * * * /Users/ewebbinaro/go/bin/blync-studio-light \u003e /dev/null 2\u003e\u00261\n```\n\n\n## Building /Testing\n\nDue to the HID dependencies used by this prohect, you need to allow unsupported flags.\n\n`CGO_LDFLAGS_ALLOW='-fconstant-cfstrings' go build`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddiewebb%2Fstudio-light","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddiewebb%2Fstudio-light","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddiewebb%2Fstudio-light/lists"}