Skip to main content

Changes your Zoom background using OpenAI Image Generation.

Project description

Zoom Background Changer

This is a python script that will use OpenAI's GPT-3 API to generate a new background image for your Zoom meetings.

It can be run as a cron task, manually, or as part of a workflow when you open Zoom!

The script will generate a new background image based on the current date and weather, and overwrite you existing Zoom background.

Requirements

  • Only works on macOS (for now!)
  • Python 3.9+
  • OpenAI API Key
    • You can get a free API key from OpenAI here.
    • You will need to create an account and generate an API key.
    • You will need to add your API key to the OPENAI_API_KEY environment variable.

Installation

pip install zoom-background-changer

Usage

First you will need to set a custom background image in Zoom.

You can do this by going to Preferences > Video > Virtual Background > Choose Virtual Background... and selecting an image.

Then from the command line, run:

zoom-background-changer

Prompt Template

Can be adjusted by creating a file called .zoom-background-changer in your $HOME directory.

This file should contain the following:

{
  "prompt": "Today is {date} and the weather is {weather} in {city}.",
  "city": "Boston"
}

Available Variables

  • {date}: The current date
  • {city}: The current city, set from the city key in the .zoom-background-changer file. Defaults to Boston, MA. If set, the following extra variables will be available:
    • {weather}: The current weather, from https://wttr.in/
    • {temperature}: The current temperature, from https://wttr.in/

Any other key/value pairs in the .zoom-background-changer file will be available as variables in the prompt template, so get creative!

If you would like to request a new functional variable similar to city, please open an Issue or Pull Request!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zoom-background-changer-0.2.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zoom_background_changer-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file zoom-background-changer-0.2.0.tar.gz.

File metadata

  • Download URL: zoom-background-changer-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.9.7 Darwin/21.6.0

File hashes

Hashes for zoom-background-changer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6a5b57ef554b56ec2e847289cc5a2ab37c9eb09fd148d07c30b262bc8e507740
MD5 f4d130e05bb58b29d140015d2bbdeff3
BLAKE2b-256 73685e9a96532e1373f11e9ebd144b943a7ec0d43284f52e40d1ab12535a0964

See more details on using hashes here.

File details

Details for the file zoom_background_changer-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zoom_background_changer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc8f30abf5bb7ac25ee048ff28bffe9c89764abb4cb48c737b820e3722f542d1
MD5 b0f48153e8ae9c8c845500e85aa47ae0
BLAKE2b-256 09be42729f14eceb27a747d37b9bced6f9e7c288c1c1c5c4f3112e7ccf2d0deb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page