weather-cli
A simple weather CLI in Go.
- Go
- CLI
- COMMITS
- 9
- FIRST
- Oct 2024
- LAST
- Oct 2024
- ACTIVE MONTHS
- 1
CLI tool to check weather using Golang
bash
git clone https://github.com/e-for-eshaan/weather-cli.git sun && cd sun && go mod tidy && touch .env && code .envPaste your weather-api key in the .env (get one from https://www.weatherapi.com/)
text
WEATHER_API_KEY=<API_KEY>Save and close .env
In the sun folder's terminal, run:
bash
go build && sudo mv sun /usr/local/binUsage
Get weather of location:
bash
# sun <location>
sun londonGet weather forecast with skips:
bash
# sun <location> <skip-hours>
sun london 6Get weather forecast with skips for n days
bash
# sun <location> <skip-hours> <days>
# forecast for 7 days, with 3 hour skips
sun london 3 7 HEAD · 527ca600 FOLDERS · 7 FILES
- .gitignorecreates a CLI tool for checking weather directtly on terminalOct 2024
- go.modfixed region issueOct 2024
- go.sumcreates a CLI tool for checking weather directtly on terminalOct 2024
- main.goadds a makefile that automatically adds this to pathOct 2024
- Makefileadds a makefile that automatically adds this to pathOct 2024
- README.mdUpdate README.mdOct 2024
- response.jsoncreates a CLI tool for checking weather directtly on terminalOct 2024
Showing the top two levels. Files aren't browsable: this is a portfolio, not a mirror.
9 COMMITS · 1 AUTHOR
SAT, OCT 12 20242 COMMITS
- 527ca60adds a makefile that automatically adds this to pathEYOct 2024Oct 2024
- 96185f3fixed region issueEYOct 2024Oct 2024
FRI, OCT 11 20247 COMMITS
- dd7c322Update README.mdEYOct 2024Oct 2024
- 3bee4ffUpdate README.mdEYOct 2024Oct 2024
- be96cebUpdate README.mdEYOct 2024Oct 2024
- 2650ef7Update README.mdEYOct 2024Oct 2024
- e371e04adds readmeEYOct 2024Oct 2024
- b35688eremoves binaryEYOct 2024Oct 2024
- ca5c7dacreates a CLI tool for checking weather directtly on terminalEYOct 2024Oct 2024
That's every commit.