Command-line weather tool with formatted display and Tokyo Night theme
npm install weather-cli-16bit!License
!Version
!16bitweather
!Beta
!Node
A command-line weather tool that shows current conditions in a clean, formatted display. Get weather data for any location with a simple terminal command.
bash
npm install -g weather-cli-16bit
`$3
`bash
Set your API key (get free one at openweathermap.org/api)
weather auth setTest it works
weather auth test
`$3
`bash
Basic weather lookup
weather "New York, US"
weather "London, UK"
weather "Tokyo, JP"Some major cities work without country
weather London
weather Paris
weather Tokyo
`Features
- Current weather conditions with feels-like temperature
- Sunrise/sunset times and min/max temperatures
- Air quality index with color coding
- Humidity, pressure, wind speed and direction
- Visibility and atmospheric data
- Smart caching to reduce API calls
- Secure API key storage in system keychain
Display Format
The weather data is shown in a structured format:
`
San Francisco, US
clear sky75°F (Feels like: 73°F)
Sunrise: 06:43 AM | Sunset: 06:37 PM
Min Temp: 71°F | Max Temp: 75°F
Air Quality: Moderate | AQI Index: 3
Humidity: 27% | Pressure: 1011 hPa
Wind Speed: 0.38 mph | Wind Dir: 36°
Visibility: 10 km | UV Index: N/A
`Configuration
$3
`bash
weather config # Configure location, units, and 5-day forecast display
`Options include:
- Default location for weather queries
- Temperature units (auto, Celsius, or Fahrenheit)
- Show 5-day forecast automatically (on/off)
$3
`bash
Secure storage (recommended)
weather auth setOr set environment variable
export WEATHER_API_KEY=your_key_here
`$3
`bash
weather cache # View cache stats
weather cache --clean # Remove expired entries
weather cache --clear # Clear all cache
`Commands
`bash
weather "City, Country" # Current weather
weather now "City" # Current weather
weather forecast "City" # 24-hour forecast
weather 5day "City" # 5-day forecast
weather compare city1 city2 # Compare two cities
weather coords lat,lon # Weather by coordinates
weather config # Configure defaults
`Installation Options
$3
`bash
npm install -g weather-cli-16bit
weather "New York, US"
`$3
`bash
git clone https://github.com/deephouse23/weather-cli.git
cd weather-cli
npm install
node index.js "New York, US"
``- Node.js 14 or higher
- OpenWeatherMap API key (free at openweathermap.org/api)
MIT License - see LICENSE file for details.
- Homepage: 16bitweather.co
- Repository: GitHub
- Issues: GitHub Issues