Project to programatically interact with a Thermoworks BlueTherm thermomoter.
Today this thing (sort of) does:
- Can request and interpret data from the BlueTherm
- Assumes BT connection and serial port is managed externally
Someday this thing may (or may not):
- Automatically connect to any paired BT device
- Continuously record temperature data
- Provide a web interface to view recorded and near real-time data
- Start with a working, configured copy of Raspbian
- ssh into the pi,
sudo mkdir -p /var/www
,cd /var/www
,sudo git clone <THIS REPO>
,cd pi-b-q
sudo pi_config/install.sh
This takes eons; go get a beer.- Make sure you've got a working Bluetooth adapter, then use hcitool and bluetooth-agent to pair your BT
- Update /etc/bluetooth/rfcomm.conf to map the BT to /dev/rfcomm0
- Restart the bluetooth stack:
sudo /etc/init.d/bluetooth restart
Now you can pop open a rails console and send and receive packets!
rvmsudo rails c
(use sudo because permissions are hard)serial = SerialPort.new('/dev/rfcomm0')
conn = BlueTherm::SerialConnection.new(serial)
response = conn.send(BlueTherm::Packet.default)
hcitool scan
shows all bluetooth devices in range; use this to get IDbluetooth-agent 1234 <ID>
should pair the device