From d3dfec6f52d8093db276adb62021ced8f58e590c Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 5 Nov 2023 12:17:03 +0100 Subject: Added lazy loading to images --- _posts/2017-08-11-simple-iot-application.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 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. Schema below represents what we will try to achieve and how different parts correlates to each other. -![Overview](/assets/posts/iot-application/simple-iot-application-overview.svg) +![Overview](/assets/posts/iot-application/simple-iot-application-overview.svg){:loading="lazy"} ## Simple Python API @@ -219,12 +219,12 @@ available via POST method on /api route. 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/posts/iot-application/iot-rest-example.png) +![REST settings example](/assets/posts/iot-application/iot-rest-example.png){:loading="lazy"} 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/posts/iot-application/iot-sqlite-db.png) +![SQLite database example](/assets/posts/iot-application/iot-sqlite-db.png){:loading="lazy"} 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 @@ -586,7 +586,7 @@ every 5 seconds. If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as shown on picture below. -![Application output](/assets/posts/iot-application/iot-app-output.png) +![Application output](/assets/posts/iot-application/iot-app-output.png){:loading="lazy"} Complete application with all the code is available for [download](/assets/posts/iot-application/simple-iot-application.zip). -- cgit v1.2.3