aboutsummaryrefslogtreecommitdiff
path: root/_posts/2017-08-11-simple-iot-application.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-05 12:17:03 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-05 12:17:03 +0100
commitd3dfec6f52d8093db276adb62021ced8f58e590c (patch)
tree91136e5b803a7058d42f998660cd4ba86fdf379d /_posts/2017-08-11-simple-iot-application.md
parente490ef9a85ff161305d5647281ed316b54366bca (diff)
downloadmitjafelicijan.com-d3dfec6f52d8093db276adb62021ced8f58e590c.tar.gz
Added lazy loading to images
Diffstat (limited to '_posts/2017-08-11-simple-iot-application.md')
-rw-r--r--_posts/2017-08-11-simple-iot-application.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/_posts/2017-08-11-simple-iot-application.md b/_posts/2017-08-11-simple-iot-application.md
index 3c9b4f9..b552e8f 100644
--- a/_posts/2017-08-11-simple-iot-application.md
+++ b/_posts/2017-08-11-simple-iot-application.md
@@ -51,7 +51,7 @@ to API and another to serving HTML with chart.
51Schema below represents what we will try to achieve and how different parts 51Schema below represents what we will try to achieve and how different parts
52correlates to each other. 52correlates to each other.
53 53
54![Overview](/assets/posts/iot-application/simple-iot-application-overview.svg) 54![Overview](/assets/posts/iot-application/simple-iot-application-overview.svg){:loading="lazy"}
55 55
56## Simple Python API 56## Simple Python API
57 57
@@ -219,12 +219,12 @@ available via POST method on /api route.
219After testing the service with Restlet Client you should be able to view your 219After testing the service with Restlet Client you should be able to view your
220data in a database file ```data.db```. 220data in a database file ```data.db```.
221 221
222![REST settings example](/assets/posts/iot-application/iot-rest-example.png) 222![REST settings example](/assets/posts/iot-application/iot-rest-example.png){:loading="lazy"}
223 223
224You can also check the contents of new database file by using desktop client 224You can also check the contents of new database file by using desktop client
225for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). 225for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/).
226 226
227![SQLite database example](/assets/posts/iot-application/iot-sqlite-db.png) 227![SQLite database example](/assets/posts/iot-application/iot-sqlite-db.png){:loading="lazy"}
228 228
229Table structure is as simple as it can be. We have ts (timestamp) and value 229Table structure is as simple as it can be. We have ts (timestamp) and value
230(value from Arduino). As you can see timestamp is generated on API side. If you 230(value from Arduino). As you can see timestamp is generated on API side. If you
@@ -586,7 +586,7 @@ every 5 seconds.
586If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as 586If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as
587shown on picture below. 587shown on picture below.
588 588
589![Application output](/assets/posts/iot-application/iot-app-output.png) 589![Application output](/assets/posts/iot-application/iot-app-output.png){:loading="lazy"}
590 590
591Complete application with all the code is available for 591Complete application with all the code is available for
592[download](/assets/posts/iot-application/simple-iot-application.zip). 592[download](/assets/posts/iot-application/simple-iot-application.zip).