{"id":31667959,"url":"https://github.com/anonrig/thermostat-wars","last_synced_at":"2025-10-08T00:50:02.411Z","repository":{"id":299880955,"uuid":"1000513270","full_name":"anonrig/thermostat-wars","owner":"anonrig","description":"My wife always changes the thermostat to 75F, and now I respond","archived":false,"fork":false,"pushed_at":"2025-06-11T22:56:44.000Z","size":4,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-02T15:43:47.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/anonrig.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-11T22:55:30.000Z","updated_at":"2025-06-15T12:03:54.000Z","dependencies_parsed_at":"2025-06-18T19:50:02.853Z","dependency_job_id":"7898a224-9787-43d4-a08b-a46488598474","html_url":"https://github.com/anonrig/thermostat-wars","commit_stats":null,"previous_names":["anonrig/thermostat-wars"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anonrig/thermostat-wars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Fthermostat-wars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Fthermostat-wars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Fthermostat-wars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Fthermostat-wars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anonrig","download_url":"https://codeload.github.com/anonrig/thermostat-wars/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Fthermostat-wars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278872154,"owners_count":26060525,"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-10-07T02:00:06.786Z","response_time":59,"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":"2025-10-08T00:49:59.034Z","updated_at":"2025-10-08T00:50:02.397Z","avatar_url":"https://github.com/anonrig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nest Thermostat Auto-Controller\n\nA Cloudflare Worker that automatically sets your Google Nest thermostat to 73°F whenever it detects temperature changes.\n\n## Setup\n\n### 1. Google Nest API Setup\n\n1. Register for the [Device Access Program](https://developers.google.com/nest/device-access/registration) ($5 fee)\n2. Create a project in the [Device Access Console](https://console.nest.google.com/device-access/)\n3. Set up OAuth credentials in [Google Cloud Console](https://console.cloud.google.com/)\n4. Enable the Smart Device Management API\n\n### 2. Environment Variables\n\nSet these secrets using `wrangler secret put`:\n\n```bash\nwrangler secret put NEST_ACCESS_TOKEN\nwrangler secret put NEST_PROJECT_ID\nwrangler secret put NEST_REFRESH_TOKEN\nwrangler secret put NEST_CLIENT_ID\nwrangler secret put NEST_CLIENT_SECRET\n```\n\n### 3. Deploy\n\n```bash\nnpm install\nwrangler deploy\n```\n\n## Features\n\n- Automatically sets thermostat to 73°F when changes detected\n- Handles Google Pub/Sub webhooks\n- Automatic OAuth token refresh\n- Scheduled checks every 30 minutes\n- Compatible with Cloudflare Workers\n\n## API Endpoints\n\n- `POST /` - Webhook endpoint for thermostat events\n- Scheduled runs every 30 minutes for periodic checks\n\n## How It Works\n\n1. Receives webhook notifications from Google Nest when thermostat changes\n2. Checks current temperature setting\n3. If not 73°F, automatically adjusts it\n4. Includes fallback scheduled checks every 30 minutes\n\n---\n\n🤖 Generated with [Claude Code](https://claude.ai/code)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonrig%2Fthermostat-wars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanonrig%2Fthermostat-wars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonrig%2Fthermostat-wars/lists"}