lipgloss.vibrant, dark, and light themes.--forecast) or a 24-hour breakdown (--hourly).JSON, CSV, or Markdown.--raw JSON output for piping into tools like jq.Make sure you have Go installed.
go build -o weather-Cli
./weather-Cli get London
./weather-Cli get London Tokyo "New York"
./weather-Cli get Paris --hourly --forecast
./weather-Cli get London --output markdown --output-file report.md
./weather-Cli get "New York" --units imperial --theme dark
./weather-Cli get London
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ WEATHER REPORT โ
โ โ
โ ๐ Location: London, United Kingdom โ
โ ๐ Latitude: 51.50853 โ
โ ๐ Longitude: -0.12574 โ
โ ๐ Timezone: Europe/London โ
โ ๐ฅ Population: 8,961,989 โ
โ โ
โ CURRENT CONDITIONS โ
โ โ
โ \ _ / ๐ฅ Temp: 15.6ยฐC โ
โ - ( )--o ๐จ Wind: 18.7 Km/h (250ยฐ) โ
โ / (___) ๐ Condition: Partly Cloudy โ
โ ๐ง Humidity: 53.0% โ
โ ๐ฅ Feels Like: 14.3ยฐC โ
โ ๐งญ Surface Pressure: 1015.10 hPa โ
โ ๐ Sealevel Pressure: 1017.80 hPa โ
โ ๐ UV Index: 6 โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
./weather-Cli get London -f
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ WEATHER REPORT โ
โ โ
โ ๐ Location: London, United Kingdom โ
โ ๐ Latitude: 51.50853 โ
โ ๐ Longitude: -0.12574 โ
โ ๐ Timezone: Europe/London โ
โ ๐ฅ Population: 8,961,989 โ
โ โ
โ CURRENT CONDITIONS โ
โ โ
โ \ _ / ๐ฅ Temp: 15.6ยฐC โ
โ - ( )--o ๐จ Wind: 18.7 Km/h (250ยฐ) โ
โ / (___) ๐ Condition: Partly Cloudy โ
โ ๐ง Humidity: 53.0% โ
โ ๐ฅ Feels Like: 14.3ยฐC โ
โ ๐งญ Surface Pressure: 1015.10 hPa โ
โ ๐ Sealevel Pressure: 1017.80 hPa โ
โ ๐ UV Index: 6 โ
โ โ
โ 7-DAY FORECAST โ
โ โ
โ ๐๏ธ Wed, May 20: 18.6/12.8ยฐC Light Drizzle โ
โ ๐๏ธ Thu, May 21: 22.8/12.3ยฐC Overcast โ
โ ๐๏ธ Fri, May 22: 26.6/16.9ยฐC Overcast โ
โ ๐๏ธ Sat, May 23: 26.9/19.6ยฐC Overcast โ
โ ๐๏ธ Sun, May 24: 31.3/18.9ยฐC Clear Sky โ
โ ๐๏ธ Mon, May 25: 29.0/20.9ยฐC Clear Sky โ
โ ๐๏ธ Tue, May 26: 20.6/13.1ยฐC Clear Sky โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
./weather-Cli get London --raw
{
"location": {
"name": "London",
"country": "United Kingdom",
"latitude": 51.50853,
"longitude": -0.12574,
"timezone": "Europe/London",
"population": 8961989
},
"forecast": {
"current_weather": {
"temperature": 15.6,
"windspeed": 18.7,
"winddirection": 250,
"weathercode": 2
},
...
}
}
You can manage your configuration using the config command:
# Set a default city
./weather-Cli config set default_city "Amsterdam"
# Disable interactive selection
./weather-Cli config set interactive false
# Set default units
./weather-Cli config set units imperial
The configuration is stored at $HOME/.weather-cli.yaml.
| Flag | Shorthand | Description |
|---|---|---|
--forecast | -f | Show 7-day extended forecast |
--hourly | -H | Show 24-hour detailed forecast |
--units | -u | Units to use (metric or imperial) |
--theme | -t | Theme to use (vibrant, dark, light) |
--output | -o | Export format (json, csv, markdown) |
--output-file | Path to save the exported data | |
--no-list | -l | Disable interactive city selection |
--no-cache | Disable local caching | |
--no-style | Disable styled terminal visuals | |
--raw | -r | Output valid, unified JSON |
--config | Path to a custom config file | |
--version | -v | Print version number |
78 commits
Go
100.0%
lipgloss.vibrant, dark, and light themes.--forecast) or a 24-hour breakdown (--hourly).JSON, CSV, or Markdown.--raw JSON output for piping into tools like jq.Make sure you have Go installed.
go build -o weather-Cli
./weather-Cli get London
./weather-Cli get London Tokyo "New York"
./weather-Cli get Paris --hourly --forecast
./weather-Cli get London --output markdown --output-file report.md
./weather-Cli get "New York" --units imperial --theme dark
./weather-Cli get London
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ WEATHER REPORT โ
โ โ
โ ๐ Location: London, United Kingdom โ
โ ๐ Latitude: 51.50853 โ
โ ๐ Longitude: -0.12574 โ
โ ๐ Timezone: Europe/London โ
โ ๐ฅ Population: 8,961,989 โ
โ โ
โ CURRENT CONDITIONS โ
โ โ
โ \ _ / ๐ฅ Temp: 15.6ยฐC โ
โ - ( )--o ๐จ Wind: 18.7 Km/h (250ยฐ) โ
โ / (___) ๐ Condition: Partly Cloudy โ
โ ๐ง Humidity: 53.0% โ
โ ๐ฅ Feels Like: 14.3ยฐC โ
โ ๐งญ Surface Pressure: 1015.10 hPa โ
โ ๐ Sealevel Pressure: 1017.80 hPa โ
โ ๐ UV Index: 6 โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
./weather-Cli get London -f
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ WEATHER REPORT โ
โ โ
โ ๐ Location: London, United Kingdom โ
โ ๐ Latitude: 51.50853 โ
โ ๐ Longitude: -0.12574 โ
โ ๐ Timezone: Europe/London โ
โ ๐ฅ Population: 8,961,989 โ
โ โ
โ CURRENT CONDITIONS โ
โ โ
โ \ _ / ๐ฅ Temp: 15.6ยฐC โ
โ - ( )--o ๐จ Wind: 18.7 Km/h (250ยฐ) โ
โ / (___) ๐ Condition: Partly Cloudy โ
โ ๐ง Humidity: 53.0% โ
โ ๐ฅ Feels Like: 14.3ยฐC โ
โ ๐งญ Surface Pressure: 1015.10 hPa โ
โ ๐ Sealevel Pressure: 1017.80 hPa โ
โ ๐ UV Index: 6 โ
โ โ
โ 7-DAY FORECAST โ
โ โ
โ ๐๏ธ Wed, May 20: 18.6/12.8ยฐC Light Drizzle โ
โ ๐๏ธ Thu, May 21: 22.8/12.3ยฐC Overcast โ
โ ๐๏ธ Fri, May 22: 26.6/16.9ยฐC Overcast โ
โ ๐๏ธ Sat, May 23: 26.9/19.6ยฐC Overcast โ
โ ๐๏ธ Sun, May 24: 31.3/18.9ยฐC Clear Sky โ
โ ๐๏ธ Mon, May 25: 29.0/20.9ยฐC Clear Sky โ
โ ๐๏ธ Tue, May 26: 20.6/13.1ยฐC Clear Sky โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
./weather-Cli get London --raw
{
"location": {
"name": "London",
"country": "United Kingdom",
"latitude": 51.50853,
"longitude": -0.12574,
"timezone": "Europe/London",
"population": 8961989
},
"forecast": {
"current_weather": {
"temperature": 15.6,
"windspeed": 18.7,
"winddirection": 250,
"weathercode": 2
},
...
}
}
You can manage your configuration using the config command:
# Set a default city
./weather-Cli config set default_city "Amsterdam"
# Disable interactive selection
./weather-Cli config set interactive false
# Set default units
./weather-Cli config set units imperial
The configuration is stored at $HOME/.weather-cli.yaml.
| Flag | Shorthand | Description |
|---|---|---|
--forecast | -f | Show 7-day extended forecast |
--hourly | -H | Show 24-hour detailed forecast |
--units | -u | Units to use (metric or imperial) |
--theme | -t | Theme to use (vibrant, dark, light) |
--output | -o | Export format (json, csv, markdown) |
--output-file | Path to save the exported data | |
--no-list | -l | Disable interactive city selection |
--no-cache | Disable local caching | |
--no-style | Disable styled terminal visuals | |
--raw | -r | Output valid, unified JSON |
--config | Path to a custom config file | |
--version | -v | Print version number |
78 commits
Go
100.0%