Spacestategeschiedenis: Difference between revisions

From RevSpace
Jump to navigation Jump to search
(Created page with "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) *...")
 
No edit summary
Line 5: Line 5:
** ASCII '0': space was closed (or mostly closed)
** ASCII '0': space was closed (or mostly closed)
** ASCII '1': space was open (or mostly open)
** ASCII '1': space was open (or mostly open)
** ASCII '?': script did run but could not determine space state
** ASCII '?': script did run but could not determine space state (not currently in use)
** ASCII '\0' (NUL): space state was not recorded
** ASCII '\0' (NUL): space state was not recorded
** Any other value: treat as '?'

Revision as of 22:27, 15 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 '?'