A nifty weather app in your terminal.
- get a free mapquest geocoding API key and forecast API key
- assign them to the
mapquest_key&&forecast_keyvariables in theconfig.jsfile. - run
$ npm install
-
-l:Location to display forecast for. Defaults to auto location based off your ip address -
-d:Days of forecast to display -
-h:Hours of forecast to display -
-u:Unit system used. Defaults to si. options are us, si, uk2, ca. see forecast.io -
--ignore_alerts:Don't show alerts if any. Defaults to false
# show current weather for your location based on your ip address
$ weather
# current weather for stockholm sweden
$ weather 'stockholm sweden'
# show current weather for stockholm without alerts and 4 days' forecast for stockholm
$ weather -l 'stockholm sweden' -d 4 --ignore_alerts
# current weather for your location plus forecast for the next 3 hours and 4 days
$ weather -d 4 -h 3 -u uspull requests very welcome!
