commit ac86e52f869e98db5901a7146c40dee34d006d5f from: mischa date: Fri Dec 27 14:47:49 2019 UTC added query to second bridge commit - 9e17dec64a26fa93c6d521c1094ca531a1f79168 commit + ac86e52f869e98db5901a7146c40dee34d006d5f blob - fd6207af09fd2a71704cc431a0ea2fccfdab4cf4 blob + d1ef08f212a87a18d300668b1ac11c1a0ae6c79e --- wrapper-sensors-battery.sh +++ wrapper-sensors-battery.sh @@ -6,7 +6,11 @@ PATH=$PATH:/usr/local/bin # @daily //wrapper-sensors-battery.sh # result=$(/home/mischa/hue/get-sensors.py $(cat /home/mischa/hue-bridge) $(cat /home/mischa/hue-token) -b 20) +result2=$(/home/mischa/hue/get-sensors.py $(cat /home/mischa/hue-bridge2) $(cat /home/mischa/hue-token2) -b 20) -if [ -n "$result" ]; then - echo "${result}" | mail -s "Hue Battery Status" $(cat /home/mischa/hue-email) +if [[ -n "$result" ]]; then + echo "${result}" | mail -s "Hue Battery Status $(cat /home/mischa/hue-bridge)" $(cat /home/mischa/hue-email) fi +if [[ -n "$result2" ]]; then + echo "${result2}" | mail -s "Hue Battery Status $(cat /home/mischa/hue-bridge2)" $(cat /home/mischa/hue-email) +fi