A simple command-line weather application for Windows. It fetches weather data using curl from wttr.in and supports city selection, units, language, and saving reports.
From the main menu, select R to view a summary of this README directly in the console. For more details, you can also select H for help.
Want to help improve this app? Contributions are welcome! One area for enhancement is making the app able to switch colors while running, not just on restart. If you have ideas or code for this, feel free to submit a pull request or open an issue.
:CHANGE_COLOR
cls
echo ================================
echo Supported Colors
echo ================================
echo 0 = Black 8 = Gray
echo 1 = Blue 9 = Light Blue
echo 2 = Green A = Light Green
echo 3 = Aqua B = Light Aqua
echo 4 = Red C = Light Red
echo 5 = Purple D = Light Purple
echo 6 = Yellow E = Light Yellow
echo 7 = White F = Bright White
echo.
echo Example: 0A = black background, light green text
echo.
set /p NEWCOLOR=Enter new color code (e.g., 0A):
color %NEWCOLOR%
echo Color changed! Restarting app...
timeout /t 1 >nul
call "%~f0"
exit /b
You can use or improve this code to let users change the color scheme dynamically.
- 🌤️ Quick weather summary and 3-day forecast
- 🏙️ Choose or set default city
- 🔄 Toggle between metric and imperial units
- 🌐 Set language for weather output
- 💾 Save last weather report to a file
- 🚪 Exit submenu for safe quitting
- 🪟 Windows (Tested on Windows 11)
- 📦
curlinstalled and available in PATH
- Double-click
weather-application.bator run it from a command prompt. - Follow the on-screen menu to:
- 🌤️ View weather summary or forecast
- 🏙️ Change city, units, or language
- 💾 Save reports
- 🚪 Exit the app safely
- The app stores your default city, units, and language in
weather.cfg(auto-created). - Last weather report is saved as
Last-weather-report.txt.
The app supports many languages for weather output. Use the language code when prompted (e.g., en for English, fr for French, de for German, etc.).
Fully Supported Languages:
| Code | Language |
|---|---|
| am | Amharic |
| ar | Arabic |
| af | Afrikaans |
| be | Belarusian |
| bn | Bengali |
| ca | Catalan |
| da | Danish |
| de | German |
| el | Greek |
| et | Estonian |
| fr | French |
| fa | Persian (Farsi) |
| gl | Galician |
| hi | Hindi |
| hu | Hungarian |
| ia | Interlingua |
| id | Indonesian |
| it | Italian |
| lt | Lithuanian |
| mg | Malagasy |
| nb | Norwegian Bokmål |
| nl | Dutch |
| oc | Occitan |
| pl | Polish |
| pt-br | Portuguese (Brazil) |
| ro | Romanian |
| ru | Russian |
| ta | Tamil |
| tr | Turkish |
| th | Thai |
| uk | Ukrainian |
| vi | Vietnamese |
| zh-cn | Chinese (Simplified) |
| zh-tw | Chinese (Traditional) |
| zh | Chinese |
| fi | Finnish |
| es | Spanish |
| cs | Czech |
| az | Azerbaijani |
| ko | Korean |
| pt | Portuguese |
| sv | Swedish |
| bg | Bulgarian |
| bs | Bosnian |
| ga | Irish |
| hr | Croatian |
| ja | Japanese |
| ka | Georgian |
| sr-lat | Serbian (Latin) |
| sr | Serbian |
| sl | Slovenian |
| uz | Uzbek |
Partial/In Progress: cy (Welsh), eo (Esperanto), eu (Basque), hy (Armenian), is (Icelandic), jv (Javanese), kk (Kazakh), ky (Kyrgyz), lv (Latvian), mk (Macedonian), ml (Malayalam), mr (Marathi), nl (Dutch), fy (Frisian), nn (Norwegian Nynorsk), sk (Slovak), sl (Slovenian), sw (Swahili), te (Telugu), zu (Zulu), he (Hebrew)
For the most up-to-date list, see wttr.in:help or lang-list.md.
To change the language, select the menu option to set language and enter a code from the list above.
You can check city-list.md for example city names and country codes.
The app supports almost every city worldwide—just use the format:
City,CountryCode
For example:
- London,UK
- New York,US
- Tokyo,JP
See city-list.md for more examples and popular cities by country.
- Select
0from the main menu to open the exit submenu. - In the exit menu, choose
0orqto exit, orbto return to the main menu.
===============================
Weather App
===============================
Default City: London,UK
Units : metric
===============================
1^ Quick Summary (one-liner)
2^ Full 3-day Forecast (detailed)
3^ Choose City for this lookup
4^ Set/Change Default City
5^ Toggle Units (metric/imperial)
6^ Save Last Report To File
7^ Set Language (e.g., en, fr, de)
0^ Exit (go to exit menu)
H^ Help (show this menu)
R^ Readme.md
===============================
Select an option (0-9):
MIT License