Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple monitors #939

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vishwamartur
Copy link

@vishwamartur vishwamartur commented Jan 20, 2025

Related to #766

Add support for multiple monitors and provide screenshots of the visualization containing more than one monitor.

  • openadapt/utils.py

    • Update take_screenshot function to iterate through all monitors and capture screenshots.
    • Add a new function take_screenshots to return a list of screenshots from all monitors.
  • openadapt/visualize.py

    • Modify main function to handle and display screenshots from multiple monitors.
    • Update the HTML generation logic to include screenshots from all monitors.
  • openadapt/record.py

    • Update read_screen_events function to support capturing screenshots from multiple monitors.
  • tests/openadapt/test_utils.py

    • Add unit tests for the new take_screenshots function.

/claim #766

Related to OpenAdaptAI#766

Add support for multiple monitors and provide screenshots of the visualization containing more than one monitor.

* **openadapt/utils.py**
  - Update `take_screenshot` function to iterate through all monitors and capture screenshots.
  - Add a new function `take_screenshots` to return a list of screenshots from all monitors.

* **openadapt/visualize.py**
  - Modify `main` function to handle and display screenshots from multiple monitors.
  - Update the HTML generation logic to include screenshots from all monitors.

* **openadapt/record.py**
  - Update `read_screen_events` function to support capturing screenshots from multiple monitors.

* **tests/openadapt/test_utils.py**
  - Add unit tests for the new `take_screenshots` function.
Copy link

algora-pbc bot commented Jan 20, 2025

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe.

@abrichr
Copy link
Member

abrichr commented Jan 20, 2025

Thank you @vishwamartur! Can you please paste some screenshots of visualize.py and the dashboard? Also can you please upload the HTML file produced with visualize.py --cleanup=False?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants