Get weather info from the pista sensor
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 28 Jan 2022 14:12:11 +0000 (09:12 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 28 Jan 2022 14:12:11 +0000 (09:12 -0500)
home/lib/login_aliases.sh
home/lib/login_functions.sh

index 71fed9b..4f0fcbf 100644 (file)
@@ -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'
index 0fc9ef1..75cfd1d 100644 (file)
@@ -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
This page took 0.033864 seconds and 4 git commands to generate.