style.tilde.hacking.sensorReading

A single reading from a live sensor (e.g. temperature, humidity), published via Nebra.

Repository @tilde.style did:plc:nikxdzksyzpo4sqk3nzlaaxm not from the namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityhacking.tilde.style
Indexed

Record

record · key tid

Properties

createdAt

requiredstring · datetime

ATProto-compatible UTC timestamp — use nebra.get_atproto_utc_time().

deviceId

string

Free-form identifier for which physical device produced this — e.g. which Raspberry Pi.

  • maxLength: 128

sensorType

requiredstring

What kind of sensor this reading came from, e.g. 'temperature', 'humidity'.

  • maxLength: 64

unit

requiredstring

Unit for value, e.g. 'celsius', 'percent'.

  • maxLength: 32

value

requiredinteger

The reading, scaled to an integer by valueScale (AT Protocol records can't hold floats) — real value = value / valueScale.

valueScale

requiredinteger

Divide `value` by this to recover the real-world reading, e.g. value=238, valueScale=10 means 23.8.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • An instrument or procedure that produces observations.

  • Groups Observations of one ObservedProperty by one Sensor on one Thing. Carries all context needed to interpret observation results.