Show weather temp as int
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 29 Jun 2018 22:24:38 +0000 (18:24 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 29 Jun 2018 22:24:38 +0000 (18:24 -0400)
bin/khatus_show

index ae9bf0f..f8d5dc6 100755 (executable)
@@ -253,7 +253,7 @@ else
     rm -f "$STATUS_FILE__ENERGY_NOTIFIED_BELLOW_HALF"
 fi
 
-weather="$(cat ~/var/run/metar-KJFK-decoded-temp-fahrenheit)°F"
+weather=$(awk 'NR == 1 {printf("%d°F", $1)}' ~/var/run/metar-KJFK-decoded-temp-fahrenheit)
 
 signal_last_msg_age=$(
     ls -lt --time-style=+%s $HOME/var/lib/signal/latest_message.json \
This page took 0.028309 seconds and 4 git commands to generate.