diff options
Diffstat (limited to 'wcli-query')
-rwxr-xr-x | wcli-query | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wcli-query b/wcli-query new file mode 100755 index 0000000..109723f --- /dev/null +++ b/wcli-query @@ -0,0 +1,9 @@ +#!/bin/sh + +dir="$HOME/.local/share/wcli" +file="$dir/$(date +info_%F_%H-%M.json)" +country="" + +mkdir -p "$dir" || exit 1 +curl "wttr.in/${country}?format=j1" -o "$file" || exit 1 +wcli-gen "$file" |