Skip to content

Commit

Permalink
Update feature added
Browse files Browse the repository at this point in the history
  • Loading branch information
MNThomson committed Jan 24, 2021
1 parent 4e4d643 commit 1f5c78e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,21 @@ Download the latest version of ZoomBuddy from the [Releases page](https://github

## Setup

A file `EXAMPLE_ZoomData.csv` is provided. Rename this to `ZoomData.csv` with your meeting ID's and passwords. Time is in 24hr format with a `.` between the hour and minute (e.g. `6:45PM` would be `18.45`)
A file `EXAMPLE_ZoomData.csv` is provided. Rename this to `ZoomData.csv` in the same folder as `ZoomBuddy.exe` with your meeting ID's and passwords. Time is in 24hr format with a `.` between the hour and minute (e.g. `6:45PM` would be `18.45`)

## Usage

Run the executable `ZoomBuddy.exe` (or the `.py`) and it will search for `ZoomData.csv`. If a Zoom call is happening within ±15mins, ZoomBuddy will automatically join that call. If it cannot detect a meeting, a window will open asking which meeting (in `ZoomData.csv`) to join

If any cli argument is given, it will launch into the selection mode and bypass checking which meeting to join

# Annoying Smart Screen Warning

On some Windows PC's, Windows Smart Screen will trigger when running an unknown file. If this happens, right click on the file and click on `properties`. At the bottom of the pop-up there is a section which says `Security: This file came from another computer...`, just click the button to the right titled `Unblock` and Windows Smart Screen will no longer trigger

## To Do

- [x] Add update function
- [ ] Add MacOS/Linux support (find binary installation location)
- [ ] Add system tray icon
- [ ] Fix the time system to be base 60
Expand Down
23 changes: 23 additions & 0 deletions Update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import requests, webbrowser, sys

VERSION = "1.0.1"
URL = 'https://github.com/MNThomson/ZoomBuddy/releases/latest'

def update():
r = requests.get(URL)
CURRENT_VERSION = r.url.split("v")[1]

if (int(VERSION.replace('.','')) < int(CURRENT_VERSION.replace('.',''))):
print("Downloaded Version: " + VERSION)
print("Current Version: " + CURRENT_VERSION)
Choice = input('Would you like to update ZoomBuddy? (Y/N)')
if Choice.lower() == 'yes' or Choice.lower() == 'y':
#Yes to update
print('Redircting...')
webbrowser.open(URL)
sys.exit()

else:
pass
else:
pass
4 changes: 4 additions & 0 deletions ZoomBuddy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import datetime, time, csv, sys, os
from Update import *

def main():
print(" _____ ____ _ _\n|__ /___ ___ _ __ ___ | __ ) _ _ __| | __| |_ _\n / // _ \\ / _ \\| '_ ` _ \\| _ \\| | | |/ _` |/ _` | | | |\n / /| (_) | (_) | | | | | | |_) | |_| | (_| | (_| | |_| |\n/____\\___/ \\___/|_| |_| |_|____/ \\__,_|\\__,_|\\__,_|\\__, |\n |___/")
if getattr(sys, 'frozen', False):
update()
if len(sys.argv) == 1:
auto()
else:
Expand Down

0 comments on commit 1f5c78e

Please sign in to comment.