def search_command(self, voice_command, fast_command=False):

        if self.conversation(voice_command):
            return True
        else:
            actions = Actions(self)
            return actions.verify_command(voice_command)
Beispiel #2
0
    def __init__(self, SK_):
        self.operators_list = [
            _('was not updated in the last (sec.)'),
            _('was updated in the last (sec.)'), '=', '<', '<=', '>', '>=',
            _('contains')
        ]

        self.triggers = []
        self.actions = Actions(SK)

        self.SK = SK_
        self.SKc = []

        self.cycle10 = time.time() + 0.01
        self.read_Action()
        self.read_Calc()
Beispiel #3
0
#end thread1

# no loop
conf = Conf()

Language(conf.get('GENERAL', 'lang'))

global triggers
triggers = []
global sock_in
global error
sock_in = ''
error = 0
a = DataStream(conf)
actions = Actions(conf)
nodata = ''

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

read_triggers()

thread1 = threading.Thread(target=parse_nmea)
if not thread1.isAlive(): thread1.start()

mqtt = Mqtt(conf, a)

#end no loop

# loop
while True: