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 (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\n"