Env_light


Returns environmental light measurements
//============================================
// Macro for data evaluation on PhotosynQ.org
// created: 10/11/2017
//============================================

//Define the output object here
var output = {};

output['Environmental light intensity'] = json.light_intensity;
output['Raw Environmental light intensity'] = json.light_intensity_raw;
output['Red light component'] = json.r;
output['Green light component'] = json.g;
output['Blue light component'] = json.b;

//Return data
return output;
{
  "time_offset": -120,
  "time": 1507722794265,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:37:79",
  "device_battery": 74,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1507722794278,
      "protocol_id": 1,
      "light_intensity": 38,
      "r": 21,
      "g": 11,
      "b": 10,
      "light_intensity_raw": 38,
      "data_raw": [

      ]
    }
  ],
  "app_os": "linux",
  "app_name": "PhotosynQ",
  "app_version": "0.3.9",
  "app_device": "x86-64",
  "location": [
    "45.4033513",
    "10.9983778"
  ],
  "ConsoleMacro": "382"
}

Protocol connections:
0
Latest Update:
Oct 2017