Archived
1
0

Support for many thermostats

Uses the device ID to support several thermostats. Pretty simple - only
setup is now an array of devices, now a single device. However, many
changes follow...
This commit is contained in:
dorfl68
2016-01-19 22:29:04 -05:00
parent f9b7276cb6
commit 9a4f57b5bb
14 changed files with 568 additions and 469 deletions

View File

@@ -1,9 +1,11 @@
<?php
define('DB_HOST','');
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASSWORD', '');
define('DB_HOST','localhost'); // define sql host
define('DB_NAME', 'database'); // sql database
define('DB_USER', 'user'); // sql database user
define('DB_PASSWORD', 'pw'); // guess what
// THERMOSTAT_TYPE needs to match the directory name of the thermostat plugin you are using.
define('THERMOSTAT_TYPE','');
define('THERMOSTAT_TYPE','honeywell'); // only honeywell supported at this poing
$valid_thermostats = ["honeywell"]; // this should really be somewhere else but here it works right now
?>