Skip to content

api: Serve status_detail for offline and spiking sensors - #5

Merged
sidharthify merged 1 commit into
mainfrom
sensor-status-detail
Dec 1, 2026
Merged

sidharthify merged 1 commit into
mainfrom
sensor-status-detail

Conversation

@sidharthify

Copy link
Copy Markdown
Member

Single sensor payloads now carry a status_detail object saying whether a sensor is offline or held back by spike protection, when it was last seen, and for spikes which limit tripped, the reading that was held back and when it clears, with the warning text rewritten to say the same so the Android and iOS apps pick it up without an update.

* spike cache keeps what tripped (ceiling or jump), the held back reading and the limits, so the grace period can still say why and when it clears
* single sensor payloads get last_seen and that spike, and the warning text spells it out for the apps

Signed-off-by: sidharthify <wednisegit@gmail.com>
sidharthify added a commit to breathe-OSS/site that referenced this pull request Dec 1, 2026
Dashboard cards, the detail page and the map panel show OFFLINE or SPIKE
instead of the satellite AQI, with a short box saying why, the held back
reading and when spike protection clears. On the map those sensors are
darkened with an eye-off or bolt badge, and a small Live / Offline / Spike
key explains each one when tapped.

Needs breathe-OSS/api#5 for status_detail. Without it nothing changes.

Signed-off-by: sidharthify <wednisegit@gmail.com>
@sidharthify

Copy link
Copy Markdown
Member Author

Approved.

@sidharthify
sidharthify merged commit 16e9f23 into main Dec 1, 2026
1 check passed
sidharthify added a commit to breathe-OSS/site that referenced this pull request Dec 1, 2026
Dashboard cards, the detail page and the map panel show OFFLINE or SPIKE
instead of the satellite AQI, with a short box saying why, the held back
reading and when spike protection clears. On the map those sensors are
darkened with an eye-off or bolt badge, and a small Live / Offline / Spike
key explains each one when tapped.

Needs breathe-OSS/api#5 for status_detail. Without it nothing changes.

Signed-off-by: sidharthify <wednisegit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant