weather - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
weather (214B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 [ -z "$1" ] && { | |
4 printf 'usage: %s <location>\n' "${0##*/}" >&2 | |
5 exit 1 | |
6 } | |
7 | |
8 location=$(printf %s "$1" | sed 's, ,\%20,g') | |
9 curl -sfm 10 --globoff "https://wttr.in/$location?format=%C+%t+%h+%w+%T\… |