Hi, I am trying to get the weather data from my RT but the program takes a very long time to complete. What can I do to speed it up please?
#!/bin/bash
PYTHON=/usr/bin/python
ROOT=/root/Scripts
FILE=$ROOT/LocalTemps
MAC=E9:A4:EF:14:A2:72
cd $ROOT
$FILE.txt
RAW=$(python /root/.local/lib/python2.7/site-packages/ruuvitag_sensor -lg $MAC 2>&1)
echo $RAW | tr , ‘\n’ | tr -d ':} | egrep -e ‘pressure|temperature|humidity’ | awk ‘{$1=$1}1’ >> $FILE.txt
I get a lot of these in /var/log/syslog:
Bluetooth: hci0 command 0x0c16 tx timeout