Skip to content

meteolt - weather in Lithuania CLI app powered by Meteo.lt (POC)

Notifications You must be signed in to change notification settings

elvinasv/meteo-lt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteo.lt powered weather CLI app

About

Weather in Lithuania CLI app ☀️ (powered by api.meteo.lt). This is a proof of concept app that is not intended for production use but rather testing yargs library.

image

Installation

Note: use Node.js version 18 or higher.

  1. Clone the repository
  2. Install dependencies
npm install
  1. Link the package (creates a symlink in the global node_modules folder to the current project)
npm link
  1. Run the CLI
meteolt --help
  1. Run without symlink
node index.js --help

Usage

You can use the meteolt CLI with the following commands and options:

meteolt history

Commands:

  • places: List of places with forecast
  • stations: List of all observable stations
  • history [stationId] [date]: History from the specified station
  • forecast [placeCode]: Forecast for the place

Global Options:

  • --version: Show the version number
  • --plain: Output as plain text instead of table (default: false)
  • --all: Include all weather properties (default: false)
  • --period, --time: Weather forecast period (choices: "today," "tomorrow," "week," default: "today")
  • --help: Show help

places

List of places where forecast is available

meteolt places

stations

List of all observable stations

meteolt stations

forecast [placeCode]

Get the weather forecast for a specific place.

meteolt forecast "kaunas" --period="week"

Positionals:

  • placeCode: The code for the place (default: "vilnius")

history [stationId] [date]

Retrieve historical weather data from the specified station.

meteolt history "vilniaus-ams" "2020-01-01"

Positionals:

  • stationId: The ID of the station (default: "vilniaus-ams")
  • date: Date in YYYY-MM-DD format or "latest" (default: "latest")

About

meteolt - weather in Lithuania CLI app powered by Meteo.lt (POC)

Resources

Stars

Watchers

Forks