I'm trying to export the data scoring values.
I have a CSV file that I convert to an AGD file. The AGD file does not have biometric information (weight).
I tried adding "weight" key to the JSON string before sending the request, but I get the error:
"Error": "Error calculating data scoring values: "C:\Users\compuser\Desktop\test.agd: enter weight for EE\r\n
Below is the request copied from the API Tester
{ "Action": "DataScoringExport", "Args": { "FileInputPaths": [ "C:\\Users\\compuser\\Desktop\\test.agd" ], "ExportLocation": "C:\\Users\\compuser\\Desktop\\testing", "BatchExportSheetOptions": { "AddDefinitionComments": false, "AddDefinitionWorksheet": false, "AddWtv": false, "ShowNonWear": false, "ShowSummary": false, "ShowDaily": true, "ShowHourly": false, "AddSleepScores": false, "ShowBoutDetails": true, "ShowSedentaryDetails": true }, "ExportFileType": 0, "FilterOptions": { "UseWTVData": false, "UseLogDiaries": false }, "CalculateEnergyExpenditure": true, "EnergyExpenditureOptions": { "Algorithm": "FreedsonSingleCombination", "Weight": 80.0 }, "CalculateMETs": false, "METOptions": { "Algorithm": "FreedsonEEAdult" }, "CalculateCutPoints": true, "CutPointOptions": { "Algorithm": "FreedsonAdult1998" }, "CalculateBouts": false, "CalculateSedentaryAnalysis": true, "IncludeExtraStatistics": true } }
If I exclude CalculateEngeryExpenditure or any item that needs weight, it works.