File: config.py

package info (click to toggle)
python-nuheat 1.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 228 kB
  • sloc: python: 897; sh: 5; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
API_URL = "https://www.mynuheat.com/api"

AUTH_URL = API_URL + "/authenticate/user"
THERMOSTAT_URL = API_URL + "/thermostat"

REQUEST_HEADERS = {
    "Content-Type": "application/x-www-form-urlencoded",
    "Accept": "application/json",
    "Host": "mynuheat.com",
    "DNT": "1",
    "Origin": "https://mynuheat.com/api"
}

# NuHeat Schedule Modes
SCHEDULE_RUN = 1
SCHEDULE_TEMPORARY_HOLD = 2  # hold the target temperature until the next scheduled program
SCHEDULE_HOLD = 3  # hold the target temperature until it is manually changed