- Can show
- Population
- Latitude
- Longitude
- Weather
- Temperature
- Humidity
- Wind Speed
- Wind Direction
- Weather Conditions
- Feels Like Temperature (Apparent temperature based on a combination of factors e.g. humidity, wind speed, solar radiation, wind chill and air pressure)
- Surface Pressure
- Sealevel Pressure
- UV Index
- Raw JSON output
- If you don't want to manually build the app, you can use:
- The weather-cli AUR if you're on Arch
- Grab a binary from the Artifacts
Otherwise, you can build the program yourself by running:
Make sure you have Go installed
go build
- The executable will be located in the same directory you ran the command from
- Example 1:
./weather-Cli get Tokyo
__________________________
Searching for city Tokyo...
City/Country: Tokyo/Japan
Latitude: 35.689500
Longitude: 139.691710
Timezone: Asia/Tokyo
Population: 8,336,599
Weather Info:
Temperature: 28.5°
Wind Direction: 168°
Wind Speed: 7.0 Km/h
Weather Condition: Partly Cloudy
Humidity: 50.00%
Real Feel: 39.1°
Surface Pressure: 999.60 hPa
Sealevel Pressure: 1004.00 hPa
UV Index: 6
- Example 2:
./weather-Cli get Tokyo --raw
__________________________
(Returns the same data but in JSON)
API used: Open-Meteo
Built with: Cobra