diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-12-08 11:59:37 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-12-08 11:59:37 +0100 |
| commit | b0b8f7ffbf563f341745e86bfe85f080f6a8db27 (patch) | |
| tree | c56029d1d0939d899a622c60309dfccd0b84e7bb /posts/2017-08-11-simple-iot-application.md | |
| parent | 2a373fcbb6dc6eb864f1c9f3351efe4b5ed2abf0 (diff) | |
| download | mitjafelicijan.com-b0b8f7ffbf563f341745e86bfe85f080f6a8db27.tar.gz | |
A bunch of changes
Diffstat (limited to 'posts/2017-08-11-simple-iot-application.md')
| -rw-r--r-- | posts/2017-08-11-simple-iot-application.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/posts/2017-08-11-simple-iot-application.md b/posts/2017-08-11-simple-iot-application.md index ff8cf9d..0c90f43 100644 --- a/posts/2017-08-11-simple-iot-application.md +++ b/posts/2017-08-11-simple-iot-application.md | |||
| @@ -150,11 +150,11 @@ To run this simply go to folder containing python file and run ```python webapp. | |||
| 150 | 150 | ||
| 151 | After testing the service with Restlet Client you should be able to view your data in a database file ```data.db```. | 151 | After testing the service with Restlet Client you should be able to view your data in a database file ```data.db```. |
| 152 | 152 | ||
| 153 |  | 153 |  |
| 154 | 154 | ||
| 155 | You can also check the contents of new database file by using desktop client for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). | 155 | You can also check the contents of new database file by using desktop client for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). |
| 156 | 156 | ||
| 157 |  | 157 |  |
| 158 | 158 | ||
| 159 | 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. | 159 | 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. |
| 160 | 160 | ||
| @@ -471,7 +471,7 @@ If everything goes well you should be seeing new data-points rendered on chart e | |||
| 471 | 471 | ||
| 472 | If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as shown on picture below. | 472 | If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as shown on picture below. |
| 473 | 473 | ||
| 474 |  | 474 |  |
| 475 | 475 | ||
| 476 | Complete application with all the code is available for [download](/assets/iot-application/simple-iot-application.zip). | 476 | Complete application with all the code is available for [download](/assets/iot-application/simple-iot-application.zip). |
| 477 | 477 | ||
