Created
February 22, 2016 10:05
-
-
Save manuelgu/c4af57bc213f0c961065 to your computer and use it in GitHub Desktop.
Get weather data for your home town in real-time to the terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
# Clear the screen | |
clear | |
# Hide the cursor | |
tput civis | |
# Fetch data and replace last line for aesthetics | |
curl -4 -s wttr.in/ham | sed '$d' | |
# Wait 10 seconds | |
sleep 10 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment