openweather-cli

Use this skill when the user wants to run, troubleshoot, or extend the owget CLI for geocoding, current weather, and 5-day forecasts with OpenWeatherMap.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openweather-cli" with this command: npx skills add parinll/openweather-cli

OpenWeather CLI Skill

Instruction-only skill document for using and troubleshooting owget (OpenWeather CLI).

Skill Purpose and Trigger Scenarios

  • The user wants current weather, forecast, or geocoding (geo) results.
  • The user asks how to run owget commands or use parameters.
  • The user reports API key issues, HTTP errors, or city lookup failures.

Install from GitHub

Recommended install:

git clone https://github.com/ParinLL/OpenWeatherMap-script.git
cd OpenWeatherMap-script
go install .

This installs owget into your Go bin directory (for example, $GOPATH/bin or $HOME/go/bin).

Required Environment Variables / Permissions

Required environment variable:

export OPENWEATHER_API_KEY="your-api-key"
  • Requires the go toolchain for build/install.
  • System-wide installation into protected directories (for example, /usr/local/bin) requires admin privileges and prior source review.
  • Never expose full API keys in outputs; debug request logs should redact credential query params (for example, appid).

How to Use the Binary

After installation, make sure owget is available in your shell:

owget --help

If your shell cannot find it, add your Go bin path to PATH:

export PATH="$PATH:$(go env GOPATH)/bin"

Core command patterns:

  • Current weather by coordinates:
    • owget weather <lat> <lon>
    • Example: owget weather 25.0330 121.5654
  • Current weather by city:
    • owget city "<City,Country>"
    • Example: owget city "Taipei,TW"
  • 5-day forecast:
    • owget forecast <lat> <lon>
    • Example: owget forecast 25.0330 121.5654
  • 5-day forecast by city:
    • owget city "<City,Country>" forecast
    • Example: owget city "Taipei,TW" forecast
  • Geocoding lookup:
    • owget geo "<query>"
    • Example: owget geo "New York,US"

Useful flags:

  • --detail: show extended fields (for example pressure, wind, sunrise/sunset, visibility).
  • --debug: print HTTP debug information for troubleshooting. Sensitive query parameters are redacted.

Common usage flow:

  1. Export OPENWEATHER_API_KEY.
  2. Run owget geo "<City,Country>" if you need to verify location naming.
  3. Use owget weather ... or owget forecast ... for actual weather data.
  4. Add --detail for richer output, and --debug only when troubleshooting.

Common Troubleshooting

  • error: OPENWEATHER_API_KEY env is required
    • The env var is not set. Run export OPENWEATHER_API_KEY="..." first.
  • API returns 401
    • API key is invalid, expired, or mistyped. Re-check your OpenWeatherMap key.
  • API returns 404 or city not found
    • Use City,Country format (for example, Taipei,TW) and verify with owget geo "<query>" first.
  • Concern about credential leakage while using debug mode
    • Debug request URLs are redacted for sensitive params, but avoid long-running debug in shared/logged environments.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

StylePilot

StylePilot 个人衣橱助手。用户拍照存储衣服信息,或询问穿搭搭配(今天穿什么/出行带什么)时激活。不要主动触发,只在用户明确表示需要穿搭建议时使用。 StylePilot is a personal wardrobe assistant. Activate only when the user expli...

Registry SourceRecently Updated
1420Profile unavailable
Coding

FreeGuard VPN Setup Guide

Use when a user wants to set up, use, or troubleshoot FreeGuard VPN - guides non-technical users through installation, login, connection, and daily usage wit...

Registry SourceRecently Updated
3660Profile unavailable
Coding

Find Skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express...

Registry SourceRecently Updated
2440Profile unavailable
Coding

Agent Cli Orchestrator

Orchestrates multiple AI CLI tools by auto-detecting, prioritizing, and switching between them for stable, fallback-enabled automated coding workflows.

Registry SourceRecently Updated
3900Profile unavailable