-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-desktop.js
56 lines (52 loc) · 1.36 KB
/
config-desktop.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const filestorage = require("stimsrv/src/storage/filestorage.js");
module.exports = {
devices: [
{
name: "Main PC",
id: "main",
ip: ".",
platform: "browser",
screens: [
{
id: "main",
description: "Laptop internal monitor",
resolution: "hd",
pixeldensity: 157,
viewingdistance: 500,
gamma: 2.2,
minintensity: 1/40
}
],
mouse: true,
keyboard: true
}
],
roles: [
{
role: "supervisor",
device: "main",
interfaces: ["monitor", "control"],
description: "Supervisor screen and experiment control"
},
{
role: "experiment",
device: "main",
interfaces: ["display","response"],
description: "Experiment screen for stimulus display and participant response"
},
{
role: "experiment-debug",
device: "main",
interfaces: ["display","response","debug"],
description: "Experiment screen with debugging output"
}
],
storage: filestorage({
// destination is always relative to experiment file
destination: "./data",
// the next line does not work, as the experiment code is run on client and server
// TODO: provide callback in filestorage, where this can be done
//destination: path.join(__dirname, "data"),
format: "json"
})
}