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
Copy file name to clipboardExpand all lines: crowd-sensing/README.md
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,16 @@
3
3
- Watch my video on [YouTube](https://youtu.be/p3gq2VLTSiI)
4
4
- Read my [blog-post](https://medium.com/@colasante.francesco/4-how-to-create-a-crowd-sensing-application-using-generic-sensor-api-and-javascript-47e3ff1df49e) on Medium
Live demo is available [here](https://fcolasante.github.io/crowd-sensing/).
14
+
15
+
9
16
## Linear Acceleration Sensor
10
17
The LinearAccelerationSensor measures acceleration that is applied to the device hosting the sensor, excluding the contribution of a gravity force. When a device is at rest, for instance, lying flat on the table, the sensor would measure ≈ 0 m/s2 acceleration on three axes.
11
18
@@ -15,7 +22,7 @@ After reading several papers about Human Activity recognition (HRA) [1](https://
15
22
16
23
## Deployment
17
24
As already mentioned in the introduction, I created two different versions:
18
-
- cloud-deployment: the page sends the raw data to Thingsboard, processes it through the HRA model and outputs the prediction.[Link]
25
+
- cloud-deployment: the page sends the raw data to Thingsboard, processes it through the HRA model and outputs the prediction.
19
26
- edge-deployment: the page processes the model locally using Javascript, from the prediction as output and sends the prediction and raw data to Thingsboard which saves them and also providing dashboards.
20
27
21
28
## Thingsboard
@@ -41,6 +48,12 @@ This is the code to send telemetry on Thingsboard:
41
48
Http.open("POST", url);
42
49
Http.send(msg);
43
50
```
51
+
52
+
# Notes
53
+
I tried to test the code locally using `http-server` but the sensor was not recognized by my smartphone. I had to test the code pushing on GitHub Pages necessarily. **(It was not very easy to debug this way)**.
54
+
I created a simple `print` on HTML that replaces the classic console.log to “easily” find errors.
55
+
I have tested the application on a samsung S8.
56
+
44
57
# Details
45
58
46
59
Tutorial of the [Internet of Things course 2020](http://ichatz.me/Site/InternetOfThings2020), part of the MSc on Computer Engineering, Department of Computer, Control and Management Engineering (DIAG), Sapienza University of Rome.
0 commit comments