darkskycli v1.0.6
Welcome to Dark Sky CLI!
Check the weather for anytime, anywhere right from your terminal.
First add the package,
npm -i darkskycli
Secondly find where the package is installed, on a mac with node installed via Homebrew this will be /usr/local/lib/node_modules. Rename .env.example to .env, adding the api keys for Google (geolocation) and Dark Sky (weather api). Save the file and you're good to go.
Run from the command line parsing options,
weather in Paris today
weather -p paris
weather in Paris at Christmas
weather -p paris -d 25dec2018
weather in Barcelona for New Years in Catalan ?
weather -p Barcelona -d 01jan2019 -l ca
need help ?
weather -h
Units are automatically set based on geographic location, set to us for imperial, si for metric or uk2 if you like your temperature in celcius but your distance in miles.
Language defaults to English and accepts most ISO 639-1 two letter language codes.
For full details visit the Dark Sky API docs.