🌤️ Check the Weather Like a Hacker: How I Made My Own Command Line Forecast Tool!



Hey there! 👋

Ever felt like checking the weather but didn’t want to open a browser, type in a website? 🙄

Well, guess what? You can check the weather right from your Command Prompt in a clean, geeky way — and it takes just one line of code!

I wrote a tiny Windows batch script to get live weather info straight from the terminal. Here's what it looks like:

@echo off
curl wttr.in/Kolkata
pause

🛠️ What This Script Does

  • @echo off: Hides the command echo to keep things clean.
  • curl wttr.in/Kolkata: Uses the free service wttr.in to get weather info for Kolkata.
  • pause: Keeps the window open so you can read the forecast

You can replace Kolkata with any city — like New York, London.

Want to make it even easier? Save the script as a .bat file like weather.bat and double-click it anytime you want a quick forecast!

Post a Comment

0 Comments