now-forecast
v0.1.0
Published
Get current weather conditions via forecast.io
Downloads
3
Readme
Now
Get current weather conditions via forecast.io.
Setup
Download or clone.
Specify your forecast.io api key and location coordinates in
config.json
.Use
npm -g install
to install dependencies and thenow
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