
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
wunderground-cli
Advanced tools

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.
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.
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
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
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
Alerts are still work in progress. To try it out, use the following command:
weather alert 1
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.
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!
FAQs
A Command line tool for wunderground.com
We found that wunderground-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.