A3: Polite Probe
The workshop's hull is studded with temperature sensors, and the heating crew want a full sweep before the reindeer stables are pressurised. The sensor array is old and easily flustered, so it only answers 10 requests per second from you.
Send Authorization: Bearer YOUR_TOKEN with every request (401 without it). Errors are JSON {"error": "...", "detail": "..."}.
GET https://outcoded.orimovo.co.uk/api/v1/orbit/A3/sensors returns the id of every sensor:
curl -H "Authorization: Bearer YOUR_TOKEN" https://outcoded.orimovo.co.uk/api/v1/orbit/A3/sensors
{"sensors": ["s-0001", "s-0002", "s-0003"]}
GET https://outcoded.orimovo.co.uk/api/v1/orbit/A3/telemetry/:sensor returns one sensor's latest values, or 404 with "error": "unknown_sensor" for an id that isn't in the list:
curl -H "Authorization: Bearer YOUR_TOKEN" https://outcoded.orimovo.co.uk/api/v1/orbit/A3/telemetry/s-0001
{"sensor": "s-0001", "reading": -73, "offset": 12, "array": "quiet"}
reading and offset are whole numbers. array is quiet or noisy (see below).
The rate limit
Every request to this challenge, including sensors and any that fail, counts towards a limit of 10 per clock second. Every response carries:
RateLimit-Limit: always10RateLimit-Remaining: requests left in this secondRateLimit-Reset: whole seconds until the window resets
An 11th request in the same second gets 429 with "error": "rate_limited" and a Retry-After header in seconds. Wait at least that long before your next request.
For example, with three sensors whose readings are -73, 40 and 5, the total would be -28.
What is the sum of the reading of every sensor?