Telemetry and log
The Telemetry tab on the cabin page shows how the board is doing: radio signal, memory, scales, link, restarts, task stack headroom. The Logs window is the cabin's live exchange with the server. Telemetry is kept for 30 days, the log for two days.
Where the data comes from
The cabin board is built on an ESP32 (two cores, FreeRTOS). Every few minutes it sends the server a snapshot — a set of measurements. On notable changes it also sends an event at once: memory dropped, Wi-Fi quality changed, the scale zero drifted, a reconnect happened. Separately, once an hour, a stack headroom report of every firmware task arrives.
The Telemetry tab
Range and zoom
- Range: 15 min, Hour, Day, Week, Month. The server averages points to the window length (at most 240 points per chart); the averaging step is shown next to it.
- Mouse wheel — zoom around the cursor, drag — pan in time, on a phone — pinch with two fingers. Double click or reset zoom — the whole range.
- Zoom is shared by every chart on the tab. When you zoom in, the page loads more detailed data.
- While the tab is open, a new snapshot is drawn on the right at once.
"Now" cards
The top row is the latest snapshot; "N s ago" is how many seconds ago it arrived. A changed value is highlighted for a second.
| Card | What it is | Normal |
|---|---|---|
| Wi-Fi | access point signal level, dBm | −67 or higher is good |
| Free heap | free RAM, KB | tens of KB, no steady decline |
| Min heap | the free memory minimum since start, KB | below Free heap, but not down to single KB |
| NVS free | free entries in the flash memory for settings and visits | not constantly decreasing |
| Weight | floor weight, kg | an empty cabin — about 0 |
| Scale zero | the scale "zero" of an empty cabin, kg | within ±0.5 kg |
| Uptime | time since the last start | grows; resets once a day after the night restart |
| Min free stack · task | the "tightest" firmware task and its stack headroom, % | above 10 % |
The second row — totals for the selected range:
| Card | What it counts |
|---|---|
| Wi-Fi reconnects | Wi-Fi reconnects |
| MQTT reconnects | server reconnects |
| Restarts | board restarts (including the night one) |
| Link recovery | how many times the cabin restored the link with special measures: recreating the connection, rejoining Wi-Fi, restarting |
Board counters reset on a restart; the server adds them up between snapshots, so the totals stay correct across restarts.
Charts
Wi-Fi signal, dBm
The access point signal level (RSSI). The closer to zero, the better.
| Level | Quality |
|---|---|
| −55 and higher | excellent |
| −67 … −55 | good |
| −75 … −67 | fair |
| below −75 | poor — drops are possible |
Dips to 0 are moments without a connection. If the signal stays below −75, move the access point closer to the cabin or add a repeater.
Free heap, KB
Two lines: free — free RAM now, min ever — the minimum since start.
- The normal picture is a flat free line and a min ever step that settles after the start and then barely changes.
- A slow hour-by-hour decline of free means memory is used and not returned. The cabin keeps working until the night restart, but tell support.
NVS free entries
NVS is the area of the board's flash memory holding settings, unsent visits and service counters. One entry is 32 bytes.
- The number of free entries is almost constant.
- A decline during a link loss is normal: the cabin stores visits. When the link returns and the visits reach the server, the free entries come back.
Scale zero (empty cabin), kg
When the cabin is empty and the weight has not changed for 30 seconds, the board records the "zero" — the reading of the empty platform.
- zero — the smoothed zero. Load cells drift over time: temperature, humidity, floor settling.
- noise — reading jitter. Normal is hundredths or tenths of a kilogram; above 0.5 kg — interference or a poor contact.
- The zero moved by more than 0.5 kg — event Scale zero drifted. More than 1 kg for longer than 10 minutes — event Scale needs recalibration: the scales need zeroing, contact support.
Weight, kg
The weight from the load cells: steps up — someone entered, down — left. The default presence threshold is 20 kg.
Reconnects since boot
Wi-Fi and MQTT (server) reconnect counters since start; they reset on a restart.
- Only MQTT grows while Wi-Fi stays put — the path to the server drops (site network, internet), the radio is fine.
- Both grow — the cabin loses the access point: signal, interference, router restarts.
Link recovery interventions and Offline time
If the network is up but the server is unreachable, the cabin escalates: retries, recreates the connection (client recreated), rejoins Wi-Fi (Wi-Fi rejoined) and after 15 minutes without the server restarts (rebooted). Offline time — how many seconds the cabin has been without the server and how many failed attempts in a row (failures in a row).
These charts are empty while the link is fine.
Free stack per task, %
Every firmware task has its own stack. The chart shows what percentage of the stack was left at the busiest moment since start.
| Task | What it does |
|---|---|
watchdog | pulses to the external watchdog timer and monitoring of the other tasks |
light | light, light knob and button |
fan | fan, fan knob and button |
scales | reading the load cells (HX711 ADC) |
scalescontrol | zeroing and calibrating the scales |
mode | modes, visits, schedule, telemetry |
message | internal messages and server commands |
web | the service access point web page |
serial | service console |
mqtt_pub, status_1s, mqtt_rx | sending messages, status once a second, receiving commands |
looptask | the Arduino main loop |
Headroom above 10 % is normal. report every next to the heading sets how often the cabin sends the report.
Events
The event table for the range, 10 rows per page:
| Event | When |
|---|---|
| Free heap dropped | free memory dropped by 8 KB or 10 % |
| Min heap dropped | the memory minimum dropped by 4 KB |
| NVS free entries dropped | free NVS entries dropped by 32 |
| Wi-Fi quality | the signal changed class (poor / fair / good / excellent) and stayed there for a minute |
| Wi-Fi reconnect | a Wi-Fi reconnect happened |
| MQTT reconnect | a server reconnect happened |
| Scale zero drifted | the empty-cabin zero moved by 0.5 kg |
| Scale needs recalibration | the zero beyond 1 kg for longer than 10 minutes |
After an event the baseline moves, so the same change is not repeated.
How often the cabin sends data
| Selector | Values | What it sets |
|---|---|---|
| snapshot period | off, 20 s, 1 min, 5 min, 15 min, 1 h | the snapshot period; events arrive independently |
| report every (on the stack chart) | off, 1 min, 5 min, 15 min, 1 h, 6 h, 24 h | the stack report period |
The cabin applies the new period within a minute; until then the selector shows "applying…". Frequent snapshots help watch a specific issue; 5 minutes is enough for normal operation.
The Logs window — exchange log
The Logs button in the page header opens the cabin's live message feed in a separate browser window: from the cabin on the left, from the server on the right. The window lives on its own: you can close the cabin page or move to another cabin and the feed keeps going. Pressing Logs again brings up the same window instead of a second one. On a phone it opens as a new tab.
- Topic filter — keep what you need: status, commands, responses, board log, telemetry.
- Commands are shown by name (
brightness,reboot). - Pause / Resume — stop the feed, Clear — clear the screen.
- History — the stored log for Today or Yesterday, Load older — further back.
- The feed scrolls by itself while you are at the bottom; if you scrolled up, a Scroll to the end button appears.
What to look for in the log
| Line | Meaning |
|---|---|
MQTT connected after boot (…, uptime 4 s) | the cabin started; the restart cause is in brackets |
MQTT reconnected (offline 5 s, disconnect: TCP, code 0) | the server link came back without a restart: how many seconds it was missing and why |
HTTP GET …firmware_….bin -> 200 | the cabin downloads a firmware update |
CONFIG default.work_light: 100 -> 80 | a cabin setting changed (passwords hidden) |
SET_CONFIG rejected: … | the cabin did not accept the settings — nothing changed |
Restart causes
The first line after a start is MQTT connected after boot (<reset>: <cause>, uptime N s).
| Cause | What happened |
|---|---|
daily | the night preventive restart |
command | a restart with the Reboot button or a provider command |
button light 10s | the light button was held for 10 seconds |
ota update | a firmware update was installed |
ota rollback | the update was not confirmed, back to the previous version |
link recovery offline | 15 minutes without the server while the network works |
settings … | a reset or first-time setup of the board |
safe mode | entering or leaving safe mode |
wdt <task> | … | task monitoring restarted the board: a task stopped reporting |
If there is no cause in brackets, look at the reset type:
| Reset | Meaning |
|---|---|
power-on | power applied or a reset through the EN pin — including from the external watchdog timer |
brownout | a supply voltage dip on the board |
panic | an exception in the firmware |
task watchdog, interrupt watchdog | the ESP32 internal watchdog |
Frequent brownout — check the power supply and wiring: the load when the fan and light switch on. Frequent panic or wdt — save the log lines and send them to support.
Disconnect codes
disconnect: …, code N in a MQTT reconnected line:
| Code | Reason |
|---|---|
0 TCP | the connection dropped — network, or the server closed an idle connection |
3 server unavailable | the server is temporarily unavailable |
5 not authorized | the server did not accept the cabin's credential |
Wi-Fi codes (seen in telemetry messages as wifi_disconnect_reason):
| Code | Reason |
|---|---|
2 Auth expired | the access point did not accept the cabin right after the cabin restarted — usually passes on the second or third attempt |
8 Disassociated (leave) | the cabin disconnected by itself — a reconnect |
15, 204 Handshake timeout | the key exchange did not complete: password or weak signal |
200 Beacon timeout | the cabin stopped hearing the access point — signal, interference, access point restart |
201 No AP found | no network with the expected name nearby |
202 Authentication failed | wrong Wi-Fi password |
203 Association failed | the access point refused — client limit, MAC filter |
Every snapshot field
In the Logs window with the telemetry filter the snapshots are shown in full. Fields:
| Field | What it is |
|---|---|
rssi | Wi-Fi signal, dBm (0 — not connected) |
heap_free, heap_min | free memory now and the minimum since start, bytes |
nvs_free | free NVS entries |
uptime | seconds since start |
weight | weight, kg |
wifi_reconnects, mqtt_reconnects | reconnects since start |
mqtt_session_sec, wifi_session_sec | how many seconds the current server and Wi-Fi connection has lasted |
mqtt_session_min_sec, wifi_session_min_sec | the shortest connection since start (present if there were drops) |
mqtt_disconnect_reason, wifi_disconnect_reason | the last disconnect code (tables above) |
wifi_refusal_reason | the last access point refusal code |
boot_reason | the last ESP32 reset type: 1 power-on, 3 software, 4 panic, 5–7 watchdog, 9 brownout |
restart_cause | restart cause: 1 wdt, 2 link recovery, 3 ota, 4 command, 5 button, 6 daily, 7 settings, 8 safe mode |
link_recreates, link_rejoins, link_reboots, link_offline_sec, link_fails | link recovery (present if it happened) |
scale_zero, scale_zero0, scale_zero1, scale_noise | current zero, original zero, second cell zero, noise |
telemetry_sec, telemetry_stack_sec | the snapshot and stack report periods the cabin runs with now |
stack_<task> | task stack headroom, % (in the stack report) |