diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 4020532..d6c6e49 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -14,10 +14,9 @@
-
-
+
-
+
@@ -210,7 +209,8 @@
-
+
+
1713528225837
@@ -384,7 +384,15 @@
1716891155110
-
+
+
+ 1716977853269
+
+
+
+ 1716977853269
+
+
@@ -424,6 +432,7 @@
-
+
+
\ No newline at end of file
diff --git a/code/web/pepper_data_test.js b/code/web/pepper_data_test.js
index 674aa18..222a394 100644
--- a/code/web/pepper_data_test.js
+++ b/code/web/pepper_data_test.js
@@ -1,24 +1,22 @@
-const address = 'http://145.92.8.135:3445/';
-
-const data = {
- rotationX: 1,
- rotationY: .4,
- rotationZ: .1,
- accelerationX: 1,
- accelerationY: 2,
- accelerationZ: 4,
- deviceId: 1,
- type: 'data'
-};
-
-for ( let i = 0; i < 10; i++)
+const address = 'http://192.168.137.45:3445';
+const amount = 10;
+for ( let i = 0; i < amount; i++)
{
setTimeout(() => {
console.log("Sending data");
fetch(address, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify(data)
+ body: JSON.stringify({
+ rotationX: 0,
+ rotationY: 0,
+ rotationZ: 0,
+ accelerationX: Math.PI / amount * i,
+ accelerationY: 0,
+ accelerationZ: 0,
+ type: 'data',
+ deviceId: 0
+ })
});
}, i * 1000);
}
\ No newline at end of file