Skip to content

Data formats#

Spectral data JSON#

enody download-spectral-data writes a host-shaped JSON document.

{
  "host": {
    "identifier": "uuid-string",
    "version": "0.2.0"
  },
  "fixtures": [
    {
      "identifier": "uuid-string",
      "sources": [
        {
          "identifier": "uuid-string",
          "emitters": [
            {
              "identifier": "uuid-string",
              "spectral_data": [
                {"wavelength": 380.0, "measurement": 0.0},
                {"wavelength": 381.0, "measurement": 0.001}
              ]
            }
          ]
        }
      ]
    }
  ]
}

Rust tools can use this export as a reproducible offline input. The Python and JavaScript sample fixtures use the same nested fixture, source, emitter, and spectral sample shape.

Token store JSON#

The token store contains a list of WiFi authorization tokens:

{
  "tokens": [
    {
      "host_id": "uuid-string",
      "key_id": "pairing-key",
      "data": [1, 2, 3]
    }
  ]
}

Token data is secret. Do not paste token store contents into bug reports or public issue trackers.

Response data#

The Python and JavaScript packages include response curves as spectral sample lists:

{
  "Melanopic response": [
    {"wavelength": 380.0, "measurement": 0.0}
  ]
}

These curves back the enody.data functions used by enody.optimize and the JavaScript response helpers exported by @enody/enody.