Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7452d848cThis file is pinned to the selected release. Download the original to open it in your design tool.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>HiveHub — ESP32 data collector for up to 16 beehives</title>
<meta name="description" content="HiveHub is an open-source ESP32 data collector for up to 16 beehives: weight, temperature, sound, vibration and power monitoring with a self-hosted FastAPI backend." />
<meta name="color-scheme" content="light dark" />
<!-- Set the theme before the stylesheet paints, so there's no light flash. -->
<script>
(function () {
try {
var t = localStorage.getItem("hivehub-theme");
if (t !== "dark" && t !== "light") {
t = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
}
document.documentElement.setAttribute("data-theme", t);
} catch (e) { /* localStorage blocked — fall back to the light default */ }
})();
</script>
<link rel="stylesheet" href="assets/style.css" />
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E%F0%9F%90%9D%3C/text%3E%3C/svg%3E" />
</head>
<body>
<header class="site-nav">
<div class="wrap">
<a class="brand" href="#top"><span class="logo">🐝</span> HiveHub</a>
<nav>
<a href="#features">Features</a>
<a href="#hardware">Hardware</a>
<a href="#setup">Setup</a>
<a href="build.html">Build your own</a>
<a href="dashboard-demo/">Dashboard demo</a>
<a href="insights.html">Insights</a>
<a href="configurator.html">Config tool</a>
<a href="https://github.com/MacNite/HiveHub">GitHub</a>
<button data-theme-toggle class="btn small ghost theme-toggle" type="button" aria-label="Toggle dark mode"></button>
</nav>
</div>
</header>
<a id="top"></a>
<section class="hero" style="border-top:none">
<div class="wrap">
<span class="badge">✅ All published PCBs are tested and working</span>
<h1>Collect data from up to 16 beehives.<br>Self-hosted. Open source.</h1>
<p class="lead">
HiveHub is an ESP32-based data collector for beehive sensors and scales. It
tracks weight, temperature, humidity, in-hive sound and vibration, and power
state for up to 16 hives per ESP32, and sends everything to your own
FastAPI + PostgreSQL backend.
</p>
<div class="cta">
<a class="btn" href="#setup">🚀 Get started</a>
<a class="btn ghost" href="dashboard-demo/">📊 Try the dashboard demo</a>
<a class="btn ghost" href="build.html">🔧 Build your own</a>
<a class="btn ghost" href="https://github.com/MacNite/HiveHub">★ Star on GitHub</a>
</div>
</div>
</section>
<section id="features">
<div class="wrap">
<h2>What it measures</h2>
<p class="sub">Up to 16 hives per ESP32. Every sensor below is optional and
compiled in per device — start with weight and add the rest as you build.</p>
<div class="grid">
<div class="card"><div class="ico">⚖️</div><h3>Up to 16 scales</h3><p>NAU7802 load-cell channels (I2C, with an optional TCA9548A mux on the breakout PCB) give each colony its own scale — up to 16 hives per ESP32.</p></div>
<div class="card"><div class="ico">🌡️</div><h3>Per-hive temperature</h3><p>DS18B20 probes on a shared 1-Wire bus, or an in-hive BLE sensor as an alternative source.</p></div>
<div class="card"><div class="ico">🔊</div><h3>In-hive sound</h3><p>Stereo INMP441 I2S microphones with per-band FFT energy to catch piping and stress.</p></div>
<div class="card"><div class="ico">📳</div><h3>Comb vibration</h3><p>An in-hive BLE sensor (e.g. HiveInside) captures the ~20 Hz pre-swarm signal microphones miss.</p></div>
<div class="card"><div class="ico">💧</div><h3>Ambient T & humidity</h3><p>An SHT4x on I2C records weather context alongside the hive readings.</p></div>
<div class="card"><div class="ico">🛰️</div><h3>Off-grid power telemetry</h3><p>Optional MAX17048 LiPo fuel-gauge data (voltage, state-of-charge, alerts) for unattended deployments.</p></div>
<div class="card"><div class="ico">📶</div><h3>BLE sensors</h3><p>Pair any BLE-Sensor (in-hive or BLE-Scale) — no extra wiring. <a href="device-support.html">See supported devices or request support for new devices</a></p></div>
<div class="card"><div class="ico">💾</div><h3>SD cache & backup</h3><p>Local buffering when uploads fail, plus an append-only persistent measurement backup.</p></div>
<div class="card"><div class="ico">🐝</div><h3>HiveTraffic ready</h3><p>Optional entrance traffic counting of incoming and outgoing bees over BLE/GATT.</p></div>
<div class="card"><div class="ico">🔑</div><h3>Claim-code pairing</h3><p>Claim devices from HivePal without touching the database — just a pairing code.</p></div>
<div class="card"><div class="ico">📡</div><h3>OTA & remote commands</h3><p>Over-the-air updates, remote calibration, reboot, Wi-Fi reset and config versioning.</p></div>
<div class="card"><div class="ico">🧠</div><h3>Rule-based insights</h3><p>The backend auto-evaluates weight, temperature, sound and vibration into colony insights.</p></div>
<div class="card"><div class="ico">📊</div><h3>Built-in dashboard</h3><p>An optional, login-free web dashboard served straight from the backend — charts, status, device configuration and OTA/calibration controls. <a href="dashboard-demo/">Try the demo →</a></p></div>
</div>
</div>
</section>
<section id="hardware">
<div class="wrap">
<h2>Hardware at a glance</h2>
<p class="sub">A mains-or-solar ESP32 board plus off-the-shelf modules on pin headers —
no SMD soldering required for the core build. All published PCBs are tested and working.</p>
<div class="grid">
<div class="card"><h3>Core (recommended)</h3><p>Seeed XIAO <strong>ESP32-C6</strong> on the <strong>Scale Module V0.4</strong> with off-the-shelf modules on pin headers: <strong>NAU7802</strong> load-cell ADC · <strong>MAX17048</strong> battery gauge · <strong>TPS63020</strong> buck-boost · <strong>TP4056</strong> USB-C charger · DS3231 RTC · microSD · SHT40 · DS18B20 probes · setup button · BLE in-hive sensors.</p></div>
<div class="card"><h3>Optional: up to 16 scales</h3><p>The <strong>NAU7802 breakout PCB</strong> adds a <strong>TCA9548A</strong> I2C mux with up to <strong>8× NAU7802</strong> — 16 scales in total per HiveHub.</p></div>
<div class="card"><h3>Optional off-grid</h3><p>CN3791 MPPT solar charger · 6 V solar panel · LiPo or 18650 pack — the MAX17048 reports the battery state with every measurement.</p></div>
</div>
<p style="margin-top:1.5rem">
The full build guide with BOM, prices, wiring and setup lives on the
<a href="build.html">Build your own</a> page; pin maps are in
<a href="https://github.com/MacNite/HiveHub/blob/main/docs/wiring.md">docs/wiring.md</a>.
</p>
</div>
</section>
<section id="setup">
<div class="wrap">
<h2>Set up your own HiveHub</h2>
<p class="sub">Five steps from clone to live data. The firmware is a PlatformIO project;
the backend is a Docker Compose stack. Building the hardware too? Start with the
<a href="build.html">full build guide</a>.</p>
<div class="steps">
<div class="step"><div class="n">1</div><div>
<h3>Get the code</h3>
<p>Clone the repository and open the firmware project in PlatformIO (VS Code extension or CLI).</p>
<pre>git clone https://github.com/MacNite/HiveHub.git
cd HiveHub</pre>
</div></div>
<div class="step"><div class="n">2</div><div>
<h3>Stand up the backend</h3>
<p>Bring up the FastAPI + PostgreSQL stack with Docker Compose. The API listens on port <code>31115</code>.</p>
<pre>cd docker
cp .env.example .env
# edit API_KEY, HIVEPAL_SERVICE_API_KEY, DB password, volumes
docker compose up -d</pre>
<p class="muted">See <a href="https://github.com/MacNite/HiveHub/blob/main/docs/docker-install.md">docker-install.md</a> or <a href="https://github.com/MacNite/HiveHub/blob/main/docs/truenas-install.md">truenas-install.md</a> for hosting details.</p>
</div></div>
<div class="step"><div class="n">3</div><div>
<h3>Configure the device</h3>
<p><strong>Recommended:</strong> configure the device from its on-device
<strong>provisioning portal</strong>. After flashing, hold the setup button to start the
HiveHub Wi-Fi access point, connect to it, and set Wi-Fi, backend, hives and sensors right
on the device. Those settings live in the device's storage and <strong>survive OTA updates</strong>.</p>
<p>Optionally pre-seed a brand-new device before first boot with the in-browser
<strong>config tool</strong> (it generates an optional <code>secrets.h</code>) — or skip it and
pair everything from the portal.</p>
<p><a class="btn" href="configurator.html">⚙️ Open the config tool</a></p>
<p class="muted">Manual route: <code>cp firmware/include/secrets.example.h firmware/include/secrets.h</code> and edit it.</p>
</div></div>
<div class="step"><div class="n">4</div><div>
<h3>Flash the firmware</h3>
<p>Drop your <code>secrets.h</code> into <code>firmware/include/</code>, then build and upload.</p>
<pre>cd firmware
pio run --target upload
pio device monitor # 115200 baud</pre>
</div></div>
<div class="step"><div class="n">5</div><div>
<h3>Claim & watch the data</h3>
<p>On first boot the device sends measurements with its claim code. Two ways to watch it:</p>
<p><strong>Built-in dashboard (no account):</strong> set <code>ENABLE_LOCAL_DASHBOARD=true</code>
and open <code>http://<your-host>:31115/dashboard</code> — a login-free web UI with
charts, status, OTA and calibration for a single-owner self-host
(<a href="dashboard-demo/">see the live demo</a>).</p>
<p><strong>HivePal (multi-user app):</strong> claim the device from
<a href="https://github.com/martinhrvn/hive-pal">HivePal</a> with
<code>POST /api/v1/app/devices/claim</code> for accounts, sharing and mobile access.</p>
<p class="muted">Field configuration without reflashing: press the setup button to open the
<code>HiveHub-Setup-XXXX</code> Wi-Fi provisioning portal at <code>http://192.168.4.1</code>.</p>
</div></div>
</div>
</div>
</section>
<section id="docs">
<div class="wrap">
<h2>Dig deeper</h2>
<div class="grid">
<div class="card"><h3>📊 Built-in dashboard</h3><p>The login-free web dashboard served from the backend — how to enable and use it.</p><p><a href="dashboard-demo/">Live demo →</a> · <a href="https://github.com/MacNite/HiveHub/blob/main/server/dashboard/README.md">docs →</a></p></div>
<div class="card"><h3>📘 API reference</h3><p>Device & HivePal endpoints, schemas and the measurement payload.</p><p><a href="https://github.com/MacNite/HiveHub/blob/main/docs/api.md">docs/api.md →</a></p></div>
<div class="card"><h3>🔌 Wiring</h3><p>Full pin map, pull-ups and the load-cell wiring reference.</p><p><a href="https://github.com/MacNite/HiveHub/blob/main/docs/wiring.md">docs/wiring.md →</a></p></div>
<div class="card"><h3>📳 Vibration (BLE)</h3><p>Per-hive vibration monitoring and the ~20 Hz swarm signal, from an in-hive BLE sensor.</p><p><a href="https://github.com/MacNite/HiveHub/blob/main/docs/accelerometer.md">docs/accelerometer.md →</a></p></div>
<div class="card"><h3>📶 BLE sensor</h3><p>Pairing the HolyIot 25015 in-hive beacon.</p><p><a href="https://github.com/MacNite/HiveHub/blob/main/docs/holyiot-ble-sensor.md">docs/holyiot-ble-sensor.md →</a></p></div>
<div class="card"><h3>🧠 Insights</h3><p>The rule-based colony detector catalogue and its sources.</p><p><a href="insights.html">How insights work →</a></p></div>
<div class="card"><h3>🛰️ Off-grid notes</h3><p>LiPo (MAX17048) power-telemetry behaviour and the wake/deep-sleep cycle.</p><p><a href="https://github.com/MacNite/HiveHub/blob/main/docs/offgrid-firmware-notes.md">docs/offgrid-firmware-notes.md →</a></p></div>
<div class="card"><h3>📡 Device not supported?</h3><p>Get your wireless device added — request support as a GitHub issue and capture the data with nRF Connect.</p><p><a href="device-support.html">How to get it added →</a></p></div>
</div>
</div>
</section>
<footer>
<div class="wrap" style="display:flex; gap:1rem; justify-content:space-between; width:100%; flex-wrap:wrap">
<span>🐝 HiveHub — MIT © 2026 Maximilian Nitschke</span>
<span><a href="https://github.com/MacNite/HiveHub">GitHub</a> · <a href="build.html">Build your own</a> · <a href="dashboard-demo/">Dashboard demo</a> · <a href="insights.html">Insights</a> · <a href="configurator.html">Config tool</a> · <a href="https://github.com/martinhrvn/hive-pal">HivePal</a></span>
</div>
</footer>
<script src="assets/theme.js"></script>
</body>
</html>