You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -139,129 +139,104 @@ Data collected from the mouse movement (X and Y positions) will be stored in the
139
139
Connection with Pryv is established to store collected measures in the stream "**HF demo**":
140
140
```javascript
141
141
asyncfunctionsetupStreamStructure(connection) {
142
-
var postData;
143
-
var resultTreatment = [];
144
-
var postData = [];
145
-
var streams = (awaitconnection.get('streams', null)).streams;
146
-
let [hasHF, hasDesktop, hasMobile] =hasStreams(streams);
147
-
if (!hasHF) {
148
-
postData.push(
149
-
{
150
-
method:'streams.create',
151
-
params: {
152
-
id:'hfdemo',
153
-
name:'HF Demo',
154
-
parentId:'hf'
155
-
}
156
-
},
157
-
);
158
-
resultTreatment.push(null);
159
-
}
160
-
```
161
-
162
-
[HF events](https://api.pryv.com/reference/#create-hf-event) need to be created to hold the mouse position, which will be consisting of points along the x and y-axis of type `count/generic` (see [Event Types Reference](https://api.pryv.com/event-types/)):
These events are populated with the X and Y positions of the mouse:
161
+
[HF events](https://api.pryv.com/reference/#create-hf-event) and their streams need to be created to hold the mouse position, which will be consisting of points along the x and y-axis of type `count/generic` (see [Event Types Reference](https://api.pryv.com/event-types/)):
0 commit comments