Raspberry Pi 3 Data Logger | Part 2 of 2 | SQLite



Raspberry Pi 3 Data Logger | Part 2 of 2 | SQLite

Raspberry Pi 3 Data Logger | Part 2 of 2 | SQLite

In Part 2 of this video series, I show you how to build a Raspberry Pi 3 Data Logger with a SQLite databases. I reuse about 90% of the code from Part 1, so make sure you watch that video if you haven’t already. If you want to use a different kind of database, such as MS SQL Server or PostgreSQL, etc… this same logic will apply. You can just substitute one database for another in the code and your Raspberry Pi 3 Data Logger will work just the same. As an example, I’m collecting various data metrics from my Raspberry Pi using the psutil library. I can then keep a running log that I can analyze or drop in an application, or whatever.

Link to the GitHub code: https://github.com/israel-dryer/Raspberry-Pi-Data-Logger
SQLite Documentation: https://www.sqlite.org/index.html
psutil Documentation: https://pypi.org/project/psutil/
Here’s a hobby project I’m working on that uses both CSV and Database loggers: https://github.com/israel-dryer/Aqua-Pi

Comments are closed.