terminal · July 2024
Checking the Weather with `curl`
Want to quickly check the weather from your terminal? With a simple curl command, you can see the weather for any location directly from your terminal, whether you're using Windows or Mac. Command…
Want to quickly check the weather from your terminal? With a simple curl command, you can see the weather for any location directly from your terminal, whether you're using Windows or Mac.
Command Example:
curl wttr.in/Boston
How It Works:
- The command reaches out to the
wttr.inweather service and pulls in the current weather data for the specified location (in this case, Boston). - Replace "Boston" with your desired location to check the weather in other places. For example:
curl wttr.in/NewYork
Just open your terminal and use the command!