From 7f631c493d04ba96e36975365532e2172fec367e Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 7 Oct 2021 21:13:14 +0200 Subject: Added dithered images --- posts/2017-08-11-simple-iot-application.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'posts/2017-08-11-simple-iot-application.md') diff --git a/posts/2017-08-11-simple-iot-application.md b/posts/2017-08-11-simple-iot-application.md index 0c90f43..ff8cf9d 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. After testing the service with Restlet Client you should be able to view your data in a database file ```data.db```. -![REST settings example](/assets/iot-application/iot-rest-example.png) +![REST settings example](/assets/iot-application/iot-rest-example.png.dith.gif) You can also check the contents of new database file by using desktop client for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). -![SQLite database example](/assets/iot-application/iot-sqlite-db.png) +![SQLite database example](/assets/iot-application/iot-sqlite-db.png.dith.gif) Table 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. @@ -471,7 +471,7 @@ If everything goes well you should be seeing new data-points rendered on chart e If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as shown on picture below. -![Application output](/assets/iot-application/iot-app-output.png) +![Application output](/assets/iot-application/iot-app-output.png.dith.gif) Complete application with all the code is available for [download](/assets/iot-application/simple-iot-application.zip). -- cgit v1.2.3