Socket
Socket
Sign inDemoInstall

weather-api-cli-based

Package Overview
Dependencies
76
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    weather-api-cli-based

Weather CLI is a command-line interface application that fetches real-time weather data for a specified city using the OpenWeatherMap API.


Version published
Weekly downloads
1
decreased by-94.12%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Weather CLI

Weather CLI

Overview

Weather CLI is a command-line interface application that fetches real-time weather data for a specified city using the OpenWeatherMap API.

Features

  • Real-time Weather Data: Get the latest temperature, humidity, and weather description.
  • User-Friendly CLI: Intuitive interface for a seamless experience.
  • Metric Units: Display temperature in Celsius and humidity in percentage.

Getting Started

Prerequisites

  • Node.js installed
  • OpenWeatherMap API Key (Get API Key)

Installation

  1. Clone the repository:

    git clone https://github.com/Engr-Jalal-Saleem/PIAIC-Quarter-1.git
    cd PIAIC-Quarter-1/Node%20Projects%20Quarter%201
    
  2. Install dependencies:

    bashCopy code
    npm install

Usage

  1. Run the application:
    bashCopy code
    node dist/weatherCli.js
  2. Enter the city when prompted and press Enter.
  3. View the current weather information for the specified city.

Configuration

  • Replace 'YOUR_OPENWEATHERMAP_API_KEY' in src/weatherCli.ts with your actual OpenWeatherMap API key.

Example

bashCopy code
Weather in New York: Temperature: 25°C Humidity: 60% Description: Clear sky

Troubleshooting

  • If you encounter issues, refer to the OpenWeatherMap FAQ.
  • Ensure your OpenWeatherMap API key is valid and correctly configured in the source code.

Contributing

Contributions are welcome! Open issues or submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments****

Keywords

FAQs

Last updated on 28 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc