{"id":20866504,"url":"https://github.com/ericboehs/nest_thermostat","last_synced_at":"2025-10-24T21:32:26.102Z","repository":{"id":3497516,"uuid":"4554112","full_name":"ericboehs/nest_thermostat","owner":"ericboehs","description":"Control your nest thermostat through a ruby gem","archived":false,"fork":false,"pushed_at":"2015-12-03T03:05:39.000Z","size":111,"stargazers_count":95,"open_issues_count":11,"forks_count":40,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-02T11:07:08.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ericboehs.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}},"created_at":"2012-06-05T00:34:23.000Z","updated_at":"2023-11-12T12:34:44.000Z","dependencies_parsed_at":"2022-08-20T04:50:16.970Z","dependency_job_id":null,"html_url":"https://github.com/ericboehs/nest_thermostat","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fnest_thermostat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fnest_thermostat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fnest_thermostat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fnest_thermostat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericboehs","download_url":"https://codeload.github.com/ericboehs/nest_thermostat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045231,"owners_count":21038553,"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":"2024-11-18T05:58:21.375Z","updated_at":"2025-10-24T21:32:21.055Z","avatar_url":"https://github.com/ericboehs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nest Thermostat\n\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ericboehs/nest_thermostat?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nThis gem allows you to get and set the temperature of your [Nest Thermostat](https://nest.com/thermostat). You can also get and set the away status and get the current temperature and target temperature time.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'nest_thermostat'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install nest_thermostat\n\n\n## Usage\n\nGet some useful info:\n```ruby\nnest = NestThermostat::Nest.new(email: ENV['NEST_EMAIL'], password: ENV['NEST_PASS'])\nputs nest.current_temperature   # =\u003e 75.00\nputs nest.current_temp          # =\u003e 75.00\nputs nest.temperature           # =\u003e 73.00\nputs nest.temp                  # =\u003e 73.00\nputs nest.temp_high             # =\u003e 77.00\nputs nest.temp_low              # =\u003e 71.00\nputs nest.temperature_high      # =\u003e 77.00\nputs nest.temperature_low       # =\u003e 71.00\nputs nest.target_temperature_at # =\u003e 2012-06-05 14:28:48 +0000 # Ruby date object or false\nputs nest.target_temp_at        # =\u003e 2012-06-05 14:28:48 +0000 # Ruby date object or false\nputs nest.away                  # =\u003e false\nputs nest.leaf                  # =\u003e true # May take a few seconds after a temp change\nputs nest.humidity              # =\u003e 54 # Relative humidity in percent\n```\n\nChange the temperature or away status:\n```ruby\nputs nest.temperature # =\u003e 73.0\nputs nest.temperature = 74.0\nputs nest.temperature # =\u003e 74.0\n\nputs nest.temperature_high # =\u003e 75.0\nputs nest.temperature_high = 74.0\nputs nest.temperature_high # =\u003e 74.0\n\nputs nest.temperature_low # =\u003e 65.0\nputs nest.temperature_low = 67.0\nputs nest.temperature_low # =\u003e 67.0\n\nputs nest.away? # =\u003e false\nputs nest.away = true\nputs nest.away? # =\u003e true\n```\n\nBy default, temperatures are in `:fahrenheit`, but you can change this to `:celsius` or `:kelvin`:\n```ruby\nnest = NestThermostat::Nest.new(..., temperature_scale: :celsius)\n\n# -- OR --\n\nnest.temperature_scale = :kelvin\n```\n\nAnd of course if you want to get *lots* of other goodies, like scheduling and every diag piece of info you'd ever want:\n```ruby\np nest.status\n\n# -- OR --\n\nrequire 'yaml'\nyaml nest.status\n\n# -- OR my favorite --\n\nrequire 'ap' # gem install awesome_print\nap nest.status\n```\nFeel free to implement anything you see useful and submit a pull request. I'd love to see other information like scheduling or multiple device/location support added.\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericboehs%2Fnest_thermostat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericboehs%2Fnest_thermostat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericboehs%2Fnest_thermostat/lists"}