jmtrevaskis

home automation - temperature script

Nov 18th, 2011
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. /usr/bin/temper > /tmp/currtemp1.txt 2>&1&
  2. sleep 0.5
  3. killall -9 temper
  4. currtemp=`cat /tmp/currtemp1.txt | grep temperature | awk -F " " '{ print $5 }' | sed 's/\(.*\)...../\1/'`
  5. /etc/heyu/bin/announce "the current temperature in the house is $currtemp"
  6. rm -f /tmp/currtemp1.txt
Add Comment
Please, Sign In to add comment