{"id":34498566,"url":"https://github.com/ndom91/hometime-access-refresh","last_synced_at":"2026-04-25T09:36:32.774Z","repository":{"id":317396541,"uuid":"1067236275","full_name":"ndom91/hometime-access-refresh","owner":"ndom91","description":"Node script to work around refreshing Google OAuth token for hometime","archived":false,"fork":false,"pushed_at":"2025-09-30T15:22:05.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T13:12:21.605Z","etag":null,"topics":["gcalcli","hometime","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ndom91.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ndom91"]}},"created_at":"2025-09-30T15:08:56.000Z","updated_at":"2025-09-30T15:22:09.000Z","dependencies_parsed_at":"2025-09-30T17:36:10.618Z","dependency_job_id":"15535b79-db73-46cb-9bd9-3d71404503da","html_url":"https://github.com/ndom91/hometime-access-refresh","commit_stats":null,"previous_names":["ndom91/hometime-access-refresh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ndom91/hometime-access-refresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fhometime-access-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fhometime-access-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fhometime-access-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fhometime-access-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndom91","download_url":"https://codeload.github.com/ndom91/hometime-access-refresh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fhometime-access-refresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32257754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: 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":["gcalcli","hometime","nodejs"],"created_at":"2025-12-24T01:54:10.513Z","updated_at":"2026-04-25T09:36:32.745Z","avatar_url":"https://github.com/ndom91.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ndom91"],"categories":[],"sub_categories":[],"readme":"# `hometime-access-refresh`\n\nThis is a little node script that refreshes the access token for the\n[hometime](https://github.com/ndom91/calendar-led-strip) app. It is intended to be run as a cron job.\n\n## ℹ Background Info\n\nThis little script is necessary because I haven't gotten the Google OAuth\noffline app credentials to not expire after 7 days. So for my\n`calendar-led-strip` project, we're using [`gcalcli`](https://github.com/insanum/gcalcli) which requires this\ngenerated `oauth` file which is generated via their `gcalcli --init` command.\n\nSo long story short, this script executes that init command, inserts your\nclientId and clientSecret and then opens the browser for you to login with your\nGoogle account. After you login, it saves the generated `oauth` file and\noptionally copies it to the little server running the `hometime` service and\nrestarting the appropriate systemd service.\n\n## 📦 Setup\n\n1. Clone the repository and make a copy of the env vars file\n```sh\ngit clone https://github.com/ndom91/hometime-access-refresh \u0026\u0026 cd hometime-access-refresh\npnpm install\ncp .env.example .env.local\n```\n\n2. Update the `.env.local` file with your credentials\n3. Run `start` npm script or run it as a cron job\n\n## 📝 License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndom91%2Fhometime-access-refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndom91%2Fhometime-access-refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndom91%2Fhometime-access-refresh/lists"}