A fledge plugin that shows current weather and 7-day forecasts in your terminal, powered by Open-Meteo.
fledge plugins install CorvidLabs/fledge-plugin-weather# Current weather (auto-detects location from IP)
fledge weather
# Specify a city
fledge weather "New York"
fledge weather Tokyo
fledge weather "Sao Paulo"
# 7-day forecast
fledge weather --forecast
fledge weather -f "London"
# Imperial units
fledge weather --units imperial
fledge weather -u imperial -f "Chicago"| Flag | Description |
|---|---|
-f, --forecast |
Show 7-day forecast |
-u, --units <SYSTEM> |
metric (default) or imperial |
-h, --help |
Show help |
-v, --version |
Show version |
curl-- for API requestsjq-- for JSON parsingpython3-- for URL encoding (only when specifying a location name)
No API key required. Open-Meteo is free and open-source.
- Location resolution -- If no city is provided, the plugin auto-detects your location from your IP address via ipapi.co. Otherwise it geocodes the city name through Open-Meteo's geocoding API.
- Weather data -- Current conditions and a 7-day forecast are fetched from the Open-Meteo forecast API.
- Terminal display -- Results are rendered with color and weather icons directly in your terminal.
# Syntax check
bash -n bin/fledge-weather
# Lint
shellcheck bin/fledge-weather
# Smoke test
bash bin/fledge-weather --help
bash bin/fledge-weather --versionOr using fledge tasks:
fledge run lint
fledge run test
fledge run check- Fork the repository
- Create a feature branch
- Ensure
shellcheck bin/fledge-weatherpasses with no warnings - Open a pull request
MIT