From: Siraaj Khandkar Date: Fri, 29 Jun 2018 22:24:38 +0000 (-0400) Subject: Show weather temp as int X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=3de5d938bea1b1fb5149657a57df1baba94a0ee3;p=khatus.git Show weather temp as int --- diff --git a/bin/khatus_show b/bin/khatus_show index ae9bf0f..f8d5dc6 100755 --- a/bin/khatus_show +++ b/bin/khatus_show @@ -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 \