1.0.1-0 • Published 2 years ago

cloudsky v1.0.1-0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

cloudsky

A command Line weather forecast app, created in Node.js. Developed from the scratch (no external library is used).

Features

  • Plug and Play (No initial co-ordinate or api-key is needed).
  • Provide current weather( within an hour), alongside up to seven days of prediction.
  • Lightweight and economical in size due to not using any external library.
  • Beginner friendly help page.

Installation

To install from default npm registry

npm install --global cloudsky

To install from source code

First clone the repo

git clone https://github.com/marufHasanQ/cloudsky.git
cd cloudsky

then globally install project with npm

npm install --global

Usage

To get current weather and forecast of next seven days

weather

prediction

To get available options

weather --help

HelpOutput

CLI options

--fields, -f

Adds parameter fields to the prediction data

Example:

weather -f apparent_temperature_min 

available values for the options | Parameter | Description | | :-------- | :------------------------- | | rain_sum | Sum of daily rain. | | precipation_sum | Sum of daily precipitation (including rain, showers and snowfall)| | snowfall_sum | Sum of daily snowfall |

....and more.

--past_days, -pd

Sets the starting day for the prediction.

Example:

weather -pd 1

available values for the options | Parameter | Description | | :-------- | :------------------------- | | 1 | Start the prediction one day before the currnet date | | 2 | Start the prediction two days before the currnet date |

....and more.

--temperature_unit, -tu

changes the unit of the fields related to temperature.

Example:

weather -tu celsius

available values for the options | Parameter | Description | | :-------- | :------------------------- | | celsius | Sets temperature unit to celsius| | fahrenheit | Sets temperature unit to fahrenheit |

....and more.

--windspeed_unit, -wu

Changes the units which are related to windspeed.

Example:

weather -wu kmh 

available values for the options | Parameter | Description | | :-------- | :------------------------- | | kmh | Sets the windspeed unit to kmh, this is default | | mph | Sets the windspeed unit to mph | | ms | Sets the windspeed unit to ms | | kn | Sets the windspeed unit to kn |

....and more.

Acknowledgements

License

MIT

1.0.1-0

2 years ago

1.0.0

2 years ago