bash-weather is a weather report and forecast script written in Bash.
bash-weather gets the computer's public IP address through DynDNS and uses geolocation (http://freegeoip.net/) to acquire its current location which is used to get weather condition and forecast from OpenWeatherMap.
Unlike other scripts on this site, bash-weather is hosted on GitHub:
Full README and documentation can be found on GitHub, however some basic information is available here as well.
- A terminal with a size of at least 80×22 (80 columns, 22 rows).
- bc (basic calculator) for floating point arithmetic. Can be found in the 'bc' package on major Linux distributions.
- curl command-line tool for getting data using HTTP protocol. cURL can be found in the 'curl' package on major Linux distributions.
- grep command-line tool used for parsing downloaded XML data. It can be found in the 'grep' package on major Linux distributions.
- tput for terminal handling. Can be found in different ncurses packages on Linux distributions.
Acquire and start bash-weather by entering the following commands in your terminal:
- git clone https://github.com/szantaii/bash-weather.git
- cd bash-weather
- bash bash-weather.sh