Skip to content

Watch command (search monitoring) #22

@pasogott

Description

@pasogott

Command: whcli watch

whcli watch <query> [options]

Options:
  -c, --category <cat>     Category filter
  --max-price <price>      Maximum price
  --interval <duration>    Check interval (default: 5m)
  --notify <method>        Notification method: telegram, desktop, none
  --daemon                 Run as background daemon

Examples

# Watch for cheap RTX cards, notify via Telegram
whcli watch "rtx 4090" --max-price 1000 --notify telegram

# Run in background
whcli watch "iphone" --daemon

Implementation

  1. Store watch configs in ~/.whcli/watches.json
  2. On each interval:
    • Run search
    • Compare with previous results
    • Notify on new listings
  3. Daemon mode: fork process, write PID file

Output

👀 Watching for: "rtx 4090" (max €1.000)
   Checking every 5 minutes
   Notifications: Telegram

[08:15] Checking... 42 listings (no new)
[08:20] Checking... 43 listings
   🆕 NEW: RTX 4090 FE - €950 (Wien)
   → Notification sent

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-4Phase 4: Advanced

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions