now-forecast

0.1.0 • Public • Published

Now

Get current weather conditions via forecast.io.

Tufte

Setup

  1. Download or clone.

  2. Specify your forecast.io api key and location coordinates in config.json.

  3. Use npm -g install to install dependencies and the now command-line utility.

Usage

{data} = require 'now'
 
# callback for handling the returned JSON 
summary = (d) ->  
  console.log "Currently #{d.currently.summary}"
  console.log d.daily.summary
 
data summary

This should print out something like ...

Currently Clear
Light rain next week; temperatures rising to 89° on Tuesday.

CLI

> now 
time: 1378231463
summary: 'Clear'
icon: 'clear-day'
precipIntensity: 0
precipProbability: 0
temperature: 82.3
apparentTemperature: 84.07
dewPoint: 64.92
windSpeed: 9.07
windBearing: 357
cloudCover: 0.19
humidity: 0.56
pressure: 1005.71
visibility: 10
ozone: 291.68

> now temperature humidity
temperature: 84.24
humidity: 0.49

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i now-forecast

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • joyrexus