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