HTTP Endpoint Schemas

Response formats for the diagnostic endpoints listed on the Web Portal page.

If a web password is set, every endpoint here needs HTTP Basic auth, user admin.

/outputs

A JSON object keyed by output name, describing each enabled third-party output. Disabled or unconfigured modules are left out; {} means none are active. A module quarantined by the boot guard shows under its module short name as {"quarantined":true}. Each output’s entry is sent on its own: one that would pass 255 bytes is left out, the rest still come.

Keys: mqtt, radmon, thingspeak, gmc, webhook, webapi and udpblip when Local Broadcast is on. /ps lists module short names, which differ for three of them: whook, thgspk, wapi.

{
  "mqtt":       {"ok":true,  "age":42},
  "radmon":     {"ok":true,  "age":17},
  "thingspeak": {"ok":false, "age":91},
  "gmc":        {"ok":true,  "age":230},
  "webhook":    {"ok":false, "age":null}
}
Field Meaning
ok true if the last submission was accepted. For MQTT this means connected plus a successful recent publish.
age Seconds since the last submission attempt completed, or null if none has been attempted yet.

udpblip has a different shape: {"mode":N,"group":"239.x.x.x","port":N,"fails":N,"skipped":N}. skipped counts sends not made since boot: WiFi down, no socket or a failed send, plus a whole stats cycle for each one missed while it was not running.

Use it as a lightweight health check for dashboards, scripts or Home Assistant REST sensors.

/about

Identity of the device and firmware, and the chip and WiFi details the /info page leaves out. Made to paste into a bug report: nothing that locates the network (no gateway, subnet or access point). Live values (uptime, memory, RSSI) are in /json, the modules in /ps.

In safe mode only the core routes exist: /json, /status, /hist and /webcmd answer 404; /about, /ps, /outputs and /metrics still work.

{
  "ver": "0.14.0",
  "git": "06a2d9d",
  "env": "espgeigerlog",
  "date": "Apr 15 2026 12:34:56",
  "chip": "ESPG-LOG",
  "flash": "ef4016 DIO 40MHz",
  "mac": "AABBCCDDEEFF",
  "host": "ESPGeiger-a1b2c3",
  "core": "3.1.2",
  "boot": 31,
  "fsize": 4194304,
  "freal": 4194304,
  "mhz": 80,
  "tx": 20.50,
  "phy": "11n",
  "sleep": "Modem",
  "auto": true,
  "wifi": "online",
  "g_mod": "genpulse",
  "g_type": "pulse",
  "g_test": false,
  "g_pcnt": false,
  "fl": 127,
  "health": "ok",
  "health_boot": "ok",
  "erases": 0
}
Field Meaning
ver Firmware version (release)
git Short git commit the firmware was built from
env PlatformIO build environment name (e.g. espgeigerlog, esp32_pulse)
date Build timestamp (compile-time __DATE__ __TIME__)
chip Board name on ESPGeiger kits (ESPG-HW, ESPG-LOG, ESPG-LT), else the chip model reported by the framework (ESP8266 / ESP32 / ESP32-S2 etc.)
flash Flash chip as booted: JEDEC id (ESP8266 only), mode and clock from the image header
mac Device MAC address
host Configured hostname
core, boot ESP8266 only: Arduino core version and bootloader version
model, rev, sdk, temp ESP32 only: chip model, chip revision, SDK version, die temperature in C (null if the chip can’t read it)
fsize Flash size the image was built for, in bytes
freal ESP8266 only: flash size the chip reports. /info warns when it differs from fsize
mhz CPU frequency
tx WiFi transmit power in dBm, null if the core doesn’t report it
phy, sleep, auto WiFi PHY mode, radio sleep mode, and whether WiFi auto-reconnect is on
wifi WiFi state: boot, joining, portal, online, link_lost, offline, hotspot, ap_mode or off
wear Flash wear of the file storage in percent, counted since 0.14 against a rating of 10,000 erases a block. An estimate from the firmware’s own writes, high rather than low
erases Flash block erases the firmware’s writes cost since boot (the same estimate). A number that climbs fast while nothing is being changed points at a fault
g_mod Geiger model name. On serial builds this identifies the protocol (GC10, GC10Next, MightyOhm, ESPG).
g_type Counter input type: "pulse", "serial", or "none" (UDP receiver and internal test builds)
g_test true on test / simulation builds
g_pcnt true if pulses are counted by the ESP32 PCNT hardware counter
fl Feature flags, the same bits WebAPI sends as fl
health, health_boot Health now, and every word that has been on since boot
trace ESP32, after a crash: the last module runs before it, ["name", -ms], ms before the last one

/ps

The main loop and memory, then every module compiled into this firmware under modules, core ones included, keyed by its short name; three differ from the /outputs keys (whook, thgspk, wapi). Modules are listed in the order they start. Unlike /json, it answers in safe mode too.

{"lps":58733,"tick":93,"t_max":410,"mem":25800,"frag":3,"lfb":25232,"lfblow":25232,"stack":752,"modules":{"counter":{"pri":9},"btn":{"pri":10,"peak":73},"ntp":{"pri":20,"peak":315},"sdcard":{"pri":50,"peak":620000,"stalls":2},"mqtt":{"pri":50,"peak":5380,"state":"wifi"},"sys":{"pri":50},"wifi":{"pri":50,"peak":1840}},"active":6}
Field Meaning
lps Main-loop iterations per second, smoothed
tick Smoothed microseconds spent in the once-per-second housekeeping pass
t_max Worst tick in the last 60 seconds
mem, frag, lfb, lfblow Free heap, fragmentation, largest free block and its low-water mark, as in /json?raw=1
stack Lowest free stack since boot in bytes, as in /about

Each module, a field left out when it has nothing to say:

Field Meaning
pri Its start priority, lower starts first: 10 hardware, 20 network services, 50 the rest. Modules of the same priority keep the firmware’s own order
peak The module’s longest recent loop in microseconds, halved every hour, so a one-off fades and a repeating one stays. Above 32 ms it’s to the millisecond, up to 32 s. On ESP32 it can include time other tasks such as WiFi held the loop, so it can read higher than the module’s own work
stalls How many of its loops took over 10 ms since boot (wapi 250 ms, as the Stations signature takes ~180 ms on an ESP8266; sdcard 500 ms, an SD card’s write timeout). Stops at 255, left out when 0
state Left out when it runs as normal. off: never started (WiFi off), quarantined: safe mode, wifi or ntp: waiting for it

After the modules, active: how many run as normal, those without a state.

/json?raw=1

By default mem is lightly smoothed and the device-load fields are left out to keep the frequently polled /json small. ?raw=1 reports mem un-smoothed and adds:

Field Description
tick Smoothed microseconds spent in the once-per-second housekeeping pass. Lower is better.
t_max Worst-case tick in the last 60 seconds.
lps Main-loop iterations per second, un-smoothed (last full second).
frag Heap fragmentation, percent
lfb Largest contiguous free block in bytes
lfblow Largest-free-block low-water mark since boot, in bytes
cs_live CPS from the recent pulse times, (N-1) / T from the oldest to now; left out under 2 pulses

lfb / lfblow are the honest measure of memory health: free heap can look fine while fragmentation shrinks the largest block that can be allocated.


This site uses Just the Docs, a documentation theme for Jekyll.