Exemplo n.º 1
0
    def __init__(self, nowTable, futureTable):

        self.nowTable = nowTable
        self.futureTable = futureTable

        self.nowSQL = mySQLConnection(nowTable)

        self.futureSQL = mySQLConnection(futureTable)

        self.mySMS = mySMSConnection()
Exemplo n.º 2
0
    def __init__(self,nowTable,futureTable):
        
        self.nowTable = nowTable
        self.futureTable = futureTable

        self.nowSQL = mySQLConnection(nowTable)
        
        self.futureSQL = mySQLConnection(futureTable)
        
        self.mySMS = mySMSConnection()
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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
Exemplo n.º 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")
Exemplo n.º 6
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")