Giter Site home page Giter Site logo

meteocli's Introduction

Meteo CLI

Meteo CLI is a command-line interface (CLI) tool that allows users to quickly and easily check the current weather conditions for a given location. The tool is built using TypeScript and utilizes the API provided by OpenWeatherMap API.

demo image

Installation

To use Meteo CLI, you will need to have Node.js and npm (Node Package Manager) installed on your computer. Once you have these prerequisites, you can proceed with the following steps:

  1. Clone the Meteo CLI repository to your local machine by running git clone https://github.com/n-drobyshevski/meteoCli
  2. Navigate to the meteoCLI directory by running cd meteoCli
  3. Install the required dependencies by running npm install
  4. Compile the TypeScript code to JavaScript by running npm run build

Usage

To check the weather for a given city, you can run the following command:

node dist/meteo.js

To set the name of the city you would like to check the weather for run node dist/meteo.js -c [city]

Also you needto set your API key from OpenWeatherMap API. node dist/meteo.js -t [apiKey]

For example, to check the weather for London, you would run these following commands:

node dist/meteo.js -t [apiKey]
node dist/meteo.js -c London
node dist/meteo.js

The tool will then output the current temperature, humidity, and weather conditions for the specified location.

Additional Features

You can also specify the language by using the -l flag. The default language is English, but you can also use other languages by specifying -l [language code]

Built With

  • TypeScript
  • OpenWeatherMap API (api.openweathermap.org)

meteocli's People

Contributors

n-drobyshevski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.