aboutsummaryrefslogtreecommitdiff
path: root/posts/2017-08-11-simple-iot-application.md
diff options
context:
space:
mode:
Diffstat (limited to 'posts/2017-08-11-simple-iot-application.md')
-rw-r--r--posts/2017-08-11-simple-iot-application.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/posts/2017-08-11-simple-iot-application.md b/posts/2017-08-11-simple-iot-application.md
index ff8cf9d..0c90f43 100644
--- a/posts/2017-08-11-simple-iot-application.md
+++ b/posts/2017-08-11-simple-iot-application.md
@@ -150,11 +150,11 @@ To run this simply go to folder containing python file and run ```python webapp.
150 150
151After testing the service with Restlet Client you should be able to view your data in a database file ```data.db```. 151After testing the service with Restlet Client you should be able to view your data in a database file ```data.db```.
152 152
153![REST settings example](/assets/iot-application/iot-rest-example.png.dith.gif) 153![REST settings example](/assets/iot-application/iot-rest-example.png)
154 154
155You can also check the contents of new database file by using desktop client for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). 155You can also check the contents of new database file by using desktop client for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/).
156 156
157![SQLite database example](/assets/iot-application/iot-sqlite-db.png.dith.gif) 157![SQLite database example](/assets/iot-application/iot-sqlite-db.png)
158 158
159Table structure is as simple as it can be. We have ts (timestamp) and value (value from Arduino). As you can see timestamp is generated on API side. If you would happen to have atomic clock on Arduino it would be then better to generate and send timestamp with the value. This would be particularity useful if we would be collecting sensor data at a higher frequency and then sending this data in bulk to API. 159Table structure is as simple as it can be. We have ts (timestamp) and value (value from Arduino). As you can see timestamp is generated on API side. If you would happen to have atomic clock on Arduino it would be then better to generate and send timestamp with the value. This would be particularity useful if we would be collecting sensor data at a higher frequency and then sending this data in bulk to API.
160 160
@@ -471,7 +471,7 @@ If everything goes well you should be seeing new data-points rendered on chart e
471 471
472If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as shown on picture below. 472If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as shown on picture below.
473 473
474![Application output](/assets/iot-application/iot-app-output.png.dith.gif) 474![Application output](/assets/iot-application/iot-app-output.png)
475 475
476Complete application with all the code is available for [download](/assets/iot-application/simple-iot-application.zip). 476Complete application with all the code is available for [download](/assets/iot-application/simple-iot-application.zip).
477 477