cleanup and document

This commit is contained in:
Chris Midkiff 2020-05-15 23:27:31 -04:00
parent 0356e58416
commit e9e1054273
4 changed files with 2014 additions and 2150 deletions

File diff suppressed because it is too large Load Diff

View File

@ -67,11 +67,11 @@ namespace Assets.Scripts
samples.Add(sJ);
}
body.Add("samples", samples);
using (var client = new WebClient())
{
client.Headers[HttpRequestHeader.ContentType] = "application/json";
client.UploadStringAsync(new Uri("http://home.superpichu.org:9009"), body.ToString());
}
//using (var client = new WebClient())
//{
// client.Headers[HttpRequestHeader.ContentType] = "application/json";
// client.UploadStringAsync(new Uri("http://home.superpichu.org:9009"), body.ToString());
//}
}
}
}

View File

@ -17,5 +17,6 @@ namespace Assets.Scripts
public int TrialIndex { get; set; }
public int DotIndex { get; set; }
public long Timestamp { get; set; }
public int DotSize = 100;
}
}

View File

@ -1,18 +0,0 @@
{
"mappings": {
"_doc": {
"properties": {
"platform":{"type":"keyword"},
"participantId": {"type":"integer"},
"angle":{"type":"double"},
"distance":{"type":"double"},
"time":{"type":"double"},
"direction":{"type":"boolean"},
"dotName":{"type":"keyword"},
"trialIndex":{"type":"integer"},
"dotIndex":{"type":"integer"},
"timestamp":{"type":"date","format":"epoch_millis"}
}
}
}
}