Added import errors

fetchIP
E. Almqvist 4 years ago
parent 55990fbdcc
commit 86d7681f7d
  1. 12
      hue_cmd.py
  2. 6
      modules/hue/hue_controller.py
  3. 8
      modules/hue/hue_remote.py
  4. 1
      speech_daemon.py

@ -0,0 +1,12 @@
#!/usr/bin/env python
from modules.hue.hue_controller import controller
from modules.hue.hue_remote import parseCommandline
def init():
hue.controller.init() # very important to initialize the controller
parseCommandline()
hue.controller.end() # also to end it
if __name__ == "__main__":
init()

@ -3,10 +3,10 @@ import json # API uses JSON
import asyncio # ASync stuff
import time
from lib.func import * # useful functions
from .lib.func import * # useful functions
import config # Configuration for the controller (/config.py <- change this file)
from presets import * # presets for the lights
#import .config as config # Configuration for the controller (/config.py <- change this file)
from .presets import * # presets for the lights
LIGHTS = {} # dictionary of all the lights

@ -97,11 +97,3 @@ def parseCommandline():
parseCommand( cmd, 2 )
else:
help()
def init():
hue.controller.init() # very important to initialize the controller
parseCommandline()
hue.controller.end() # also to end it
init() # actually call the init function

@ -8,7 +8,6 @@ class speech_daemon(object):
def __init__(self, deviceIndex=30):
voiceInpObj = voiceInput()
voiceInpObj.setMuted(False)
voiceInpObj.start(deviceIndex)

Loading…
Cancel
Save