https://github.com/david-lev/termux-weather
A simple bash script that displays the weather in the terminal based on the user's location | Work's better on Termux
https://github.com/david-lev/termux-weather
terminal-based termux weather
Last synced: about 1 month ago
JSON representation
A simple bash script that displays the weather in the terminal based on the user's location | Work's better on Termux
- Host: GitHub
- URL: https://github.com/david-lev/termux-weather
- Owner: david-lev
- License: mit
- Created: 2021-09-26T11:38:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-26T17:47:25.000Z (over 4 years ago)
- Last Synced: 2025-01-27T12:28:07.015Z (over 1 year ago)
- Topics: terminal-based, termux, weather
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Termux-weather ⛅
### Using the following script you can get the weather directly to your terminal based on your location!

---
Run the folowing command on your terminal:
```bash
bash <(curl -Ls bit.ly/termux-weather)
```
Or (No Redirecting):
```bash
bash <(curl -s https://raw.githubusercontent.com/david-lev/termux-weather/main/termux-weather.sh)
```
- The requierments are: `termux-api`, `curl`, and `jq`.
---
The script accesses the device location using the [Termux-api](https://wiki.termux.com/wiki/Termux:API) package. The [timeout variable](https://github.com/david-lev/termux-weather/blob/main/termux-weather.sh#L11) that appears at the beginning of the script indicates the time that the script will wait for the device to respond. It will then be possible to manually type a city name or use the IP address (inaccurate location) to get the coordinates.