v1.0 CALIBRATION: PAR to LED validation


goes with protocol of same name
//============================================
// Macro for data evaluation on PhotosynQ.org
// created: 02/12/2016
//============================================

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

var meas = json.message
var repeats = 10
var lights = [1,2,4];

var ambient_licor = [meas[1][2],meas[3][2],meas[5][2]];
var ambient_multispeq = [json.light_intensity.slice(0,10), json.light_intensity.slice(10,20), json.light_intensity.slice(30,40)];
var chamber_licor = [meas[2][2],meas[4][2],meas[6][2]];
var chamber_multispeq = [meas[2][2],meas[4][2],meas[6][2]];

output["ambient_licor"] = ambient_licor.toString();
output["ambient_multispeq"] = chamber_licor.toString();
output["chamber_licor"] = chamber_licor.toString();
output["chamber_multispeq"] = chamber_multispeq.toString();


/*
for (var i = 0; i < json.message.length; i++) {
  chamber.push(mson.message

}
*/

//Return data
return output;
{
  "time_offset": 300,
  "time": 1480711942905,
  "device_version": "1",
  "device_id": "d4:f5:00:00:00:0c",
  "device_battery": 63,
  "device_firmware": "1.13",
  "firmware_version": "1.13",
  "device_time": 1478796795,
  "sample": [
    [
      {
        "time": 1480711942931,
        "protocol_id": 1,
        "message": [
          [
            "0",
            "0",
            ""
          ],
          [
            "prompt",
            " enter light 1 green licor ambient PAR value",
            "15"
          ],
          [
            "prompt",
            " enter light 1 green licor chamber PAR value",
            "19"
          ],
          [
            "prompt",
            " enter light 2 red licor ambient PAR value",
            "20"
          ],
          [
            "prompt",
            " enter light 2 red licor chamber PAR value",
            "23"
          ],
          [
            "prompt",
            " enter light  4 blue licor ambient PAR value",
            "16"
          ],
          [
            "prompt",
            " enter light  4 blue licor chamber PAR value",
            "20"
          ]
        ],
        "light_intensity": [
          "3.000000",
          "3.000000",
          "3.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000",
          "4.000000"
        ],
        "light_intensity_raw": [
          "4.000000",
          "4.000000",
          "4.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000"
        ],
        "r": [
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000",
          "1.000000"
        ],
        "g": [
          "1.000000",
          "1.000000",
          "1.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000"
        ],
        "b": [
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000",
          "0.000000"
        ],
        "data_raw": [
          0,
          0,
          16,
          17,
          15,
          17,
          14,
          17,
          18,
          17,
          15,
          18,
          18,
          15,
          18,
          19,
          16,
          16,
          16,
          18,
          18,
          17,
          19,
          19,
          19,
          18,
          15,
          16,
          18,
          16,
          16
        ]
      }
    ]
  ],
  "app_os": "linux",
  "app_name": "PhotosynQ",
  "app_version": "0.3.5",
  "app_device": "x86-64",
  "ConsoleMacro": "14"
}
012409 pbi 160 low low res headshot
Created by

Greg Austic


Protocol connections:
0
Latest Update:
Dec 2016