feat: add Buy Mode functionality for manual purchase monitoring and point tracking

This commit is contained in:
2025-11-04 21:08:11 +01:00
parent 8e1be00618
commit 57e2bc392d
7 changed files with 414 additions and 58 deletions

View File

@@ -88,6 +88,7 @@ For detailed configuration, advanced features, and troubleshooting, visit our co
| **[Getting Started](docs/getting-started.md)** | Detailed installation and first-run guide |
| **[Configuration](docs/config.md)** | Complete configuration options reference |
| **[Accounts & 2FA](docs/accounts.md)** | Setting up accounts with TOTP authentication |
| **[Buy Mode](docs/buy-mode.md)** | 💳 Manual purchase monitoring with point tracking |
| **[Dashboard](src/dashboard/README.md)** | 🆕 Local web dashboard for monitoring and control |
| **[External Scheduling](docs/schedule.md)** | Use OS schedulers for automation |
| **[Docker Deployment](docs/docker.md)** | Running in containers |
@@ -126,6 +127,29 @@ Access at `http://localhost:3000` to:
---
## 💳 Buy Mode
Monitor your points in real-time while manually redeeming rewards:
```bash
# Interactive account selection (recommended)
npm run buy
# Or specify account directly
npm run buy your@email.com
npm run buy 1 # By account number
```
**What it does:**
- Opens browser with 2 tabs: monitoring + your browsing tab
- Tracks point changes every ~10 seconds
- Sends alerts when points are spent
- Completely passive - you control the redemption
**[📖 Full Buy Mode Guide](docs/buy-mode.md)**
---
## ⏰ Automatic Scheduling
Configure automatic task scheduling directly from `config.jsonc` - **perfect for Raspberry Pi!**