Socket
Socket
Sign inDemoInstall

forecast-cli

Package Overview
Dependencies
6
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    forecast-cli

Gets the weather for you, and beautifully displays it in your terminal - using the forecast.io API.


Version published
Weekly downloads
11
Maintainers
1
Install size
9.38 MB
Created
Weekly downloads
 

Readme

Source

forecast-cli

forecast-cli is a CLI tool for getting a beautifully formatted weather forecast in your terminal, using forecast.io's API. You can configure it to use either degrees Celsius or Fahrenheit.

Installation

With npm:

npm install -g forecast-cli

Clone this project:

git clone http://github.com/joergd/forecast-cli.git

CLI

Usage: forecast [options] [placename]

Options:

--hourly       Hourly report for the next 48 hours
--units        Configure to use Fahrenheit or Celcius (default)
-h, --help     output usage information
-V, --version  output the version number

Examples:

$ forecast
$ forecast "Cape Town"
$ forecast --hourly "Cape Town"
$ forecast --units

Default place name

Your last placename will be stored in

~/.forecast-cli.json

Default units

The default units are Celcius, and they too are stored in

~/.forecast-cli.json

The available options are

us: Fahrenheit (°F)
si: Celcius (°C)

~/.forecast-cli.json

This file holds your settings. Example:

{
  "place": "Cape Town",
  "units": "si"
}

When using Grunt to transpile to javascript

Add the following line to the top of the generated forecast-cli.js file:

#!/usr/bin/env node

White screenshot

White Screenshot

Black screenshot

Black Screenshot


Now you're prepared.

Keywords

FAQs

Last updated on 21 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc