Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


============ DEPENDENCIES ============


sudo apt-get install 
    python-pexpect python-sqlite libdbus-1-dev 
    libusb-1.0-0-dev libusb-dev libudev-dev 
    libical-dev build-essential libglib2.0-dev

mkdir -p ~/bluez/install
cd ~/bluez
xz -d bluez-5.7.tar.gz
tar -xf bluez-5.7.tar
cd bluez-5.7
./configure --prefix=~/bluez/install --with-systemdsystemunitdir=/lib/systemd/system
sudo make install

echo "export PATH=$PATH:~/bluez/install/bin:~/bluez/bluez-5.7/attrib" >> ~/.profile

sudo ln -s /home/pi/bluez/install/bin/hcitool /usr/local/bin/hcitool
sudo ln -s /home/pi/bluez/install/bin/hciconfig /usr/local/bin/hciconfig
sudo ln -s /home/pi/bluez/bluez-5.7/attrib/gatttool /usr/local/bin/gatttool

logout then log back in

============ INSTRUCTIONS ============

Download the latest version of the project and make the log directory.

git clone
cd exercisetracker
mkdir log

then do the following:

1) Plugin BLE USB adapter.
2) sudo hcitool lescan 
3) Add each SensorTag address to sensor/SENSORS
4) sudo python
5) Push the side button on each sensor tag. 
6) Select 'e' to enable data collection.
7) Press 'q' to stop data collection.

## If you need to reset the BLE adpater then do the following:
sudo /home/pi/bluez/install/bin/./hciconfig hci0 reset

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.