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_KEYenvironment 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 thecitykey in the.zoom-background-changerfile. Defaults toBoston, MA. If set, the following extra variables will be available:{weather}: The current weather, fromhttps://wttr.in/{temperature}: The current temperature, fromhttps://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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a5b57ef554b56ec2e847289cc5a2ab37c9eb09fd148d07c30b262bc8e507740
|
|
| MD5 |
f4d130e05bb58b29d140015d2bbdeff3
|
|
| BLAKE2b-256 |
73685e9a96532e1373f11e9ebd144b943a7ec0d43284f52e40d1ab12535a0964
|
File details
Details for the file zoom_background_changer-0.2.0-py3-none-any.whl.
File metadata
- Download URL: zoom_background_changer-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.9.7 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc8f30abf5bb7ac25ee048ff28bffe9c89764abb4cb48c737b820e3722f542d1
|
|
| MD5 |
b0f48153e8ae9c8c845500e85aa47ae0
|
|
| BLAKE2b-256 |
09be42729f14eceb27a747d37b9bced6f9e7c288c1c1c5c4f3112e7ccf2d0deb
|