From 70baaeb4e78d12c329a03e929fd30d41730ed2b1 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 28 Aug 2022 05:39:44 +0200 Subject: Moved statis assets and converted all CSS to Tailwind --- content/posts/2017-08-11-simple-iot-application.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'content/posts/2017-08-11-simple-iot-application.md') diff --git a/content/posts/2017-08-11-simple-iot-application.md b/content/posts/2017-08-11-simple-iot-application.md index b48f2fb..b34fe6b 100644 --- a/content/posts/2017-08-11-simple-iot-application.md +++ b/content/posts/2017-08-11-simple-iot-application.md @@ -27,7 +27,7 @@ Step 1. and 3. will share the same web application. One route will be dedicated Schema below represents what we will try to achieve and how different parts correlates to each other. -![Overview](/iot-application/simple-iot-application-overview.svg) +![Overview](/assets/iot-application/simple-iot-application-overview.svg) ## Simple Python API @@ -148,11 +148,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](/iot-application/iot-rest-example.png) +![REST settings example](/assets/iot-application/iot-rest-example.png) 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](/iot-application/iot-sqlite-db.png) +![SQLite database example](/assets/iot-application/iot-sqlite-db.png) 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. @@ -469,9 +469,9 @@ 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](/iot-application/iot-app-output.png) +![Application output](/assets/iot-application/iot-app-output.png) -Complete application with all the code is available for [download](/iot-application/simple-iot-application.zip). +Complete application with all the code is available for [download](/assets/iot-application/simple-iot-application.zip). ## Conclusion -- cgit v1.2.3