API & MCP

Everything a person can do on Pocketlab Light & Exposure Converter (lux ↔ EV ↔ shutter), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Pocketlab Light & Exposure Converter (lux ↔ EV ↔ shutter)

Converts an illuminance in lux into the photographic exposure value (EV at ISO 100) and back, or works out the EV of camera settings, with a table of shutter speeds for common apertures and an everyday comparison. It is the arithmetic behind the Pocketlab light meter, which estimates lux from the phone camera or a light sensor.

Inputs of Pocketlab Light & Exposure Converter (lux ↔ EV ↔ shutter)
FieldTypeDefaultDescription
modeselect (lux, ev, camera)"lux"I have
luxnumber500Illuminance
evnumber10Exposure value
fNumbernumber2.8f-number. Camera mode: the aperture used. The shutter table always uses ISO below.
shutternumber0.008Exposure time. Camera mode: e.g. 0.008 for 1/125 s.
isonumber100ISO

Example request

Office desk at 500 lx

curl -X POST https://pocketlablightexposure.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"lux","lux":500,"iso":100}'

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-light-exposure": { "type": "http", "url": "https://pocketlablightexposure.usefulweb.app/mcp" }
  }
}