MacroProprova2


egwrbrberrdbe
//============================================
// Macro for data evaluation on PhotosynQ.org
// created: 4/7/2017
//============================================

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

var fs = MathMEAN(json.data_raw.slice(1,5));
var fmp = MathMEAN(json.data_raw.slice(63,68));

var phi2 = (fmp-fs)/fmp;
var lef = phi2 * json.light_intensity * 0.4;

output['Fs'] = fs;
output['Fmp'] = fmp;
output['Phi2'] = phi2;
output['LEF'] = lef; 
output['PAR'] = json.light_intensity;

//Return data
return output;
{
  "time_offset": -60,
  "time": 1511443946425,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:37:79",
  "device_battery": 13,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1511443946434,
      "protocol_id": 1,
      "light_intensity": 21,
      "r": 13,
      "g": 6,
      "b": 5,
      "light_intensity_raw": 21,
      "data_raw": [
        9955,
        10031,
        10049,
        10049,
        10041,
        10030,
        10023,
        10010,
        10005,
        10002,
        10002,
        9998,
        9995,
        9993,
        9992,
        9981,
        9982,
        9983,
        9986,
        9985,
        16974,
        17743,
        18406,
        18902,
        19278,
        19561,
        19774,
        19944,
        20070,
        20179,
        20260,
        20322,
        20370,
        20415,
        20449,
        20470,
        20486,
        20511,
        20516,
        20528,
        20530,
        20541,
        20543,
        20540,
        20542,
        20543,
        20542,
        20534,
        20539,
        20538,
        20529,
        20522,
        20524,
        20522,
        20514,
        20503,
        20510,
        20505,
        20497,
        20486,
        20487,
        20476,
        20467,
        20463,
        20461,
        20456,
        20446,
        20444,
        20439,
        20435,
        17525,
        16479,
        15955,
        15621,
        15376,
        15166,
        14983,
        14818,
        14653,
        14496,
        14343,
        14193,
        14047,
        13908,
        13776,
        13651,
        13530,
        13418,
        13304,
        13187
      ]
    }
  ],
  "app_os": "linux",
  "app_name": "PhotosynQ",
  "app_version": "0.3.9",
  "app_device": "x86-64",
  "location": [
    "45.4033108",
    "10.9983699"
  ],
  "ConsoleMacro": null
}

Protocol connections:
0
Latest Update:
Nov 2017