Loading...

bash-weather, weather report written in Bash

1,154 views

Loading...

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Mar 21, 2015

bash-weather [1] uses OpenWeatherMap [2] data to give you the current weather condition with big text and condition icon in ASCII art, plus a 3-day forecast on the bottom-left.

By default, without arguments, it will use your IP to determine your location, or you can use `-t` for city name and `-c` for country name. There is also a `-f` option for colored output screen (0:22)

[c] can change unit systems (c-f) (0:10) in the program, [q] to quit. It updates the data every minute.

It requests screen size 80x22+, and programs: bc, curl, grep, and tput.

23 files and nearly 1300 lines, if you like this kind of Bash program and would be a good time to throw some banana peels if you get a sunny day with bash-weather, you will definitely enjoy bash-gorillas [3] by the same author.

$$#

Got a message from the author about this program, which I already knew about, but unfortunately, it requires the grep to be configured with pcre support (Perl Compatible Regular Expressions). I didn't want to re-compile when I first discovered it. This time, I have another copy of grep with the support just for bash-weather to run.

I won't use this script, not because it's not good, although the startup time is a bit long for my patience. but I do have my own weather script, ww.py [4] -- shamelessly plugging in. It's not as glamorous as this Bash, however it shows all the information I want to see.

$$#

(0:05) -t london -c uk
(0:22) -f -t 'new york' -c us
(0:37) -f -t moscow -c ru

$$#

* git-797efebe26e9b8b5f4a0076bdc0cc1eb04e1f960 (2015-03-21)
* In Bash
* By István Szántai
* GPLv3

[1]: https://github.com/szantaii/bash-weather
[2]: http://openweathermap.org/
[3]: https://www.youtube.com/watch?v=EAbeS...
[4]: https://gist.github.com/livibetter/ef...

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...