Skip to content

Instantly share code, notes, and snippets.

@joe248
joe248 / update_nest_target_humidity.php
Created November 18, 2019 17:14
PHP Script to update Nest thermostat target humidity based on outside temperature
<?php
require_once dirname(__FILE__) . '/../includes/nest.class.php';
// Your Nest username and password.
define('USERNAME', 'YOUR_NEST_USERNAME');
define('PASSWORD', 'YOUR_NEST_PASSWORD');
define("MAX_HUMIDITY", 45);
define("MIN_HUMIDITY", 15);