🍺 BrewKegs Instructions
Setup guide for BrewKegs, iSpindel fermentation monitoring and Raspberry Pi KegScales.
🏠 Home 🍺 Manage iSpindels ⚖️ Manage KegScales 📜 Live Keg Dashboard
1. BrewKegs Overview
BrewKegs tracks a beer from fermentation through to the final pint. The normal workflow is:
- Start a new brew using Beer Brews.
- Monitor fermentation using an iSpindel.
- Capture or enter Original Gravity and Final Gravity.
- Transfer the finished brew to a keg.
- Use KegScales to measure beer remaining by weight.
- View live beer level, pints left and brew details on the Live Keg Dashboard.
2. iSpindel Setup
- Go to Manage iSpindels.
- Add a new iSpindel device.
- Copy the generated receiver details into your iSpindel configuration.
- The iSpindel should send readings to your BrewKegs receiver.
- Once readings arrive, use Beer Brews to start a new brew.
Tip: The iSpindel interval can be 300, 600 or 900 seconds. BrewKegs updates when the iSpindel sends a reading.
3. Starting a New Brew
- Open Beer Brews.
- Select the correct iSpindel.
- Press Start New Brew.
- Enter the brew name, start date and Original Gravity.
- Choose either Beer Kit or Ingredients / Recipe.
- Save the brew.
During fermentation, BrewKegs will display live gravity, temperature, battery, tilt angle, ABV and attenuation.
4. Transferring a Brew to a Keg
When fermentation is finished, use the Transfer To Keg section in Beer Brews.
- Enter or capture the Final Gravity.
- Select the keg, for example Keg 1.
- Enter the transferred volume, for example 22.60 litres.
- Enter priming sugar if used.
- Select the status after transfer, for example Conditioning or Ready.
- Press Transfer To Keg.
This links the brew to the keg using transferred_keg_id. KegScales can then use the brew Final Gravity to calculate beer left more accurately.
5. KegScales Hardware
KegScales uses a Raspberry Pi, HX711 amplifier and load cells/strain resistors.
| HX711 | Raspberry Pi |
| VCC | 3.3V recommended |
| GND | GND |
| DT | GPIO 5 |
| SCK | GPIO 6 |
Important: Raspberry Pi GPIO pins are 3.3V. If powering the HX711 from 5V, ensure the data line is safe for the Pi. Using 3.3V is safer.
6. KegScales Raspberry Pi Setup
The Pi runs a local web app, normally available at:
http://kegscales.local:5000
or
http://your-pi-ip:5000
The Pi should be configured to auto-start with systemd, so you should not need to SSH in after setup.
Pi Web Pages
- Home - live weight, beer left and current keg.
- Setup - BrewKegs API details and device token.
- Kegs - select which keg is on the scale and store empty keg weight.
- Calibrate - zero scale and adjust calibration factor.
7. Adding a KegScales Device in BrewKegs
- Open Manage KegScales in BrewKegs.
- Press Add KegScales Device.
- BrewKegs shows the device details.
Use the same style as iSpindel setup:
| Setting | Value |
| Web Address | http://api.brewkegs.co.uk |
| Path / URL | kegscale_receiver.php |
| Kegs Path / URL | kegscale_kegs.php |
| Token | The generated BrewKegs KegScales token/code |
Enter these values on the Raspberry Pi KegScales Setup page and press Connect to BrewKegs.
8. Empty Keg Weights
Each keg can have its own saved empty weight.
- Open the Pi KegScales page.
- Go to Kegs.
- Select the keg currently on the scale, for example Keg 1.
- Put the empty keg on the scale.
- Press Use Current Weight as Empty Keg Weight.
Good news: You do not need to zero every time you swap kegs. Save each keg's empty weight once. When you select Keg 1, Keg 2, Keg 3, etc., the Pi remembers that keg's own empty weight.
If you repaint a keg, change fittings, add labels or change the disconnects, repeat the empty weight capture for that keg.
9. Calibration
Calibration makes the scale match a known weight.
- Remove all weight from the scale.
- Open Calibrate on the Pi.
- Press Zero Scale Using Current Reading.
- Place a known weight on the scale.
- Adjust or calculate the factor until the displayed weight matches.
For best results, calibrate close to the real working range. A full keg around 20-25kg is better than a small 1kg test weight.
10. Beer Left Calculation
KegScales measures weight. BrewKegs converts the beer weight into litres.
Beer weight = Gross weight - Empty keg weight
Beer litres = Beer weight / Final Gravity
Example:
Beer weight: 22.758 kg
Final Gravity: 1.007
Beer left: 22.758 / 1.007 = 22.60 litres
This is why transferring the brew to the correct keg and saving the Final Gravity is important.
11. Live Keg Dashboard
The Live Keg Dashboard shows:
- Keg name / number.
- Brew name.
- Beer left in litres.
- Pints left.
- Beer level percentage.
- Final Gravity.
- ABV.
- Status.
- Last seen time.
The page refreshes every 60 seconds. Future versions can use AJAX for smoother live updates.
12. Reboot and Shutdown
The Pi KegScales home page has:
- Reboot Raspberry Pi
- Shutdown Raspberry Pi
After pressing shutdown, wait for the green activity LED to stop flashing before removing power.
13. Troubleshooting
| Problem | Check |
| Pi page does not load | Check Pi IP address and that the KegScales service is running. |
| Weight is wrong | Re-zero and recalibrate using a known weight. |
| Beer left is wrong | Check empty keg weight, selected keg, transferred brew and Final Gravity. |
| Brew name missing | Make sure the brew has been transferred to the keg. |
| Device offline | Check Pi power, Wi-Fi and API settings. |
| Wrong time | Database stores UTC; display pages should convert to UK local time. |
14. Recommended Workflow
- Start new brew with iSpindel.
- Ferment as normal.
- Capture Final Gravity.
- Transfer brew to Keg 1, Keg 2 etc.
- Put empty keg on KegScales and save empty weight if not already saved.
- Fill keg.
- Open Live Keg Dashboard to view beer left.