Skip to content

Commit 0f3c51f

Browse files
committed
fixed README
1 parent 664147d commit 0f3c51f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

crowd-sensing/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
- Watch my video on [YouTube](https://youtu.be/p3gq2VLTSiI)
44
- 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
55

6+
7+
68
# Architecture
79
![Crowd sensing](https://cdn-images-1.medium.com/max/1200/1*MmoSdsb-oU7MYuFq9tXBZA.png)
810

11+
12+
## Live demo
13+
Live demo is available [here](https://fcolasante.github.io/crowd-sensing/).
14+
15+
916
## Linear Acceleration Sensor
1017
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.
1118

@@ -15,7 +22,7 @@ After reading several papers about Human Activity recognition (HRA) [1](https://
1522

1623
## Deployment
1724
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.
1926
- 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.
2027

2128
## Thingsboard
@@ -41,6 +48,12 @@ This is the code to send telemetry on Thingsboard:
4148
Http.open("POST", url);
4249
Http.send(msg);
4350
```
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+
4457
# Details
4558
4659
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

Comments
 (0)