-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfiguration.example.php
47 lines (41 loc) · 1.57 KB
/
configuration.example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace sqlbee;
/**
* All of the configuration settings. Updating the $database_* and $client_id
* values is all that is required. Other settings can be changed to do other
* advanced things.
*/
abstract class configuration {
/**
* The Client ID or API key from your custom ecobee app.
*/
public static $client_id = 'your_client_id';
/**
* Database configuration details. It is recommended to set up a database
* user with only create, read, and update permissions for the sqlbee table.
*
* Recommend creating a sqlbee user by doing something like the following:
* create user 'sqlbee'@'localhost' identified by 'password';
* grant insert, select, update on sqlbee.* to 'sqlbee'@'localhost';
*/
public static $database_username = 'sqlbee';
public static $database_password = 'password';
public static $database_host = 'localhost';
public static $database_name = 'sqlbee';
/**
* Set this to 'smartRead' if you don't want this application to have the
* ability to change your thermostat settings. Set this to 'smartWrite' to
* enable functions like setting temperatures, resuming schedules, etc.
*/
public static $scope = 'smartRead';
/**
* Whether or not to log api calls into the api_log table. This is nice for
* debugging or for learning about what API calls are being made, but isn't
* otherwise very useful.
*/
public static $log_api_calls = false;
/**
* This gets set to true during setup to help with some output.
*/
public static $setup = false;
}