Skip to content

Allow weather-fetch to accept an optional city parameter#221

Open
rizzesh wants to merge 1 commit into
iiitl:masterfrom
rizzesh:fix-weather-fetch-script
Open

Allow weather-fetch to accept an optional city parameter#221
rizzesh wants to merge 1 commit into
iiitl:masterfrom
rizzesh:fix-weather-fetch-script

Conversation

@rizzesh

@rizzesh rizzesh commented Apr 12, 2026

Copy link
Copy Markdown

Which Issue Does This Fix?
Allow weather-fetch to accept an optional city parameter

Steps Taken To Fix It
I assigned the first positional parameter $1 to the CITY variable, allowing the curl command to fetch weather for a specific city or default to the local IP if left blank.

Testing
Did you test your script locally according to the README.md instructions?

[✅] Yes! The script runs without errors and performs the expected action.
General Checklist
[✅] I have followed the instructions in CONTRIBUTING.md.
[✅] The name of the PR explains what I changed.G.md`.

The name of the PR explains what I changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant