Skip to main content

Sensor History Calculator

Find out how long STICKER keeps its sensor history. Pick the sensor type of each 1-Wire slot, tick the channels you record and set the report interval: the record size, the number of records the buffer holds and the time they cover update live, together with the shell commands for the selection. The calculation follows the flash layout of STICKER firmware v2.0.0 and runs entirely in your browser.

Channels (history-channels)
Hover over or focus a channel to see what it records.
Integrated ambient sensors
Air temperature from the built-in sensor, stored in 0.01 °C steps.Relative humidity from the built-in sensor, stored in 0.5 % steps.Atmospheric pressure from the built-in barometer, stored in 0.1 hPa steps.Ambient light from the built-in light sensor, stored in 2 lx steps.Temperature measured by the built-in barometer, stored in 0.01 °C steps.Barometric altitude from the built-in barometer, stored in 1 m steps.
Hall sensors
State of the left Hall sensor, which reacts to a magnet: 1 or 0.Running total of activations of the left Hall sensor, for example door openings detected by a magnet.State of the right Hall sensor, which reacts to a magnet: 1 or 0.Running total of activations of the right Hall sensor, for example door openings detected by a magnet.
External inputs A and B
State of input A in digital mode: 1 or 0.Running total of pulses counted on input A, for example from an S0 meter output.Voltage on input A in analog mode, stored in 0.001 V steps.State of input B in digital mode: 1 or 0.Running total of pulses counted on input B, for example from an S0 meter output.Voltage on input B in analog mode, stored in 0.001 V steps.
PIR motion detection
1 if the PIR sensor detected motion during the interval, otherwise 0.Running total of motion detections by the PIR sensor.
Accelerometer
1 if the accelerometer detected movement during the interval, otherwise 0.Running total of movement events detected by the accelerometer, counted separately from the PIR sensor.How the device is oriented, from the accelerometer, as a value from 1 to 6.
Battery
Battery voltage, stored in 0.001 V steps.
1-Wire sensor slots
Pick the sensor type of a slot (config sensor1-type … sensor4-type) to list its channels.
s (15 min)
Channels
2 / 24
Record size
3 B
Records per page
585
Capacity
9,360 records
Time covered
97.5 days (13.9 weeks, 3.2 months)

Once the buffer is full, STICKER erases its oldest page (585 records) in one step to make room, so the stored history then spans 91.4–97.5 days.

Shell commands
config history-channels 0001ffffffffffffffffffffffffffffffffffffffffffff config history-enable true config interval-report 900 settings save

Channel sizes and the flash layout follow STICKER firmware v2.0.0.

Good to know​

  • Changing the channels or the interval starts a new history. When history-channels, the sensor type of a recorded 1-Wire slot or interval-report changes, STICKER drops the stored records and starts over, because they no longer match the new record layout or timing. Read the history out before you change any of them.
  • Old records are dropped a page at a time. The buffer is split into 16 pages. Once it is full, STICKER erases the oldest page to make room for new records, so right after that the stored history is a sixteenth shorter. Plan with 15/16 of the time covered when you need a guaranteed window.
  • Missing sensors take no space. The firmware skips channels whose capability is off and channels of 1-Wire slots without a sensor type, so they don't count toward the record size.
  • At most 24 channels. history-channels holds up to 24 entries.

To turn recording on, read the history out or replay it over the radio, see Sensor History.