This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋') |