OpenWeather CLI
by @parinll
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.
clawhub install openweather-cliπ About This Skill
name: openweather-cli description: 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. homepage: https://github.com/ParinLL/OpenWeatherMap-script requires: env: - OPENWEATHER_API_KEY bins: - go metadata: {"openclaw":{"homepage":"https://github.com/ParinLL/OpenWeatherMap-script","requires":{"env":["OPENWEATHER_API_KEY"],"bins":["go"]},"primaryEnv":"OPENWEATHER_API_KEY"}}
OpenWeather CLI Skill
Instruction-only skill document for using and troubleshooting owget (OpenWeather CLI).
Skill Purpose and Trigger Scenarios
geo) results.owget commands or use parameters.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"
go toolchain for build/install./usr/local/bin) requires admin privileges and prior source review.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:
owget weather
- Example: owget weather 25.0330 121.5654
owget city ""
- Example: owget city "Taipei,TW"
owget forecast
- Example: owget forecast 25.0330 121.5654
owget city "" forecast
- Example: owget city "Taipei,TW" forecast
owget geo ""
- 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 " 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 requiredexport OPENWEATHER_API_KEY="..." first.
401404 or city not foundCity,Country format (for example, Taipei,TW) and verify with owget geo "" first.