From 5138d33e0c0adb0c4d13977af047e375eee934d8 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Sun, 7 Jan 2024 15:18:29 +0200 Subject: initial commit --- wcli-query | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 wcli-query (limited to 'wcli-query') 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" -- cgit v1.2.3