API
API
Source code in Client/Responder/api.py
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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
__init__(domain=API_DOMAIN, token='', home_id=None)
init the api Args: domain (str): the domain of the api token (str): the token of the api home_id (int): the home id
Source code in Client/Responder/api.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
get_spoken_speech()
Call the API to get the speech to play Returns:
Source code in Client/Responder/api.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
register_device(device_name=None, device_type=None, description=None)
register the device Args: device_name (Optional[str]): the device name device_type (Optional[str]): the device type description (Optional[str]): the description of the device
Returns:
Source code in Client/Responder/api.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|