Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Main Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Emaryllis committed Nov 21, 2022
1 parent 5d2df22 commit 894cff5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Zoom-Scheduler
Automatically opens Zoom Meetings for you so you don't have to.
# Requirements:
# Video > 'Turn off my video when joining meeting'
# Optional: Audio > 'Automatically join audio by computer when joining a meeting'
# Optional: Audio > 'Mute my microphone when joining a meeting'
27 changes: 27 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
###SETTINGS###
ZOOM_URL = "https://nyp-sg.zoom.us/j/88526538027?pwd=V1UvY1Y3elRwRUhtSXZIQ1hrOHZBdz09"
ZOOM_TIME = '09:01:00' #HH:MM:SS format
ZOOM_DAY = 'Monday'

###CODE (DON'T TOUCH IF YOU DONT KNOW WHAT YOU ARE DOING!)###
import schedule,time,webbrowser,sys
def openMeeting():
webbrowser.open(ZOOM_URL)
sys.exit('Successfully opened Zoom Meeting!')
try:
match ZOOM_DAY.lower():
case 'monday'|'mon':schedule.every().monday.at(ZOOM_TIME).do(openMeeting)
case 'tuesday'|'tues':schedule.every().tuesday.at(ZOOM_TIME).do(openMeeting)
case 'wednesday'|'wed':schedule.every().wednesday.at(ZOOM_TIME).do(openMeeting)
case 'thursday'|'thurs':schedule.every().thursday.at(ZOOM_TIME).do(openMeeting)
case 'friday'|'friday':schedule.every().friday.at(ZOOM_TIME).do(openMeeting)
case 'saturday'|'sat':schedule.every().saturday.at(ZOOM_TIME).do(openMeeting)
case 'sunday'|'sun':schedule.every().sunday.at(ZOOM_TIME).do(openMeeting)
case _:raise TypeError('Enter a correct day!')
except schedule.ScheduleValueError:exit
while 1:
schedule.run_pending()
if time.strftime("%H:%M:%S")==ZOOM_TIME:raise NameError('Error opening Zoom Meeting')
elif len(ZOOM_TIME)!=8:raise TypeError('Input time in HH:MM:SS format!')
time.sleep(1)
print(f'﹏﹏﹏﹏﹏﹏﹏﹏﹏﹏﹏﹏﹏﹏﹏\n︴Current Time: {time.strftime("%H:%M:%S")}\n︴Meeting Time: {ZOOM_TIME}\n﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋')

0 comments on commit 894cff5

Please sign in to comment.