Macro proprova 22


yjstrkksrzkzkrzdktz
//============================================
// 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": 1511444649072,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:37:79",
  "device_battery": 16,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1511444649084,
      "protocol_id": 1,
      "light_intensity": 0,
      "r": 0,
      "g": 0,
      "b": 0,
      "light_intensity_raw": 0,
      "data_raw": [
        6051,
        6155,
        6234,
        6300,
        6376,
        6435,
        6487,
        6541,
        6589,
        6629,
        6664,
        6702,
        6733,
        6763,
        6782,
        6809,
        6825,
        6847,
        6856,
        6871,
        16942,
        17863,
        18567,
        19138,
        19600,
        19987,
        20324,
        20620,
        20876,
        21102,
        21305,
        21474,
        21623,
        21754,
        21854,
        21941,
        22011,
        22071,
        22118,
        22152,
        22178,
        22202,
        22214,
        22231,
        22240,
        22248,
        22250,
        22259,
        22263,
        22267,
        22267,
        22265,
        22264,
        22266,
        22254,
        22255,
        22247,
        22245,
        22247,
        22242,
        22241,
        22239,
        22235,
        22234,
        22237,
        22230,
        22226,
        22220,
        22217,
        22211,
        19155,
        17894,
        17162,
        16661,
        16285,
        16007,
        15779,
        15593,
        15435,
        15295,
        15171,
        15071,
        14973,
        14879,
        14789,
        14705,
        14627,
        14553,
        14476,
        14403
      ]
    }
  ],
  "app_os": "linux",
  "app_name": "PhotosynQ",
  "app_version": "0.3.9",
  "app_device": "x86-64",
  "location": [
    "45.4033108",
    "10.9983699"
  ],
  "ConsoleMacro": null
}
Default avatar
Created by

SoleLAB


Protocol connections:
0
Latest Update:
Nov 2017