Terminal Weather
Weather in terminal.
So I was watching a video by Luke Smith today in which he showcased a neat thing you can do in the terminal that I had no idea existed.
wttr.in is a weather service that displays in an ASCII format with a simple curl command.
$ curl wttr.in/London
Produces the following:
Very simple and fast.
Script.
I made a quick shell script (if you can even call it that) for personal use on my machines named weather
by using a text editor, in my case vim.
#!/bin/sh
curl wttr.in/London
Make it executable and move it to /usr/bin/
with
$ chmod +x weather
$ sudo mv weather /usr/bin/
Job done. Just typing weather
gives me a forecast right in the terminal.
For a rundown on other features of the program click here or run
$ curl wttr.in/:help