New instructions updated March 11, 2022 for building Tilt Pi on Raspberry Pi OS (Legacy) released January 28, 2022. Feel free to contact us at email@example.com for feedback or any questions.
Looking for the pre-built disk image? Skip these steps and download our updated SD card image here: https://tilthydrometer.com/products/tilt-pi-v2-buster-jan22-raspberry-pi-sd-card-image-download or download our HDMI version that will automatically boot into the RPi desktop and launch the Tilt Pi dashboard: https://tilthydrometer.com/products/tilt-pi-v-2-buster-jan22-hdmi-rpi-sd-card-image-download-for-use-with-hdmi-port
Using SSH from another computer or from the Raspberry Pi terminal, enter the following commands.
Update Raspbian packages and install python install utility, "python3-distutils".
sudo apt-get update
sudo apt-get install python3-distutils
Get the “aioblescan” bluetooth scanner module customized with Tilt plugin, unzip downloaded file, go to install folder, and install. Once you complete this step, you can run the command "sudo python3 -u -m aioblescan -T" to verify Tilt scanner is working. Make sure Tilt is nearby and floating if doing the test. Use "ctrl-c" to stop scanning.
sudo -H python3 setup.py install
Install node-red update script for Raspberry Pi using node-red version that works with Google Sheets web apps (this install script installs version 0.18.4 which allows following redirects of http POST requests).
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --confirm-pi --nodered-version="0.18.4" --node12
Install dashboard ui node v2.15.5 globally for node-red and enable auto-start of node-red at boot.
sudo -H npm install firstname.lastname@example.org -g
sudo systemctl enable nodered.service
Reboot to start node-red on boot.
Download Tilt Pi app (node-red “flow”) that uses the Aioblescan module
wget -O /home/pi/flow.json https://raw.githubusercontent.com/baronbrew/TILTpi/Aioblescan/flow.json
Run downloaded Tilt Pi app/flow in node-red:
curl -X POST http://localhost:1880/flows -H "Content-Type: application/json" -H "Node-RED-Deployment-Type: nodes" --data "@/home/pi/flow.json"
In a web browser visit
http://localhost:1880/ui (if not using SSH to install). If this doesn't work, you may need to find the IP address of your Raspberry Pi and go to
X.X.X.X is your Raspberry Pi's IP address.