Simple weather cli to check for weather based on current IP geolocation or an explicitly stated city. Written in Rust.
- Shows the following information
- Location
- Country
- City
- Latitude
- Longtitude
- Weather
- Forecast (Clear, Partly Cloudy, etc.)
- Temperature
- Apparent Temperature
- Humidity
- Precipitation
- Wind Speed
- Time of last update
- Location
- Gets weather by your IP's location
- Gets weather for a specific city
- ArchLinux, you can use aur.
In order to build from source, you must have the following installed:
# Clone the source code
git clone [email protected]:einstein8612/weather-rs.git
cd weather-rs
# Build the binary
cargo build --release
# Optional: Move to bin, if you want to use it everywhere
sudo mv target/release/weather-rs /usr/bin/weather
Showcases IP geolocation guessing current location.
$ weather
โญโLocationโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Country: The Netherlands โ
โ City: North Holland/Amsterdam โ
โ Latitude: 52.3667 โ
โ Longtitude: 4.9 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโWeatherโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Forecast: Overcast โ
โ Temperature: 9.2ยฐC โ
โ Apparent Temperature: 3.2ยฐC โ
โ Humidity: 81% โ
โ Precipitation: 0mm โ
โ Wind Speed: 35km/h โ
โ Last updated: 4 minutes ago โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Showcases overwriting the city
$ weather -c NYC
โญโLocationโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Country: United States โ
โ City: New York โ
โ Latitude: 40.71427 โ
โ Longtitude: -74.00597 โ
โ Population: 8175133 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโWeatherโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Forecast: Clear โ
โ Temperature: 1.2ยฐC โ
โ Apparent Temperature: -4.1ยฐC โ
โ Humidity: 41% โ
โ Precipitation: 0mm โ
โ Wind Speed: 13.3km/h โ
โ Last updated: 6 minutes ago โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
- For IP to geolocation, it uses ip-api.com.
- For weather and city search, it uses open-meteo.com.