npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

wunderground-cli

v0.3.2

Published

A Command line tool for wunderground.com

Downloads

9

Readme

Wunderground CLI

npm npm Travis

picture

Wunderground CLI is a command line tool for accessing weather data from wunderground.com. It can store multiple cities and show the current weather und forecast of eiter one or all cities.

Installation

Since the application is written for node.js installing is pretty forward. You should install it globally, so you can use the CLI:

npm install wunderground-cli -g

After installing the app, please register at wunderground.com and set up an API key here. You can get 500 API calls per day and 10 API calls per minute for free. Copy the API key and save it with the following command:

weather init [apikey]

That's it! You're ready to get some weather data.

Usage

Adding cities

Adding one or more cities is pretty easy. If you want to add Tokyoto your list, please enter this command:

weather add Tokyo

The application will search for the city and ask you to choose the right city if there is more than one. If the name of the city consists of more than one word, please enter it in quotation marks:

weather add "New York"

If you want to see which cities you've already stored, use this command:

weather list

Retrieving the weather

When you're set up, you can retrieve the weather of the first city (possibly your home town) from the list at any time:

weather now

Please note: Due to restrictions of the free plan of the Wunderground API it is no longer possible to show the data of all cities at the same time.

If you want to see the weather of another city, get the ID from weather list and input:

weather now 1

Getting the forecast

If you want to look up the forecast for the next days, you can simply call:

weather forecast

This will show all saved cities with a 3 day forecast. If you put the ID from weather list behind, you can select the city. In this case the full 10 day forecast will be shown. If you want to get more or less days, you can always use the option --days.

weather forecast 1 --days 5

Getting Alerts

Alerts are still work in progress. To try it out, use the following command:

weather alert 1

Settings

If you want to change the temperature scale (Fahrenheit or Celsius) or the system of measurement (Imperial or Metric), you should type:

weather settings

...and follow the instructions. It will be saved globally.

Roadmap

  • [x] Store the API key in a config file
  • [x] Confirm cities with a free API call and store them in a config file
  • [x] Remove cities from the config file
  • [x] List all added cities in a list
  • [x] Read weather data from one or all added cities
  • [x] Get forecast of one or all added cities
  • [x] Get imperial or metric units and temperature in Fahrenheit or Celsius
  • [x] Format date and time better
  • [x] Switch units and temperature scales quickly with global options
  • [ ] Ask if it's raining soon
  • [ ] Ask if any weather warnings are in your area.

License & Contribution

This software is licensed under the MIT License.

Since I'm new to node.js and asynchronous JavaScript programming and this is actually my first attempt I will be glad for any hints and best practices. Feel free to contact me or contribute with a fork of this project!