AMRAP WOD Generator:
- creates a random AMRAP-based WOD
- generates a cool image containing the exercises of the day
- uploads the img to a GCP bucket
- tweets it to your account (if you want to)
LOGS_FOLDER_PATH
: where logs are saved.APP_NAME
:amrap-wod-generator
for example.IMGS_FOLDER
: where images are stored.
GCP info:
PROJECT_NAME
: GCP project nameBUCKET_NAME
: GCP bucket nameCLIENT_ID
: GCP client IDCLIENT_EMAIL
: GCP clien emailPRIVATE_KEY_ID
: GCP private key IDPRIVATE_KEY
: GCP private keyDESTINATION_BLOB
:wod.png
for example
If you want to tweet it:
TWITTER_CONSUMER_KEY
: your Twitter consumer key.TWITTER_CONSUMER_SECRET
: your Twitter consumer secret.TWITTER_ACCESS_TOKEN
: your Twitter access token.TWITTER_ACCESS_TOKEN_SECRET
: your Twitter access token secret.
The program will also try to import the settings
module with this same information. You can create it by copying and pasting the available seetings.py.sample
file, renaming it to settings.py
with your actual preferences and credentials.
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
# To just generate the AMRAO WOD image
python amrap-wod-generator.py
# Add the --tweet flag to tweet it
python amrap-wod-generator.py --tweet
deactivate
To build the Docker image run:
docker build -f docker/Dockerfile .
Or just pull it:
docker pull gaizkadc/amrap-wod-generator:latest
I'm from Spain (and I speak Spanish,) so the tweet text in the repo comes in Spanish. You may want to change that. Same for the Docker image, of course.