API & MCP

Everything a person can do on Pocketlab Seismograph (accelerometer CSV → peaks and events), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Pocketlab Seismograph (accelerometer CSV → peaks and events)

Turns an accelerometer recording from a phone lying on a table or floor into a seismogram: peak and RMS acceleration after removing gravity, the strongest axis and a list of events (footsteps, a slammed door, a passing truck) found by the classic STA/LTA trigger. Same engine as the Pocketlab seismograph.

Inputs of Pocketlab Seismograph (accelerometer CSV → peaks and events)
FieldTypeDefaultDescription
filefile—CSV file. One row per sample: time, then 1–3 acceleration columns; header optional. Up to 200 000 rows.
csvtextarea—Or paste the samples. Used when no file is uploaded. Comma, semicolon, tab or space separated — the CSV the Pocketlab recorders download fits.
timeUnitselect (auto, s, ms, us)"auto"Time unit
accelUnitselect (ms2, g)"ms2"Acceleration unit
triggernumber3Trigger ratio (STA/LTA). An event starts when the 0.5 s average of the shaking is this many times the 10 s average; it ends below 1.5.

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "pocketlab-seismograph": { "type": "http", "url": "https://pocketlabseismograph.usefulweb.app/mcp" }
  }
}