0.2.1 • Published 6 years ago

@corderophilosophy/weather-cli v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

weather-cli

fetch current weather by zip-code from the command line.

under the hood

uses the dark sky api, google geocode api, and chalk (for colored output).

usage

npm i -g @corderophilosophy/weather-cli

edit config.js to add your own api keys and set temperature and chance of precipitation thresholds.

temp_threshold > current_temp prints blue

temp_threshold < current_temp prints red

precip_threshold > precip_probability prints yellow

precip_threshold < precip_probability prints cyan

once you're all set:

weather-cli 90210 // fetch weather for zip-code 90210

to search by something other than 5-digit zip, wrap address in quotes:

weather-cli "123 Fake St, Place, BiggerPlace"