v1.0 Sensors only - CO2


Outputs CO2 value
//============================================
// Macro for data evaluation on PhotosynQ.org
// created: 5/12/2017
//============================================

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

output["co2"] = json.co2;	


//Check if the key time exists in json
if (json.time !== undefined){

	//Add key time and value to output
	output["time"] = json.time;
}

//Return data
return output;
{
  "time_offset": 240,
  "time": 1494592852313,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "ff:ff:ff:ff",
  "device_battery": -282,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1494592852341,
      "protocol_id": 1,
      "data_raw": [

      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.7",
  "app_device": "x86-64",
  "location": [
    "42.7225625",
    "-84.4746943"
  ],
  "ConsoleMacro": null
}
Sam 0645   copy   copy  2
Created by

Dan TerAvest


Protocol connections:
1
Latest Update:
May 2017