Automated mining for ClubPenguin on Wayland
- Python 100%
| assets | ||
| src/cpjourney_miner | ||
| .gitignore | ||
| pyproject.toml | ||
| README.md | ||
cpjourney-miner
Automated mining for cpjourney.net on Linux.
Table of Contents
Prerequisites
- xdotool (input automation)
- A screenshot tool in your
PATH: - (optional) tesseract for coin OCR
- (optional) tmux + xterm for remote mining
Python 3.10+
Verify with: cpjourney-miner check
Installation
pipx install git+https://git.kvndl.xyz/kvndl/cpa_tools.git
Or from source:
git clone https://git.kvndl.xyz/kvndl/cpa_tools.git
cd cpa_tools && pip install -e .
Usage
cpjourney-miner # start mining (default)
cpjourney-miner check # verify dependencies
cpjourney-miner help # show help
The calibration sequence prompts you to select:
- Game window corners
- Your penguin (for position tracking)
- Player badge (for card recovery)
- Coin readout region
Remote Mining (SSH)
Launch the miner on a headless machine over SSH. The session runs inside tmux so it survives disconnects.
cpjourney-miner run --launch # start with chromium
cpjourney-miner run --launch firefox # start with firefox
cpjourney-miner run --launch --stop # stop active session
On first launch, the browser and terminal are positioned side-by-side on the remote display. Calibration is guided from SSH. After calibration, your terminal attaches to the tmux session.
| Action | How |
|---|---|
| Detach (keep mining) | Ctrl+B D |
| Reattach later | cpjourney-miner run --launch |
| Stop mining | Ctrl+C or --launch --stop |
How It Works
- Screenshots the dirt zone and builds an obstacle mask
- Computes a distance transform to find spots furthest from obstacles
- Clicks the safest spot, waits for the penguin to walk, presses
dto dig - Monitors coins via OCR, moves after 3 bursts or timeout
License
MIT