This is a command-line interface (CLI) application that provides weather information based on user input. Users can query weather conditions for a specific location by entering the city name or ZIP code. The application utilizes a weather API to retrieve up-to-date weather data and presents it to the user in a user-friendly format.
- Current Weather: Get the weather conditions for a specified location.
- Forecast: Retrieve a weather forecast for the next few days, including temperature, humidity, and precipitation.
- Unit Conversion: Convert temperature between Celsius and Fahrenheit as per user preference.
- Location Search: Search for weather data by city name or ZIP code.
Returns the current weather condition of the specified location or address
In your terminal:
$ git clone https://github.com/Codestronomer/Weather-app-node
$ cd weather-app-node
$ npm install
$ node app.js
$ node app.js --help
You can customize the application by setting your API key and unit as an environment variable. Here are the available configuration options:
mapboxkey
: Your API key from the geocoding data provider (mapbox).access_key
: Your API key for the weather data provider (Weatherstack).
- This application uses data from Weather. Review their terms of service and attribution requirements if you plan to deploy this application.
- This application also gets geocoding data from Mapbox. Review their terms of service and attribution requirements if you plan to deploy this application
This project is licensed under the MIT License. See the LICENSE file for details.
If you would like to contribute to this project, please fork the repository and submit a pull request. We welcome contributions from the community.
If you have any questions or suggestions regarding this application, please contact us at Johnrumide6@gmail.com.
Happy weather checking! Re