コード例 #1
0
ファイル: classMagic.py プロジェクト: b-schoen/Console_IAM
    def __init__(self, nowTable, futureTable):

        self.nowTable = nowTable
        self.futureTable = futureTable

        self.nowSQL = mySQLConnection(nowTable)

        self.futureSQL = mySQLConnection(futureTable)

        self.mySMS = mySMSConnection()
コード例 #2
0
ファイル: classMagic.py プロジェクト: b-schoen/Console_IAM
    def __init__(self,nowTable,futureTable):
        
        self.nowTable = nowTable
        self.futureTable = futureTable

        self.nowSQL = mySQLConnection(nowTable)
        
        self.futureSQL = mySQLConnection(futureTable)
        
        self.mySMS = mySMSConnection()
コード例 #3
0
ファイル: classTasker.py プロジェクト: b-schoen/Console_IAM
    def __init__(self, table):

        self.table=table

        self.sqlConnection = mySQLConnection(table)

        #smallest time step (unit)
        self.unit_delta = 5
        self.unit_interval = datetime.timedelta(minutes=self.unit_delta)

        #the %I forces 12 hour time
        self.time_format = "%I:%M"

        #multiples of unit_interval
        self.default_work_factor = 4
        self.default_break_factor = 1
        self.default_start_factor = 1

        self.default_number_of_items = 2
コード例 #4
0
ファイル: classTasker.py プロジェクト: b-schoen/Console_IAM
    def __init__(self, table):

        self.table = table

        self.sqlConnection = mySQLConnection(table)

        #smallest time step (unit)
        self.unit_delta = 5
        self.unit_interval = datetime.timedelta(minutes=self.unit_delta)

        #the %I forces 12 hour time
        self.time_format = "%I:%M"

        #multiples of unit_interval
        self.default_work_factor = 4
        self.default_break_factor = 1
        self.default_start_factor = 1

        self.default_number_of_items = 2
コード例 #5
0
        else:
            self.playAudioFile(self.how_can_i_help_you)

    def playAudioFile(self, file_name):

        subprocess.Popen(['mplayer', file_name]).wait()


if __name__ == "__main__":

    print("Started main")

    her = Her()

    her.Hello()
    her.checkup()

    #uncomment these to play with pomodoro timers
    #mp = MediumPomo(15,10)
    #pm = PomoManager(15,10,"small")

    #uncomment the following line if valid API keys/IDs are in place
    #o = myMagic("myTasks","myFutureTasks")

    #interface with SQL connection
    m = mySQLConnection("myTasks")

    #interface with tasker
    t = Tasker("myTasks")
コード例 #6
0
ファイル: Her.py プロジェクト: b-schoen/Console_IAM
        else:
            self.playAudioFile(self.how_can_i_help_you)

    def playAudioFile(self, file_name):

        subprocess.Popen(["mplayer", file_name]).wait()


if __name__ == "__main__":

    print ("Started main")

    her = Her()

    her.Hello()
    her.checkup()

    # uncomment these to play with pomodoro timers
    # mp = MediumPomo(15,10)
    # pm = PomoManager(15,10,"small")

    # uncomment the following line if valid API keys/IDs are in place
    # o = myMagic("myTasks","myFutureTasks")

    # interface with SQL connection
    m = mySQLConnection("myTasks")

    # interface with tasker
    t = Tasker("myTasks")