Skip to content

DexDevCode/openclaw-untappd-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Untappd OpenClaw Skill

OpenClaw Compatible Python 3.8+ License: MIT

A comprehensive OpenClaw skill that integrates with Untappd, the world's largest social network for beer enthusiasts. Search for beers, check in with ratings and comments, view checkin history, and manage your beer-drinking social experience directly from your OpenClaw assistant.

✨ Features

πŸ” Beer Search & Discovery

  • Natural language search queries ("Find a Dogfish Head IPA")
  • Comprehensive beer information with ratings and brewery details
  • Smart brewery + beer name optimization
  • JSON and formatted table output

🍺 Beer Check-ins

  • Full-featured check-ins with 1-5 star ratings (supports half ratings)
  • Add comments and tasting notes (up to 140 characters)
  • GPS location integration
  • Social media sharing (Facebook, Twitter, Foursquare)
  • Automatic badge earning
  • Dry-run mode for testing

πŸ“Š History & Analytics

  • Personal checkin history viewing
  • Public user profile access
  • Drinking statistics and badge tracking
  • Compact and detailed viewing formats
  • JSON export for data analysis

πŸ” Complete Authentication

  • Client credentials for searches and public data
  • OAuth 2.0 for authenticated actions
  • Secure credential storage
  • Interactive setup process

πŸš€ Quick Start

Prerequisites

Installation

  1. Clone this repository into your OpenClaw skills directory:

    cd ~/.openclaw/skills
    git clone https://github.com/DexDevCode/openclaw-untappd-skill.git untappd
  2. Install dependencies (if any additional packages are needed):

    cd untappd
    pip install -r requirements.txt  # If requirements.txt exists
  3. Set up authentication:

    # Configure your Untappd API credentials
    python3 scripts/untappd_setup.py credentials
    
    # Complete OAuth flow for authenticated features
    python3 scripts/untappd_setup.py auth
    
    # Test your setup
    python3 scripts/untappd_setup.py test

Configuration

Getting API Credentials

  1. Visit Untappd API and register your application
  2. Note down your Client ID and Client Secret
  3. Set redirect URI to http://localhost:8080/callback (for local OAuth)

Environment Setup

You can configure credentials via:

Option 1: Interactive Setup (Recommended)

python3 scripts/untappd_setup.py credentials

Option 2: Environment Variables

export UNTAPPD_CLIENT_ID="your_client_id_here"
export UNTAPPD_CLIENT_SECRET="your_client_secret_here"
export UNTAPPD_ACCESS_TOKEN="your_access_token_here"  # Optional, for authenticated features

Option 3: Configuration File Create ~/.openclaw/skills/untappd/credentials.ini:

[untappd]
client_id = your_client_id_here
client_secret = your_client_secret_here
access_token = your_access_token_here  # Optional

πŸ“š Usage Examples

Via OpenClaw Chat

You: "Search for Russian River Pliny the Elder on Untappd"
Assistant: [Uses untappd skill to search and display results]

You: "Check in to that beer with a 5 star rating"  
Assistant: [Performs checkin with rating]

You: "Show my recent beer checkins"
Assistant: [Displays your checkin history]

Direct CLI Usage

# Search for beers
python3 scripts/untappd_search.py "Stone Arrogant Bastard"

# Check in to a beer (ID 12345) with rating and comment
python3 scripts/untappd_checkin.py 12345 --rating 4.5 --comment "Exceptional hop character!"

# View your recent checkins
python3 scripts/untappd_checkins.py --limit 10 --compact

# Get detailed beer information
python3 scripts/untappd_search.py "Guinness" --format json

πŸ› οΈ API Capabilities

Public Features (Client Credentials Only)

  • βœ… Search beers and breweries
  • βœ… Get detailed beer information
  • βœ… View public user profiles
  • βœ… Access trending beer data

Authenticated Features (OAuth Required)

  • βœ… Check in to beers with ratings/comments
  • βœ… Access private user data
  • βœ… Share to social media platforms
  • βœ… Manage wishlist and badges
  • βœ… View personalized recommendations

πŸ“ Project Structure

untappd/
β”œβ”€β”€ SKILL.md                    # OpenClaw skill definition
β”œβ”€β”€ README.md                   # This file
β”œβ”€β”€ EXAMPLES.md                 # Usage examples and workflows
β”œβ”€β”€ test_skill.py              # Comprehensive test suite
β”œβ”€β”€ .gitignore                 # Git ignore rules
β”œβ”€β”€ scripts/                   # CLI tools and core functionality
β”‚   β”œβ”€β”€ untappd_client.py     # Core API client library
β”‚   β”œβ”€β”€ untappd_setup.py      # Authentication setup tool
β”‚   β”œβ”€β”€ untappd_search.py     # Beer search CLI
β”‚   β”œβ”€β”€ untappd_checkin.py    # Beer checkin CLI
β”‚   └── untappd_checkins.py   # Checkin history CLI
└── references/               # Detailed documentation
    β”œβ”€β”€ api.md               # Complete API reference
    └── authentication.md    # Authentication setup guide

πŸ§ͺ Testing

Run the comprehensive test suite:

python3 test_skill.py

Tests include:

  • Skill structure validation
  • File permissions and executability
  • Mock API functionality
  • Error handling
  • Authentication flow

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Development Setup

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (python3 test_skill.py)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Code Style

  • Follow PEP 8 for Python code
  • Include docstrings for functions and classes
  • Add tests for new functionality
  • Update documentation as needed

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ”— Links

⚠️ Disclaimer

This is an unofficial integration with Untappd. Please use responsibly and in accordance with Untappd's Terms of Service and API rate limits (100 requests per hour).

πŸ“ž Support

About

Comprehensive Untappd integration skill for OpenClaw - Search beers, check in with ratings, and track your beer journey

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages