|
14 | 14 |
|
15 | 15 | #define round(a) ( int ) ( a + .5 )
|
16 | 16 |
|
17 |
| -const std::string HONEYWELL_DEFAULT_APIKEY = "atD3jtzXC5z4X8WPbzvo0CBqWi7S81Nh"; |
18 |
| -const std::string HONEYWELL_DEFAULT_APISECRET = "TXDzy2aHpAJw6YiO"; |
19 |
| -const std::string HONEYWELL_LOCATIONS_PATH = "https://api.honeywell.com/v2/locations?apikey=[apikey]"; |
20 |
| -const std::string HONEYWELL_UPDATE_THERMOSTAT = "https://api.honeywell.com/v2/devices/thermostats/[deviceid]?apikey=[apikey]&locationId=[locationid]"; |
21 |
| -const std::string HONEYWELL_TOKEN_PATH = "https://api.honeywell.com/oauth2/token"; |
22 |
| - |
23 |
| -const std::string kSetPointDesc = "Target temperature ([devicename])"; |
24 |
| -const std::string kHeatingDesc = "Heating Mode([devicename])"; |
25 |
| -const std::string kCoolingDesc = "Cooling Mome([devicename])"; |
26 |
| -const std::string kHeatingStatusDesc = "Heating State ([devicename])"; |
27 |
| -const std::string kCoolingStatusDesc = "Cooling State ([devicename])"; |
28 |
| -const std::string kOutdoorTempDesc = "Outdoor temperature ([devicename])"; |
29 |
| -const std::string kRoomTempDesc = "Room temperature ([devicename])"; |
30 |
| -const std::string kAwayDesc = "Away ([name])"; |
31 |
| -const std::string kfanRequest = "Fan Request ([devicename])"; |
32 |
| -const std::string kcirculationFanRequest = "Circulation Fan Request ([devicename])"; |
| 17 | +constexpr auto HONEYWELL_DEFAULT_APIKEY = "atD3jtzXC5z4X8WPbzvo0CBqWi7S81Nh"; |
| 18 | +constexpr auto HONEYWELL_DEFAULT_APISECRET = "TXDzy2aHpAJw6YiO"; |
| 19 | +constexpr auto HONEYWELL_LOCATIONS_PATH = "https://api.honeywell.com/v2/locations?apikey=[apikey]"; |
| 20 | +constexpr auto HONEYWELL_UPDATE_THERMOSTAT = "https://api.honeywell.com/v2/devices/thermostats/[deviceid]?apikey=[apikey]&locationId=[locationid]"; |
| 21 | +constexpr auto HONEYWELL_TOKEN_PATH = "https://api.honeywell.com/oauth2/token"; |
| 22 | + |
| 23 | +constexpr auto kSetPointDesc = "Target temperature ([devicename])"; |
| 24 | +constexpr auto kHeatingDesc = "Heating Mode([devicename])"; |
| 25 | +constexpr auto kCoolingDesc = "Cooling Mome([devicename])"; |
| 26 | +constexpr auto kHeatingStatusDesc = "Heating State ([devicename])"; |
| 27 | +constexpr auto kCoolingStatusDesc = "Cooling State ([devicename])"; |
| 28 | +constexpr auto kOutdoorTempDesc = "Outdoor temperature ([devicename])"; |
| 29 | +constexpr auto kRoomTempDesc = "Room temperature ([devicename])"; |
| 30 | +constexpr auto kAwayDesc = "Away ([name])"; |
| 31 | +constexpr auto kfanRequest = "Fan Request ([devicename])"; |
| 32 | +constexpr auto kcirculationFanRequest = "Circulation Fan Request ([devicename])"; |
33 | 33 |
|
34 | 34 | extern http::server::CWebServerHelper m_webservers;
|
35 | 35 |
|
|
0 commit comments