Socket
Book a DemoInstallSign in
Socket

darkskycli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

darkskycli

get the weather report from the dark sky api for anyplace, anytime from the CLI

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

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.

Keywords

weather

FAQs

Package last updated on 11 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.