Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ioinitid/cyclone-cli
"Cyclone" - CLI for getting weather forecast.
https://github.com/ioinitid/cyclone-cli
cli forecast open-weather-map weather
Last synced: about 2 months ago
JSON representation
"Cyclone" - CLI for getting weather forecast.
- Host: GitHub
- URL: https://github.com/ioinitid/cyclone-cli
- Owner: IOINITID
- License: mit
- Created: 2023-03-08T18:50:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T13:07:14.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T06:45:04.474Z (about 2 months ago)
- Topics: cli, forecast, open-weather-map, weather
- Language: TypeScript
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
![logo](logo.svg)
[![npm version](https://badge.fury.io/js/cyclone-cli.svg)](https://badge.fury.io/js/cyclone-cli)
![npm](https://img.shields.io/npm/dw/cyclone-cli)
![license](https://badgen.net/github/license/IOINITID/cyclone-cli)
![minzip](https://img.shields.io/bundlephobia/minzip/cyclone-cli)![!last-commit](https://img.shields.io/github/last-commit/ioinitid/cyclone-cli)
![!PRs-welcome](https://img.shields.io/badge/PRs-welcome-brightgreen)
![!code style-prettier](https://img.shields.io/badge/code%20style-prettier-ff69b4)## CLI for getting weather forecast.
### π About:
The API token from the open weather map service is used, for the weather forecast to work, you need to register on the service and get the API token https://openweathermap.com.
To get the weather forecast, you need to run the command: `cyclone`
On the first run, the token and city API setup process will be started to complete the request.
### β¨ Features:
- Show weather with CLI
- One of the popular weather APIs is used - OpenWeatherMap
- Interactive CLI with the ability to select actions, show loading states and text animations when displaying information
- Emoji as weather icon display
- Written in TypeScript
- Small application size, only 5 kb
- Can be installed globally### π Install:
Can be used both globally and locally.
#### Global install
To install via npm: `npm install --global cyclone-cli`
To install via yarn: `yarn add --global cyclone-cli`
#### Local install
To install via npm: `npm install --save-dev cyclone-cli`
To install via yarn: `yarn add cyclone-cli`
### π» Usage:
You can see the available commands with the command: `cyclone βhelp` or `cyclone -h`.
To refresh the API token, you can enter the command: `cyclone βtoken [API_KEY]` or `cyclone -t [API_KEY]`.
To update the city, you can enter the command: `cyclone βcity [CITY]` or `cyclone -c [CITY]`.
You can find out the version of the application using the command: `cyclone βversion` or `cyclone -v`.
### βοΈ Configuration:
The application settings file is located in the user folder, in the hidden directory `.cyclone/config.json`. It contains a set of settings for different versions of the application.
### π Dependencies:
- Axios
- Chalk
- Dedent
- Inquirer
- Nanospinner
- Yargs
- Gradient-String
- Figlet
- DayJS### π Changelog:
A list of all versions and their changes can be found in the CHANGELOG.md file. The releases of each version are located on the releases page on Github.
### π Contributing:
If you want to improve the project, you can submit your PR with corrections or improvements. The file CONTRIBUTING.md describes the details of how to start and configure the project.
### π¨βπ Code of conduct:
The rules for the community when sending pull requests are in the file CODE_OF_CONDUCT.md.
### π License:
The MIT license is located in the file LICENSE.md.