Tool for reading your Tilt brewing hydrometer1 in python on a rasberry pi and send the data to a server.
- git clone https://github.com/atlefren/pytilt.git
- Install python-bluez:
sudo apt-get install python-bluez
- Make the bluetooth interface accessible witout being root:
sudo setcap cap_net_raw+eip /usr/bin/python2.7
- From the directory containing pytilt.py run
python pytilt.py
- edit pytilt.service, add your key and fix paths
- copy pytilt.service to /lib/systemd/system/
- sudo chmod 644 /lib/systemd/system/pytilt.service
- sudo systemctl daemon-reload
- sudo systemctl enable pytilt.service
- sudo reboot
The code in blescan-py is adapted from https://github.com/switchdoclabs/iBeacon-Scanner- The Tilt UUID-to-color mapping is taken from: https://github.com/tbryant/brewometer-nodejs Systemd-config here: http://www.raspberrypi-spy.co.uk/2015/10/how-to-autorun-a-python-script-on-boot-using-systemd/