Ejemplo n.º 1
0
def demo():
    Zoom_Functions.login()
    joinmeeting("https://us04web.zoom.us/j/3047415884?pwd=QjVpWGFHTWIxcktRaGpJbS9FYjR6dz09")
    time.sleep(30)
    Zoom_Functions.ConnectAndMute()
Ejemplo n.º 2
0
def maain():
    while True:
        #store the date
        date = datetime.now().strftime("%D")

        #make sure today is not a holiday or final day
        if date in Holidays == False and date in Finals_Week1 == False and date in Finals_Week2 == False:

            while True:

                #detects a new day and breaks out of the loop to update the date variable
                if datetime.now().strftime("%D") != date:
                    break

                # tuesday/thursday schedule
                if datetime.today().weekday() == tuesday or datetime.today(
                ).weekday() == thursday:
                    if datetime.now().strftime("%H:%M") == config['SCHEDULE'][
                            'period1_startTime']:

                        # join
                        Join.period1()
                        #sleep time makes sure you dont join multiple times
                        time.sleep(60)

                    elif datetime.now().strftime(
                            "%H:%M") == config['SCHEDULE']['period1_endtime']:
                        #leave
                        Zoom_Functions.leaveMeeting()

                    elif datetime.now().strftime("%H:%M") == config[
                            'SCHEDULE']['period2_startTime']:
                        Join.period2()
                        time.sleep(60)

                    elif datetime.now().strftime(
                            "%H:%M") == config['SCHEDULE']['period2_endtime']:
                        # leave
                        Zoom_Functions.leaveMeeting()

                    elif datetime.now().strftime("%H:%M") == config[
                            'SCHEDULE']['period3_startTime']:
                        Join.period3()
                        time.sleep(60)

                    elif datetime.now().strftime(
                            "%H:%M") == config['SCHEDULE']['period3_endtime']:
                        # leave
                        Zoom_Functions.leaveMeeting()

                    elif datetime.now().strftime("%H:%M") == config[
                            'SCHEDULE']['period7_startTime']:
                        Join.period7()
                        time.sleep(60)

                    if datetime.now().strftime(
                            "%H:%M") == config['SCHEDULE']['period7_endtime']:
                        #leave
                        Zoom_Functions.leaveMeeting()

                #wednesday/friday schedule
                if datetime.today().weekday() == wednesday or datetime.today(
                ).weekday() == friday:
                    """
                    This section is for people that have to attend an academy regularly:
                    if datetime.now().strftime("%H:%M") == "09:00":
                        Join.<addFuncForYourClass>
                        time.sleep(60)
                    """
                    if datetime.now().strftime("%H:%M") == config['SCHEDULE'][
                            'period4_startTime']:
                        Join.period4()
                        #add delay to make sure you dont try to join multiple times
                        time.sleep(60)

                    elif datetime.now().strftime(
                            "%H:%M") == config['SCHEDULE']['period4_endtime']:
                        Zoom_Functions.leaveMeeting()

                    elif datetime.now().strftime("%H:%M") == config[
                            'SCHEDULE']['period5_startTime']:
                        Join.period5()
                        time.sleep(60)

                    elif datetime.now().strftime(
                            "%H:%M") == config['SCHEDULE']['period5_endtime']:
                        Zoom_Functions.leaveMeeting()

                    elif datetime.now().strftime("%H:%M") == config[
                            'SCHEDULE']['period6_startTime']:
                        if str(config['CLASSES']['period6_link']) != "none":
                            Join.period6()
                            time.sleep(60)

                    elif datetime.now().strftime(
                            "%H:%M") == config['SCHEDULE']['period6_endtime']:
                        Zoom_Functions.leaveMeeting()
Ejemplo n.º 3
0
def period7():
    Zoom_Functions.login()
    joinmeeting(str(config['CLASSES']['period7_link']))
    time.sleep(260)
    Zoom_Functions.ConnectAndMute()