There are many ways to Get Weather Reports From Command Line: the web is full of weather resources, every iPhone, Apple Watch, and smartphone has a weather app, Siri can tell you the weather, and on a Mac, you can even get the current weather from the menu bar or Spotlight.
But for people who use the command line, none of these options are great because they require leaving the command line and the task at hand. With an interesting way to use the finger utility, you can quickly get a weather report and forecast for almost any city in the world, right from the command line.
With this trick, you can see the day’s forecasted temperature (in celsius), the direction and speed of the wind, the type of precipitation (rain, snow, sleet, etc.), the amount of precipitation, and more. This works with any command line that has the finger tool. It doesn’t matter if you’re using Mac OS X, Linux, BSD, or Windows.
How to Get Weather Reports From Command Line
Now, let’s look at how to use the wttr.in utility and the curl command to check the weather from the command line. The wttr.in website is a web interface for an app called Wego. Wego is a command-line tool that shows weather information for a given location. Since wttr.in is a web-based utility, neither it nor any other utilities need to be installed. Using wttr.in and curl, we can quickly get weather information from the command line or a web browser.
- You can even get a particular region weather details. For example, to display the weather details of Erode, a small district in Tamilnadu state, India, run
- Replace “Erode” with your home town name to get the weather details. This command should work on almost all Linux and Unix operating systems.
- You can also use domain name prefixed with ‘@’ as a location specification.
- we know a particular Airport code. Can I able to get the weather details of that region? Yes!! For example, New Delhi Indira Gandhi International Airport code is DEL.
- It is also possible to get weather details if you know any region’s zip code. For example, New York are a code is 10001. So, just run the following command to display the weather information of New York city.
- Can we get the same details in a web browser? Of course, yes! Open up your web browser, and navigate to http://wttr.in/ in the address bar.
FAQs
Easily open Command Prompt by running Windows Run by holding the Windows button and hitting the R button on your keyboard. You can then type “cmd” and press enter, opening Command Prompt. If you’re unsure of what commands to use, you can type “Help” into Command Prompt.
Step 1: Type Command Prompt in the search bar and right-click it to choose Run as an administrator. Step 2: In the open CMD, input the command to check services running in Windows: net start. Then hit Enter button and the CMD will display a list of the running Windows services for you.
The netstat command generates displays that show network status and protocol statistics. You can display the status of TCP and UDP endpoints in table format, routing table information, and interface information. netstat displays various types of network data depending on the command line option selected.