diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-05 12:09:37 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-05 12:09:37 +0200 |
| commit | 2f5ea5f4982d6276881c9a3342ed8847ebc7d326 (patch) | |
| tree | c405cf24bce11c00d7d453bdd18995cf8cda97aa /content/posts/2017-08-11-simple-iot-application.md | |
| parent | c181dc5c37435029a0f5f2c51d6f36da4d32afd5 (diff) | |
| download | mitjafelicijan.com-2f5ea5f4982d6276881c9a3342ed8847ebc7d326.tar.gz | |
Moved assets to posts
Diffstat (limited to 'content/posts/2017-08-11-simple-iot-application.md')
| -rw-r--r-- | content/posts/2017-08-11-simple-iot-application.md | 10 |
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. | |||
| 50 | Schema below represents what we will try to achieve and how different parts | 50 | Schema below represents what we will try to achieve and how different parts |
| 51 | correlates to each other. | 51 | correlates to each other. |
| 52 | 52 | ||
| 53 |  | 53 |  |
| 54 | 54 | ||
| 55 | ## Simple Python API | 55 | ## Simple Python API |
| 56 | 56 | ||
| @@ -218,12 +218,12 @@ available via POST method on /api route. | |||
| 218 | After testing the service with Restlet Client you should be able to view your | 218 | After testing the service with Restlet Client you should be able to view your |
| 219 | data in a database file ```data.db```. | 219 | data in a database file ```data.db```. |
| 220 | 220 | ||
| 221 |  | 221 |  |
| 222 | 222 | ||
| 223 | You can also check the contents of new database file by using desktop client | 223 | You can also check the contents of new database file by using desktop client |
| 224 | for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). | 224 | for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). |
| 225 | 225 | ||
| 226 |  | 226 |  |
| 227 | 227 | ||
| 228 | Table structure is as simple as it can be. We have ts (timestamp) and value | 228 | Table 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. | |||
| 585 | If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as | 585 | If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as |
| 586 | shown on picture below. | 586 | shown on picture below. |
| 587 | 587 | ||
| 588 |  | 588 |  |
| 589 | 589 | ||
| 590 | Complete application with all the code is available for | 590 | Complete 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 | ||
