aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2017-08-11-simple-iot-application.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/2017-08-11-simple-iot-application.md')
-rw-r--r--content/posts/2017-08-11-simple-iot-application.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/posts/2017-08-11-simple-iot-application.md b/content/posts/2017-08-11-simple-iot-application.md
index 00a7802..e31ac55 100644
--- a/content/posts/2017-08-11-simple-iot-application.md
+++ b/content/posts/2017-08-11-simple-iot-application.md
@@ -50,7 +50,7 @@ to API and another to serving HTML with chart.
50Schema below represents what we will try to achieve and how different parts 50Schema below represents what we will try to achieve and how different parts
51correlates to each other. 51correlates to each other.
52 52
53![Overview](/assets/iot-application/simple-iot-application-overview.svg) 53![Overview](/posts/iot-application/simple-iot-application-overview.svg)
54 54
55## Simple Python API 55## Simple Python API
56 56
@@ -218,12 +218,12 @@ available via POST method on /api route.
218After testing the service with Restlet Client you should be able to view your 218After testing the service with Restlet Client you should be able to view your
219data in a database file ```data.db```. 219data in a database file ```data.db```.
220 220
221![REST settings example](/assets/iot-application/iot-rest-example.png) 221![REST settings example](/posts/iot-application/iot-rest-example.png)
222 222
223You can also check the contents of new database file by using desktop client 223You can also check the contents of new database file by using desktop client
224for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). 224for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/).
225 225
226![SQLite database example](/assets/iot-application/iot-sqlite-db.png) 226![SQLite database example](/posts/iot-application/iot-sqlite-db.png)
227 227
228Table structure is as simple as it can be. We have ts (timestamp) and value 228Table structure is as simple as it can be. We have ts (timestamp) and value
229(value from Arduino). As you can see timestamp is generated on API side. If you 229(value from Arduino). As you can see timestamp is generated on API side. If you
@@ -585,10 +585,10 @@ every 5 seconds.
585If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as 585If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as
586shown on picture below. 586shown on picture below.
587 587
588![Application output](/assets/iot-application/iot-app-output.png) 588![Application output](/posts/iot-application/iot-app-output.png)
589 589
590Complete application with all the code is available for 590Complete application with all the code is available for
591[download](/assets/iot-application/simple-iot-application.zip). 591[download](/posts/iot-application/simple-iot-application.zip).
592 592
593## Conclusion 593## Conclusion
594 594