From c98c5afc2b88bf21dbc5c34fc3eee19ab6d10918 Mon Sep 17 00:00:00 2001 From: Matt Popovich Date: Sat, 3 Jan 2026 13:30:09 -0500 Subject: [PATCH 1/2] Uses .yaml files for configuration, can be choosen via ENV variable #11 --- Dockerfile | 2 +- README.md | 17 +++++- battler.py | 2 +- configs/__init__.py | 93 +++++++++++++++++++++++++++++ configs/iPhone11.py | 131 ----------------------------------------- configs/iPhone11.yaml | 87 +++++++++++++++++++++++++++ configs/iPhoneMax.py | 131 ----------------------------------------- configs/iPhoneMax.yaml | 89 ++++++++++++++++++++++++++++ modifyFavorite.py | 2 +- trader.py | 2 +- 10 files changed, 287 insertions(+), 269 deletions(-) delete mode 100644 configs/iPhone11.py create mode 100644 configs/iPhone11.yaml delete mode 100644 configs/iPhoneMax.py create mode 100644 configs/iPhoneMax.yaml diff --git a/Dockerfile b/Dockerfile index b5cb543..a9e44e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ FROM python:3.13.6-bullseye RUN apt-get update && apt-get upgrade -y # Unit testing -RUN pip3 install --upgrade pytest +RUN pip3 install --upgrade pytest pyyaml # Set working directory WORKDIR /app diff --git a/README.md b/README.md index 4bb8447..747cb29 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ PokemonGo Bot via screen mirroring ### About -Using [screen mirroring](https://support.apple.com/en-us/120421), click on repeatable locations with random delays and random click accuracy. +Using iPhone/Mac [screen mirroring](https://support.apple.com/en-us/120421), click on repeatable locations with random delays and random click accuracy in order to automate repetitive PokemonGo Tasks. ### Configuration -Edit the coordinates for your system in [`config.py`](config.py). I'd recommend placing the screen mirroring application in an easily repeatable location (Ex. bottom right of screen). +Edit the `anchor` point for your system in one of the `.yaml` files in [`configs/`](/configs). I'd recommend placing the screen mirroring application in an easily repeatable location (Ex. bottom right of screen). The anchor point should be the center of the red 'x' on the top left of the screen mirroring window. The coordinates of the current mouse position can be easily obtained via `cmd` + `shift` + `4`.