Wednesday, September 9, 2026

Here’s an idea for Indigo scripting - instead of creating a profusion of variables, why not store bundled related data as a JSON string inside of a single variable? For example, today I was working on a state machine for garage door automation. While I could have used multiple variables, it made better sense to stuff all the related state data in GDO_STATUS e.g.

{
  "version": 1,
  "doors": {
    "LEFT": {
      "phase": "idle",
      "original": "open",
      "expected": "closed",
      "movement_seen": true,
      "started_at": 1788969098.0042272,
      "deadline": 1788969128.0042272,
      "next_check_at": 1788969115.1878028,
      "finished_at": 1788969114.1878028,
      "result": "closed"
    }
  }
}

When U.S. Republicans talk about “six genders,” do they really mean “cis-gendered”? Are they really that stupid? Rhetorical question.