From 71ce30e23a8c3093aa9c488b8f3c528b0996678d Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 28 Jan 2022 09:12:11 -0500 Subject: [PATCH] Get weather info from the pista sensor --- home/lib/login_aliases.sh | 1 + home/lib/login_functions.sh | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/home/lib/login_aliases.sh b/home/lib/login_aliases.sh index 71fed9b..4f0fcbf 100644 --- a/home/lib/login_aliases.sh +++ b/home/lib/login_aliases.sh @@ -24,3 +24,4 @@ alias bookmarks='cd ~/doc/bookmarks && vim bookmarks.md' alias ideas='cd ~/doc/ideas && vim ideas.md' alias quotes='cd ~/doc/quotations && vim quotations.md' alias bitcoin='nc ticker.bitcointicker.co 10080' # https://github.com/chubin/awesome-console-services#Money +alias weather='cat ~/.pista-out/weather-summary' diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 0fc9ef1..75cfd1d 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -384,15 +384,6 @@ note() { vim -c 'set spell' "$DIR_NOTES/$(date +'%Y_%m_%d--%H_%M_%S%z')--$1.md" } -weather() { - local _weather_location - case "$1" in - '') _weather_location="$WEATHER_LOCATION";; - *) _weather_location="$1" - esac - curl "http://wttr.in/$_weather_location?format=v2" -} - _bt_devs_infos() { # grep's defintion of a line does not include \r, wile awk's does and # which bluetoothctl outputs -- 2.20.1