From: Siraaj Khandkar Date: Fri, 28 Jan 2022 14:12:11 +0000 (-0500) Subject: Get weather info from the pista sensor X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=71ce30e23a8c3093aa9c488b8f3c528b0996678d;p=khome.git Get weather info from the pista sensor --- 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