# Pocketlab Seismograph (accelerometer CSV → peaks and events) > Peak and RMS shaking, a seismogram trace and STA/LTA events from an accelerometer recording. 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. Part of usefulweb.app (https://usefulweb.app/). Part of [Pocketlab](https://pocketlab.usefulweb.app/) (ownerApp: pocketlab). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://pocketlabseismograph.usefulweb.app/ (interactive tool at https://pocketlabseismograph.usefulweb.app/tool) - JSON API: POST https://pocketlabseismograph.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://pocketlabseismograph.usefulweb.app/api/v1/tool) - OpenAPI: https://pocketlabseismograph.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://pocketlabseismograph.usefulweb.app/mcp - tool `pocketlab_seismograph` ## Inputs - file (file): CSV file - One row per sample: time, then 1–3 acceleration columns; header optional. Up to 200 000 rows. - csv (textarea): Or paste the samples - Used when no file is uploaded. Comma, semicolon, tab or space separated — the CSV the Pocketlab recorders download fits. - timeUnit (select): Time unit - accelUnit (select): Acceleration unit - trigger (number): Trigger 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. ## Method - Each axis' mean is removed (gravity, tilt and sensor offset); the dynamic acceleration is the magnitude of what remains. Peak and RMS refer to it. - Events use the STA/LTA trigger of seismology: the short-term average (0.5 s) of the squared acceleration is divided by the long-term average (10 s). An event starts when the ratio reaches the trigger level and ends when it drops below 1.5; the long-term average is frozen during an event. The first 10 s only fill the long window. - The trace is the largest |a| per time bucket (at most 800 points), so short knocks stay visible. ## Limits - A phone is not a seismometer: it is far less sensitive, its sample rate is irregular and it cannot measure earthquake magnitudes. Use it to compare shaking at home, never for safety decisions.