-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhb_cli.py
More file actions
32 lines (25 loc) · 717 Bytes
/
Copy pathhb_cli.py
File metadata and controls
32 lines (25 loc) · 717 Bytes
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
"""
HueBerry CLI
The purpose of this file/module is to provide an external API
or command line interface with the hueberry commands.
Goals:
Scenes
Run/execute them
Modiy them
Create them
Delete them
Sync them?
Update them?
"""
import hueberry
bridge_present = 0
authenticate = hueberry.authenticate.Authenticate()
authenticate.load_creds()
api_key = authenticate.api_key
bridge_ip = authenticate.bridge_ip
api_url = 'http://%s/api/%s' % (bridge_ip,api_key)
#Load the Hue API module so that the hueberry can control hue lights lol
hueapi = hueberry.hb_hue.HueAPI()
#Load the settings-module
settings = hueberry.hb_settings.Settings()
print api_url