Browse Source

Moved something to somewhere... goodnight...

master
Cian Butler 3 years ago
parent
commit
84dd762021
Signed by: butlerx GPG Key ID: B37CA765BAA89170
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      wttr-dashboard

+ 18
- 0
wttr-dashboard View File

@@ -0,0 +1,18 @@
#!/usr/bin/env sh
set -eo pipefail

interval=120
if [ -z "$1" ]; then
interval="$1"
fi

weather() {
clear
curl -H "Accept-Language: ${LANG%_*}" --silent wttr.in/"$1" 2>&1
sleep "$interval"
}

while true; do
weather dublin
weather moon
done

Loading…
Cancel
Save