Giter Site home page Giter Site logo

overwatch2_queuenotifier's Introduction

Overwatch 2 Queue Notifier

send you discord notification or email notification when the queue is done.

1676953335290

discord bot is not deployed on cloud so you need to host it yourself. checkout the dcbot branch

dev logs in notion here

Download .exe file

Small 16 MB file, though i add some big gif images to make it look better. compressed in zip file.

Download

Future features

  1. add webhook for easily discord push notifications

How it works

Default Designed for windows 10, Overwatch2 1920x1080 resolution, but could be used for other game as long as you know the pixel position of the queue status.

  1. the program will call the game window you want to be the foreground window, and then take a screenshot of the monitor (must be main monitor if you have multiple monitors).

  2. then it will check the color of a pixel position you set in the screenshot every 5 seconds. if the color is not the same as the color of the pixel in the screenshot when the queue is not done then it will send you a notification.

By default it will send email from my registrated email address [email protected]. However gmail set a limit for 500 outgoing emails limit perday. Thus if you want to use your own email address, for gmail check Enabling SMTP Settings for a Gmail Inbox to generate an app password since gmail disabled the less secure app access (you can not directly use your gmail password to send email since 2022).

1676952387575 1676952393364 1676952401973

why images are in root folder?

when pack the app into a single exe file using pyinstaller, for the exe the images can only be accessed if they are in the root folder.

Its a bit tricky to make it work with images. solved by: pyinstaller --noconfirm --onefile --noconsole --add-data "hollow*;." --add-data "*.gif;." main.py stackOverflow

for light weight withoug big fif file, use pyinstaller --noconfirm --onefile --noconsole --add-data "hollow*;." -i "hollow.ico" main.py (set icon)

when use the pyinstaller, be sure to create a virtual environment and install all requried packages in the virtual environment. python -m venv venv and venv\Scripts\activate is enough. deactivate to go back to the base env.

otherwise the exe file will be very big. pipreqs that automatically generate requriements.txt somehow generate unnecessary packages and miss required packages in the requriments.txt file.

overwatch2_queuenotifier's People

Contributors

qihang-dai avatar

Watchers

 avatar

Forkers

ahgdyycc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.