Tool for reading your Tilt brewing hydrometer in python on a rasberry pi and send the data to a server.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE Init Mar 12, 2017
blescan.py Init Mar 12, 2017
pytilt.py handle duplicates Mar 12, 2017
pytilt.service fix systemd-file Mar 12, 2017
readme.md update readme: sudu no longer needed to run pytilt.py May 3, 2017
sender.py do not store unsent messages forever Mar 12, 2017

readme.md

Pytilt

Tool for reading your Tilt brewing hydrometer1 in python on a rasberry pi and send the data to a server.

Installation

  1. git clone https://github.com/atlefren/pytilt.git
  2. Install pyhton-bluez: sudo apt-get install python-bluez
  3. Make the bluetooth interface accessible witout being root: sudo setcap cap_net_raw+eip /usr/bin/python2.7

Running

  1. From the directory containing pytilt.py run python pytilt.py

Running Pytilt in the background and on System Start

  1. edit pytilt.service, add your key and fix paths
  2. copy pytilt.service to /lib/systemd/system/
  3. sudo chmod 644 /lib/systemd/system/pytilt.service
  4. sudo systemctl daemon-reload
  5. sudo systemctl enable pytilt.service
  6. sudo reboot

Acknowledgements

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/