Spacestategeschiedenis: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
** ASCII '\0' (NUL): space state was not recorded
** ASCII '\0' (NUL): space state was not recorded
** Any other value: treat as '?'
** Any other value: treat as '?'
Subprojecten:
* https://github.com/revspace/statelogger

Revision as of 01:12, 16 June 2018

Data file:

  • First 8 bytes (64 bit): unix time_t epoch time of first data point
  • Subsequent data: one byte per minute, byte offset = 8 + floor((time() - $start_time) / 60)
    • ASCII '0': space was closed (or mostly closed)
    • ASCII '1': space was open (or mostly open)
    • ASCII '?': script did run but could not determine space state (not currently in use)
    • ASCII '\0' (NUL): space state was not recorded
    • Any other value: treat as '?'


Subprojecten: