コード例 #1
0
 def __init__(self):
     MycroftSkill.__init__(self)
     self.jokes = []
     self.joke = None
     self.stage = 0
     self.path_to_joke_file = join(abspath(dirname(__file__)), 'jokes',
                                   'jokes.txt')
コード例 #2
0
 def __init__(self):
     MycroftSkill.__init__(self)
     # this variable is needed if adding new shopping lists
     self.new_shopping_list_name = ''
     self.list_id = ''
     self.list_name = ''
     self.category = None
     self.current_time = datetime.datetime.now()
     self.time_heading_in_dict = 'refresh_date'
     self.grocery_state_file = ""
     self.category_state_file = "grocery_categories.txt"
コード例 #3
0
 def __init__(self):
     MycroftSkill.__init__(self)
     self.cups_ml_constant_number = 0.0042268
     self.cups_litres_constant_number = 4.2268
     self.pints_ml_constant_number = 0.0021134
     self.pints_litres_constant_number = 2.1134
     self.fl_oz_ml_constant_number = 0.033814
     self.fl_oz_litres_constant_number = 33.814
     self.grams_oz_constant_number = 0.035274
     self.grams_lbs_constant_number = 0.0022046
     self.convert_from_this_unit = ''
     self.convert_to_this_unit = ''
     self.number_of_new_units = ''
コード例 #4
0
    def __init__(self):
        MycroftSkill.__init__(self)

        self.default_location = self.room_name

        self.protocol = self.settings.get('protocol')
        self.mqttssl = self.settings.get('ssl')
        self.mqttca = self.settings.get('ca_certificate')
        self.mqtthost = self.settings.get('host')
        self.mqttport = self.settings.get('port')
        self.mqttauth = self.settings.get('auth')
        self.mqttuser = self.settings.get('username')
        self.mqttpass = self.settings.get('password')

        #        global ws
        #        ws = WebsocketClient()
        #        ws.on('recognizer_loop:record_begin', self.handle_record_begin)
        #        ws.on('recognizer_loop:record_end', self.handle_record_end)
        #        ws.on('recognizer_loop:utterance', self.handle_utterance)

        #        create_daemon(ws.run_forever)
        #        wait_for_exit_signal()

        LOGGER.info('WakeWordSkill loaded ........')
コード例 #5
0
 def __init__(self):
     MycroftSkill.__init__(self, name="WolframAlphaSkill")
     self.__init_client()
     self.question_parser = EnglishQuestionParser()
コード例 #6
0
ファイル: __init__.py プロジェクト: marvin-w/respeaker-skill
 def __init__(self):
     MycroftSkill.__init__(self)
     self.strategy: RespeakerStrategy = None
コード例 #7
0
ファイル: __init__.py プロジェクト: toome123/mycroft-core
 def __init__(self):
     MycroftSkill.__init__(self, name="IntentSkill")
     self.engine = IntentDeterminationEngine()
     self.reload_skill = False
コード例 #8
0
ファイル: __init__.py プロジェクト: Cliabhach/mycroft-core
 def __init__(self):
     MycroftSkill.__init__(self, "CerberusConfigSkill")
コード例 #9
0
 def __init__(self):
     MycroftSkill.__init__(self)
     self.all_confluence_search_results = ''
     self.delete_these_results = []
     self.parse_these_results = {}
コード例 #10
0
 def __init__(self):
     MycroftSkill.__init__(self, "DesktopLauncherSkill")
     self.appmap = {}
コード例 #11
0
ファイル: __init__.py プロジェクト: insanemal/mycroft-core
 def __init__(self):
     MycroftSkill.__init__(self, "CerberusConfigSkill")
コード例 #12
0
 def __init__(self):
     MycroftSkill.__init__(self)
     self.settings.set_changed_callback(self._setup_api)
     self._setup_api()
コード例 #13
0
 def __init__(self):
     MycroftSkill.__init__(self)
     self.db = None
     self.feeds = []
     self.config = []
コード例 #14
0
ファイル: __init__.py プロジェクト: Acidburn0zzz/mycroft-core
 def __init__(self):
     MycroftSkill.__init__(self, name="IntentSkill")
     self.engine = IntentDeterminationEngine()
コード例 #15
0
ファイル: __init__.py プロジェクト: Cadair/mycroft-core
 def __init__(self):
     MycroftSkill.__init__(self, name="WolframAlphaSkill")
     self.__init_client()
     self.question_parser = EnglishQuestionParser()
コード例 #16
0
 def __init__(self, name=None, emitter=None):
     MycroftSkill.__init__(self, name, emitter)
     self.make_active()
コード例 #17
0
 def __init__(self):
     MycroftSkill.__init__(self)
     self.ducking = False
     self.idle_count = 0
     self.player = None
コード例 #18
0
 def __init__(self):
     MycroftSkill.__init__(self)
コード例 #19
0
 def __init__(self):
     MycroftSkill.__init__(self, name="DuckDuckGoSkill")
     self.question_parser = EnglishQuestionParser()