Fv/Fm_dark


For 'Fv/Fm_dark' protocol
//============================================
// Macro for data evaluation on PhotosynQ.org
// created: 2017/7/12
//============================================

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

var fo = MathMEAN(json.data_raw.slice(25,30));
var fm = MathMAX(json.data_raw.slice(30,60));

var fvfm = (fm-fo)/fm;

output['Fv/Fm'] = fvfm;
output['PAR'] = json.light_intensity;
output['Temperature'] = json.temperature;
output['Humidity'] = json.humidity;
output['Pressure'] = json.pressure;

//Return data
return output;
{
  "time_offset": -540,
  "time": 1499915165939,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:53:16",
  "device_battery": 59,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1499915165966,
      "protocol_id": 1,
      "temperature": 27.940001,
      "humidity": 55.015625,
      "pressure": 982.539856,
      "light_intensity": 15,
      "r": 11,
      "g": 5,
      "b": 4,
      "light_intensity_raw": 19,
      "data_raw": [
        690,
        695,
        692,
        695,
        698,
        693,
        698,
        700,
        703,
        701,
        702,
        702,
        705,
        701,
        706,
        701,
        703,
        704,
        706,
        709,
        703,
        701,
        698,
        699,
        701,
        700,
        707,
        703,
        703,
        706,
        709,
        2151,
        2294,
        2361,
        2423,
        2482,
        2533,
        2578,
        2595,
        2604,
        2614,
        2607,
        2609,
        2616,
        2611,
        2611,
        2607,
        2603,
        2603,
        2602,
        2602,
        2603,
        2597,
        2594,
        2596,
        2593,
        2591,
        2589,
        2591,
        2587,
        2587,
        1789,
        1467,
        1327,
        1259,
        1221,
        1197,
        1181,
        1163,
        1149,
        1137,
        1133,
        1121,
        1113,
        1111,
        1095,
        1095,
        1089,
        1083,
        1076,
        1073,
        1066,
        1062,
        1061,
        1052,
        1048,
        1047,
        1039,
        1038,
        1035
      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.8",
  "app_device": "x86-64",
  "ConsoleMacro": "209"
}
Default avatar
Created by

Jun Tominaga


Protocol connections:
1
Latest Update:
Jul 2017